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.001513/0.001513, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 62.28 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1529, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.006642/0.1596, allocations: 2.574 MB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004726/0.1644, allocations: 1.933 MB / 363.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003678/0.1648, allocations: 7.938 kB / 363.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.1663, allocations: 0.5408 MB / 363.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.1675, allocations: 486.3 kB / 364.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.1695, allocations: 0.5442 MB / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.1708, allocations: 0.8377 MB / 365.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.1711, allocations: 109.9 kB / 365.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.1716, allocations: 338.8 kB / 366.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005171/0.1722, allocations: 362.6 kB / 366.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1723, allocations: 40 kB / 366.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005603/0.1729, allocations: 231.7 kB / 366.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002856/0.1732, allocations: 211.3 kB / 367.1 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.1736, allocations: 318 kB / 367.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1747, allocations: 0.876 MB / 368.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1748, allocations: 0 / 368.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.39e-06/0.1748, allocations: 7.984 kB / 368.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1748, allocations: 0 / 368.3 MB, free: 3.945 MB / 302.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.002287/0.1771, allocations: 1.23 MB / 369.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1772, allocations: 8.031 kB / 369.5 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.1774, allocations: 83.91 kB / 369.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.1785, allocations: 0.6092 MB / 370.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.1786, allocations: 20.38 kB / 370.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.862e-05/0.1787, allocations: 32.09 kB / 370.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008038/0.1795, allocations: 346.8 kB / 370.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1795, allocations: 0 / 370.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.1796, allocations: 11.98 kB / 370.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.123e-05/0.1796, allocations: 11.94 kB / 370.6 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.1801, allocations: 179.8 kB / 370.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/0.3711, allocations: 1.338 MB / 372.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008062/0.3719, allocations: 357.4 kB / 372.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.3722, allocations: 171 kB / 372.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.3723, allocations: 8.609 kB / 372.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.373, allocations: 461.6 kB / 373.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.645e-06/0.373, allocations: 1.031 kB / 373.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001461/0.3744, allocations: 0.7397 MB / 373.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.3746, allocations: 466 kB / 374.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3759, allocations: 0.9729 MB / 375.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/0.3759, allocations: 44.56 kB / 375.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.3761, allocations: 316.7 kB / 375.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.3763, allocations: 106.4 kB / 375.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.3764, allocations: 94.91 kB / 375.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.3765, allocations: 332.1 kB / 376.1 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.3768, allocations: 149.2 kB / 376.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.3772, allocations: 358.8 kB / 376.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005866/0.3778, allocations: 0.5834 MB / 377.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.3778, allocations: 1.938 kB / 377.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009778/0.3788, allocations: 0.6713 MB / 377.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.3789, allocations: 98.75 kB / 378 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3789, allocations: 2.375 kB / 378 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3789, allocations: 6.578 kB / 378 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.3792, allocations: 60.34 kB / 378.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.3792, allocations: 16.91 kB / 378.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.3796, allocations: 47.61 kB / 378.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.3796, allocations: 22.09 kB / 378.1 MB, free: 16.66 MB / 302.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.0004093/0.38, allocations: 408.7 kB / 378.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.3802, allocations: 85 kB / 378.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.3803, allocations: 78.8 kB / 378.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3803, allocations: 5.375 kB / 378.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3804, allocations: 0 / 378.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3804, allocations: 7.016 kB / 378.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.3818, allocations: 0.9776 MB / 379.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3818, allocations: 4.219 kB / 379.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.3819, allocations: 24.73 kB / 379.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3819, allocations: 2.938 kB / 379.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.11e-05/0.382, allocations: 16.19 kB / 379.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.382, allocations: 2.328 kB / 379.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.382, allocations: 1.625 kB / 379.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.3832, allocations: 0.7863 MB / 380.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.3834, allocations: 151.8 kB / 380.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.3835, allocations: 23.61 kB / 380.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.3838, allocations: 26.08 kB / 380.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.3839, allocations: 41.55 kB / 380.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.3839, allocations: 23.75 kB / 380.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009082/0.3849, allocations: 0.7022 MB / 381.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3849, allocations: 4.391 kB / 381.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006085/0.3855, allocations: 147.4 kB / 381.6 MB, free: 14.81 MB / 302.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.001119/0.3866, allocations: 0.5006 MB / 382.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.3877, allocations: 0.6131 MB / 382.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3877, allocations: 384 / 382.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005648/0.3883, allocations: 437.3 kB / 383.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009403/0.3892, allocations: 174.8 kB / 383.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.3912, allocations: 1.21 MB / 384.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.3917, allocations: 0.9418 MB / 385.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.392, allocations: 119.7 kB / 385.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.3922, allocations: 58.81 kB / 385.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3922, allocations: 0 / 385.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of Templates: time 0.01927/0.4115, allocations: 9.431 MB / 395.1 MB, free: 9.129 MB / 302.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 -s cvode -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