Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.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.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_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002033/0.002033, allocations: 210 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.422/2.422, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4325, allocations: 50.55 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.006737/0.4393, allocations: 2.568 MB / 412.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005246/0.4446, allocations: 1.94 MB / 414.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006496/0.4453, allocations: 11.88 kB / 414.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.4472, allocations: 0.5298 MB / 415 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001852/0.4491, allocations: 493.8 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002381/0.4515, allocations: 0.5413 MB / 416 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.4533, allocations: 0.8378 MB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003997/0.4537, allocations: 102 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008528/0.4546, allocations: 338.7 kB / 417.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000912/0.4555, allocations: 382.5 kB / 417.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.4557, allocations: 44 kB / 417.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007548/0.4565, allocations: 227.8 kB / 417.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003614/0.4569, allocations: 207.3 kB / 418.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005881/0.4575, allocations: 310.1 kB / 418.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001809/0.4593, allocations: 0.8849 MB / 419.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.4593, allocations: 0 / 419.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4593, allocations: 0 / 419.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.4594, allocations: 0 / 419.3 MB, free: 8.168 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.003413/0.4628, allocations: 1.222 MB / 420.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.4629, allocations: 12.03 kB / 420.5 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003069/0.4632, allocations: 80 kB / 420.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.4647, allocations: 0.6013 MB / 421.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.701e-05/0.4647, allocations: 28.33 kB / 421.2 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.4648, allocations: 28.12 kB / 421.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009742/0.4658, allocations: 354.7 kB / 421.6 MB, free: 5.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.4659, allocations: 3.938 kB / 421.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.4659, allocations: 15.98 kB / 421.6 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.466, allocations: 4 kB / 421.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000543/0.4665, allocations: 171.8 kB / 421.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.469, allocations: 1.344 MB / 423.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.4701, allocations: 366.5 kB / 423.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.4705, allocations: 171.4 kB / 423.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.4706, allocations: 7.984 kB / 423.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008726/0.4715, allocations: 471 kB / 424.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 4.489e-06/0.4715, allocations: 0 / 424.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.002096/0.4736, allocations: 0.7392 MB / 424.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002802/0.4739, allocations: 460.9 kB / 425.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002127/0.4761, allocations: 0.9733 MB / 426.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.4762, allocations: 45.69 kB / 426.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.4766, allocations: 312.8 kB / 426.6 MB, free: 312 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.4768, allocations: 110.6 kB / 426.8 MB, free: 200 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.477, allocations: 94.12 kB / 426.8 MB, free: 100 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4772, allocations: 330 kB / 427.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004382/0.4777, allocations: 152.9 kB / 427.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006373/0.4783, allocations: 354.5 kB / 427.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.4794, allocations: 0.5778 MB / 428.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/0.4794, allocations: 4 kB / 428.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001818/0.4813, allocations: 0.6657 MB / 428.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.4814, allocations: 101 kB / 429 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.4814, allocations: 4 kB / 429 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.877e-05/0.4815, allocations: 8.281 kB / 429 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/0.4819, allocations: 71.83 kB / 429.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.4819, allocations: 8 kB / 429.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.4825, allocations: 51.64 kB / 429.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.049e-05/0.4825, allocations: 20 kB / 429.2 MB, free: 13.56 MB / 350.1 MB 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],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007643/0.4833, allocations: 398.8 kB / 429.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.4836, allocations: 98.98 kB / 429.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.4839, allocations: 70.59 kB / 429.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.484, allocations: 4 kB / 429.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.484, allocations: 0 / 429.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.484, allocations: 7.984 kB / 429.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00203/0.4861, allocations: 0.9737 MB / 430.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.4861, allocations: 3.938 kB / 430.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.4862, allocations: 27.98 kB / 430.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.4863, allocations: 4 kB / 430.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.4863, allocations: 23.92 kB / 430.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.4864, allocations: 0 / 430.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.4864, allocations: 4 kB / 430.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.4881, allocations: 0.7905 MB / 431.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.4884, allocations: 148.2 kB / 431.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.4886, allocations: 27.94 kB / 431.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.489, allocations: 23.97 kB / 431.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.4892, allocations: 35.97 kB / 431.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.281e-05/0.4892, allocations: 19.98 kB / 431.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001411/0.4907, allocations: 0.7023 MB / 432.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4907, allocations: 0 / 432.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00103/0.4917, allocations: 163.8 kB / 432.7 MB, free: 9.898 MB / 350.1 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.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,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 (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.001786/0.4935, allocations: 491.7 kB / 433.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.4951, allocations: 0.6113 MB / 433.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4951, allocations: 0 / 433.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008096/0.496, allocations: 433.1 kB / 434.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.4975, allocations: 171.5 kB / 434.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.5008, allocations: 1.265 MB / 435.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007717/0.5016, allocations: 0.9446 MB / 436.6 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002572/0.5018, allocations: 59.42 kB / 436.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5019, allocations: 4 kB / 436.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of Templates: time 0.02641/0.5283, allocations: 10.21 MB / 446.8 MB, free: 11.75 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches