Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00185/0.00185, allocations: 121.7 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002802/0.002802, allocations: 208.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.446/2.446, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 67.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.432, allocations: 50.53 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.005261/0.4373, allocations: 1.86 MB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.4405, allocations: 1.165 MB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002263/0.4408, allocations: 4 kB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.4419, allocations: 171.4 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008857/0.4429, allocations: 163.3 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000825/0.4437, allocations: 147.2 kB / 413.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004977/0.4442, allocations: 223.4 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.4444, allocations: 17.56 kB / 413.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.4447, allocations: 87.61 kB / 413.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.4449, allocations: 87.62 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.445, allocations: 12 kB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.4452, allocations: 63.89 kB / 413.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.4454, allocations: 47.83 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.4455, allocations: 75.55 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.446, allocations: 226.9 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4461, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4461, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.4461, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001466/0.4476, allocations: 0.5248 MB / 414.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.298e-05/0.4476, allocations: 12.03 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4478, allocations: 20.75 kB / 414.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.4483, allocations: 270.7 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.4484, allocations: 384 / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.4484, allocations: 12.12 kB / 415.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.4488, allocations: 113.9 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.4488, allocations: 8 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.4489, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.4489, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/0.4491, allocations: 59.89 kB / 415.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.4502, allocations: 0.6065 MB / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.4506, allocations: 123.9 kB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.4509, allocations: 50.56 kB / 416 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.849e-05/0.4509, allocations: 7.984 kB / 416 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.4513, allocations: 117.9 kB / 416.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.695e-06/0.4513, allocations: 0 / 416.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008235/0.4522, allocations: 177.7 kB / 416.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.4523, allocations: 132.5 kB / 416.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.4529, allocations: 297 kB / 416.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.4529, allocations: 25.7 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.4531, allocations: 136.2 kB / 416.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.688e-05/0.4532, allocations: 27.77 kB / 416.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.4533, allocations: 33.7 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.4535, allocations: 338.9 kB / 417.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.4537, allocations: 27.98 kB / 417.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.4539, allocations: 85.98 kB / 417.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.4543, allocations: 108.2 kB / 417.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.4543, allocations: 0 / 417.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005173/0.4548, allocations: 145.2 kB / 417.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.4549, allocations: 8 kB / 417.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4549, allocations: 0 / 417.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.4549, allocations: 0 / 417.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.4551, allocations: 24.02 kB / 417.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.4551, allocations: 4 kB / 417.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.4554, allocations: 19.92 kB / 417.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.4554, allocations: 4 kB / 417.7 MB, free: 9.422 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002498/0.4557, allocations: 145.8 kB / 417.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.542e-05/0.4558, allocations: 23.72 kB / 417.9 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.93e-05/0.4559, allocations: 25.7 kB / 417.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.4559, allocations: 4 kB / 417.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4559, allocations: 4 kB / 417.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.4559, allocations: 4.062 kB / 417.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/0.4563, allocations: 249.5 kB / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4563, allocations: 0 / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.4564, allocations: 7.938 kB / 418.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.4564, allocations: 4 kB / 418.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.4564, allocations: 7.984 kB / 418.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.4564, allocations: 3.984 kB / 418.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.4564, allocations: 4 kB / 418.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004427/0.4569, allocations: 182.4 kB / 418.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.457, allocations: 88.92 kB / 418.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.498e-05/0.457, allocations: 7.938 kB / 418.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.4572, allocations: 15.98 kB / 418.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.59e-05/0.4573, allocations: 19.91 kB / 418.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.4574, allocations: 8 kB / 418.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000356/0.4577, allocations: 216.5 kB / 418.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4577, allocations: 0 / 418.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004816/0.4582, allocations: 32 kB / 418.7 MB, free: 8.285 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/0.4598, allocations: 410.7 kB / 419.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004762/0.4603, allocations: 95.78 kB / 419.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.4603, allocations: 4.188 kB / 419.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.4606, allocations: 51.97 kB / 419.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006246/0.4612, allocations: 60.08 kB / 419.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.4623, allocations: 386.7 kB / 419.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.4628, allocations: 0.7359 MB / 420.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.994e-05/0.4629, allocations: 23.44 kB / 420.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4629, allocations: 0 / 420.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of Templates: time 0.009213/0.4721, allocations: 2.968 MB / 423.4 MB, free: 3.66 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches