Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001308/0.001308, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 51.94 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.448/0.4498, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.006482/0.4563, allocations: 2.542 MB / 403.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004871/0.4613, allocations: 1.792 MB / 405.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006213/0.4619, allocations: 11.88 kB / 405.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.4635, allocations: 0.5363 MB / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.4646, allocations: 418.5 kB / 406.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.4666, allocations: 0.6777 MB / 407.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00123/0.4679, allocations: 0.791 MB / 408.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003031/0.4682, allocations: 106 kB / 408.3 MB, free: 2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000641/0.4689, allocations: 326.8 kB / 408.6 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006327/0.4695, allocations: 358.6 kB / 408.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.4697, allocations: 40 kB / 409 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005429/0.4702, allocations: 231.7 kB / 409.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002924/0.4705, allocations: 207.3 kB / 409.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003984/0.4709, allocations: 306.1 kB / 409.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.4722, allocations: 0.8499 MB / 410.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4722, allocations: 4 kB / 410.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4722, allocations: 0 / 410.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.544e-05/0.4723, allocations: 0 / 410.5 MB, free: 15.71 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.002409/0.4747, allocations: 1.191 MB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4748, allocations: 15.83 kB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.475, allocations: 80 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.476, allocations: 0.5896 MB / 412.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.4761, allocations: 16 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.4761, allocations: 24 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.4768, allocations: 366.7 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.4768, allocations: 0 / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.4769, allocations: 8 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.4769, allocations: 8 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.4773, allocations: 175.8 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.4791, allocations: 1.337 MB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007149/0.4798, allocations: 346.8 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.4801, allocations: 171.4 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.4802, allocations: 11.94 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006332/0.4808, allocations: 471.2 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.454e-06/0.4808, allocations: 0 / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001424/0.4822, allocations: 0.741 MB / 416.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002343/0.4825, allocations: 460.9 kB / 416.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.4838, allocations: 0.9301 MB / 417.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.447e-05/0.4839, allocations: 41.7 kB / 417.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.4841, allocations: 308.7 kB / 417.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.4843, allocations: 110.7 kB / 417.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.4844, allocations: 94.12 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4845, allocations: 330 kB / 418.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.4849, allocations: 148.9 kB / 418.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004436/0.4853, allocations: 354.4 kB / 418.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/0.4861, allocations: 0.5856 MB / 419.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.4861, allocations: 0 / 419.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001134/0.4872, allocations: 0.6693 MB / 420.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.857e-05/0.4873, allocations: 97.09 kB / 420.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.4873, allocations: 8.609 kB / 420.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/0.4874, allocations: 4 kB / 420.2 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.4876, allocations: 63.84 kB / 420.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.4877, allocations: 4 kB / 420.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.488, allocations: 51.61 kB / 420.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.488, allocations: 28 kB / 420.3 MB, free: 5.223 MB / 334.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.0004666/0.4885, allocations: 395.2 kB / 420.7 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.4887, allocations: 79.06 kB / 420.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.4888, allocations: 74.22 kB / 420.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.4889, allocations: 4 kB / 420.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.4889, allocations: 4 kB / 420.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.4889, allocations: 3.984 kB / 420.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.4902, allocations: 0.9683 MB / 421.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4902, allocations: 3.938 kB / 421.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.493e-05/0.4903, allocations: 23.98 kB / 421.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.4903, allocations: 3.938 kB / 421.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.034e-05/0.4904, allocations: 20 kB / 421.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.4904, allocations: 3.984 kB / 421.9 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.4904, allocations: 4 kB / 421.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.4915, allocations: 0.7713 MB / 422.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.4917, allocations: 156.1 kB / 422.8 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.4918, allocations: 23.98 kB / 422.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.4921, allocations: 23.98 kB / 422.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4922, allocations: 40.03 kB / 422.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.4923, allocations: 20 kB / 422.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009956/0.4933, allocations: 0.6708 MB / 423.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4933, allocations: 0 / 423.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000938/0.4942, allocations: 155.9 kB / 423.7 MB, free: 1.637 MB / 334.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.001819/0.4961, allocations: 0.5067 MB / 424.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.4975, allocations: 0.6111 MB / 424.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.4975, allocations: 0 / 424.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.4982, allocations: 426 kB / 425.3 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.4996, allocations: 183.8 kB / 425.4 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003129/0.5028, allocations: 1.222 MB / 426.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008213/0.5036, allocations: 0.933 MB / 427.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.5038, allocations: 59.42 kB / 427.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5038, allocations: 0 / 427.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of Templates: time 0.02203/0.5259, allocations: 9.846 MB / 437.5 MB, free: 3.91 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches