Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 114.5 kB / 17.93 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 193.8 kB / 18.86 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 47.92 kB / 280.8 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.0833, allocations: 46.63 MB / 327.4 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003316/0.08667, allocations: 1.875 MB / 329.3 MB, free: 2.922 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.08812, allocations: 0.9325 MB / 330.2 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.244e-05/0.08822, allocations: 0 / 330.2 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005639/0.08882, allocations: 171.6 kB / 330.4 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.0891, allocations: 103.7 kB / 330.5 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.08946, allocations: 147.7 kB / 330.6 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.08971, allocations: 211.4 kB / 330.9 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.775e-05/0.08982, allocations: 21.55 kB / 330.9 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.08995, allocations: 91.61 kB / 331 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.09007, allocations: 83.69 kB / 331 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.0901, allocations: 12 kB / 331.1 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.09022, allocations: 47.97 kB / 331.1 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.516e-05/0.0903, allocations: 51.77 kB / 331.2 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.09049, allocations: 79.55 kB / 331.2 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.0907, allocations: 164 kB / 331.4 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.09071, allocations: 0 / 331.4 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09072, allocations: 4 kB / 331.4 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.09073, allocations: 0 / 331.4 MB, free: 0.8164 MB / 270.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.0008249/0.09156, allocations: 0.5274 MB / 331.9 MB, free: 240 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.0916, allocations: 8.031 kB / 331.9 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/0.09166, allocations: 20.66 kB / 331.9 MB, free: 212 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.09196, allocations: 258.8 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.09199, allocations: 12.36 kB / 332.2 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.09201, allocations: 8.125 kB / 332.2 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.09225, allocations: 117.9 kB / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.09227, allocations: 0 / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.09229, allocations: 0 / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.0923, allocations: 7.938 kB / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.09244, allocations: 47.91 kB / 332.4 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006208/0.09308, allocations: 0.6104 MB / 333 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.09333, allocations: 119.9 kB / 333.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.09345, allocations: 58.48 kB / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.09348, allocations: 0 / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.0937, allocations: 125.9 kB / 333.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.09371, allocations: 0 / 333.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004221/0.09414, allocations: 173.3 kB / 333.5 MB, free: 14.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.09423, allocations: 132.5 kB / 333.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.09453, allocations: 288.9 kB / 333.9 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.09457, allocations: 33.83 kB / 333.9 MB, free: 14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.09465, allocations: 124.4 kB / 334 MB, free: 13.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.09469, allocations: 23.66 kB / 334.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.09475, allocations: 37.7 kB / 334.1 MB, free: 13.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.09491, allocations: 334.8 kB / 334.4 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.095, allocations: 27.98 kB / 334.4 MB, free: 13.45 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.09513, allocations: 85.98 kB / 334.5 MB, free: 13.34 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.09531, allocations: 96.66 kB / 334.6 MB, free: 13.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.09533, allocations: 4 kB / 334.6 MB, free: 13.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002608/0.0956, allocations: 145.3 kB / 334.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.09562, allocations: 4 kB / 334.8 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.09564, allocations: 4 kB / 334.8 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.09565, allocations: 0 / 334.8 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.294e-05/0.09574, allocations: 15.94 kB / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.85e-06/0.09575, allocations: 0 / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.09587, allocations: 19.92 kB / 334.8 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.09589, allocations: 8 kB / 334.8 MB, free: 13.03 MB / 286.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.0001257/0.09602, allocations: 157.4 kB / 335 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.09606, allocations: 27.7 kB / 335 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.179e-05/0.09612, allocations: 25.7 kB / 335 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.09613, allocations: 4 kB / 335 MB, free: 12.81 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.09614, allocations: 0 / 335 MB, free: 12.81 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.09615, allocations: 7.922 kB / 335 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.09637, allocations: 237.6 kB / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.09638, allocations: 0 / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.951e-05/0.09642, allocations: 4 kB / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.09643, allocations: 15.92 kB / 335.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.09645, allocations: 0 / 335.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.09646, allocations: 4 kB / 335.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09646, allocations: 0 / 335.3 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.09676, allocations: 182.5 kB / 335.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.754e-05/0.09683, allocations: 104.9 kB / 335.6 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.09687, allocations: 7.984 kB / 335.6 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.09698, allocations: 11.98 kB / 335.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/0.09705, allocations: 15.92 kB / 335.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.09707, allocations: 4 kB / 335.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.09727, allocations: 216.5 kB / 335.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09728, allocations: 0 / 335.8 MB, free: 11.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.09754, allocations: 28 kB / 335.9 MB, free: 11.9 MB / 286.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.0009889/0.09854, allocations: 422.4 kB / 336.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.09885, allocations: 107.8 kB / 336.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.09886, allocations: 0 / 336.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.099, allocations: 51.92 kB / 336.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.09939, allocations: 44.66 kB / 336.5 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006579/0.1001, allocations: 414.4 kB / 336.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1004, allocations: 0.7319 MB / 337.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.1005, allocations: 19.44 kB / 337.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1005, allocations: 7.938 kB / 337.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of Templates: time 0.004674/0.1051, allocations: 2.882 MB / 340.5 MB, free: 7.172 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches