Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001443, allocations: 189.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 91.55 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.000396, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3094, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1249/0.4343, allocations: 81.04 MB / 455.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.4347, allocations: 79.95 kB / 455.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1161/0.5508, allocations: 25.99 MB / 481.6 MB, free: 5.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5509, allocations: 0 / 481.6 MB, free: 5.633 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.59e-05/0.551, allocations: 20.11 kB / 481.6 MB, free: 5.613 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.002329/0.5533, allocations: 1.123 MB / 482.8 MB, free: 4.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.5534, allocations: 12.02 kB / 482.8 MB, free: 4.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.5536, allocations: 79.06 kB / 482.9 MB, free: 4.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.5553, allocations: 0.6241 MB / 483.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.5554, allocations: 15.98 kB / 483.5 MB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.532e-05/0.5555, allocations: 27.95 kB / 483.5 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009573/0.5564, allocations: 370.9 kB / 483.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.5565, allocations: 0 / 483.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.835e-05/0.5565, allocations: 15.98 kB / 483.9 MB, free: 3.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.5566, allocations: 8 kB / 483.9 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006728/0.5572, allocations: 203.7 kB / 484.1 MB, free: 2.969 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.5597, allocations: 1.423 MB / 485.5 MB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.561, allocations: 378.8 kB / 485.9 MB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.561, allocations: 8.172 kB / 485.9 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009392/0.562, allocations: 467.3 kB / 486.4 MB, free: 0.543 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.066e-06/0.562, allocations: 4 kB / 486.4 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002682/0.5647, allocations: 1.033 MB / 487.4 MB, free: 15.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002441/0.565, allocations: 456.9 kB / 487.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.5669, allocations: 0.8473 MB / 488.7 MB, free: 14.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.5671, allocations: 45.64 kB / 488.7 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.5674, allocations: 311.3 kB / 489 MB, free: 13.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.5675, allocations: 110.7 kB / 489.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.5676, allocations: 12 kB / 489.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5678, allocations: 330.8 kB / 489.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005828/0.5684, allocations: 156.9 kB / 489.6 MB, free: 13.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/0.5692, allocations: 374.4 kB / 490 MB, free: 12.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.5699, allocations: 277.1 kB / 490.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5699, allocations: 4 kB / 490.3 MB, free: 12.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001776/0.5717, allocations: 0.6463 MB / 490.9 MB, free: 11.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/0.5718, allocations: 97.05 kB / 491 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.5718, allocations: 4 kB / 491 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.5718, allocations: 8 kB / 491 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.5723, allocations: 72.12 kB / 491.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.5724, allocations: 4 kB / 491.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006092/0.573, allocations: 51.72 kB / 491.2 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.503e-05/0.5731, allocations: 24.23 kB / 491.2 MB, free: 11.39 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000756/0.5738, allocations: 406.8 kB / 491.6 MB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.574, allocations: 79.06 kB / 491.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.5756, allocations: 0.5403 MB / 492.2 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5757, allocations: 7.938 kB / 492.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5757, allocations: 0 / 492.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.5757, allocations: 7.938 kB / 492.2 MB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.5778, allocations: 1.075 MB / 493.3 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5779, allocations: 4 kB / 493.3 MB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.5781, allocations: 31.92 kB / 493.3 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.5781, allocations: 7.953 kB / 493.3 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.5782, allocations: 15.98 kB / 493.3 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.5782, allocations: 4 kB / 493.4 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5782, allocations: 0 / 493.4 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.5803, allocations: 0.875 MB / 494.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003252/0.5807, allocations: 196.1 kB / 494.4 MB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.5809, allocations: 23.98 kB / 494.4 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.5813, allocations: 28.12 kB / 494.5 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.5815, allocations: 39.94 kB / 494.5 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/0.5816, allocations: 23.98 kB / 494.5 MB, free: 7.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001452/0.5831, allocations: 0.6708 MB / 495.2 MB, free: 7.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5831, allocations: 4 kB / 495.2 MB, free: 7.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001002/0.5841, allocations: 184 kB / 495.4 MB, free: 6.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001553/0.5857, allocations: 0.5096 MB / 495.9 MB, free: 6.496 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.5873, allocations: 0.6617 MB / 496.6 MB, free: 5.797 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5874, allocations: 4 kB / 496.6 MB, free: 5.793 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008527/0.5882, allocations: 445.9 kB / 497 MB, free: 5.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.5895, allocations: 148.5 kB / 497.1 MB, free: 5.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.5926, allocations: 1.386 MB / 498.5 MB, free: 3.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007155/0.5934, allocations: 0.9491 MB / 499.5 MB, free: 2.766 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003229/0.5937, allocations: 63.42 kB / 499.5 MB, free: 2.703 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5937, allocations: 4 kB / 499.5 MB, free: 2.699 MB / 378.7 MB Notification: Performance of Templates: time 0.2701/0.8639, allocations: 9.996 MB / 0.4976 GB, free: 102.8 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches