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.0007956/0.000796, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0009068/0.0009069, allocations: 177 kB / 17.56 MB, free: 6.18 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.428/1.428, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 7.938 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 50.41 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003463/0.1262, allocations: 2.201 MB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.1294, allocations: 1.781 MB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003631/0.1298, allocations: 7.938 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.1311, allocations: 0.5019 MB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009785/0.1321, allocations: 410.8 kB / 356.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002533/0.1346, allocations: 0.6016 MB / 357.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.1358, allocations: 0.7675 MB / 358.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.1361, allocations: 93.98 kB / 358.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.1364, allocations: 274.8 kB / 358.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003775/0.1368, allocations: 326.7 kB / 358.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.69e-05/0.1369, allocations: 19.92 kB / 358.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003678/0.1373, allocations: 183.7 kB / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.1375, allocations: 171.5 kB / 359.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003681/0.1378, allocations: 303.8 kB / 359.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007829/0.1386, allocations: 0.7904 MB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1387, allocations: 8 kB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1387, allocations: 0 / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.1387, allocations: 0 / 360.2 MB, free: 11.04 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.001559/0.1403, allocations: 1.075 MB / 361.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1403, allocations: 8.031 kB / 361.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.1405, allocations: 84 kB / 361.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.1413, allocations: 0.5819 MB / 362 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.1414, allocations: 23.89 kB / 362 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.1414, allocations: 20 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007072/0.1422, allocations: 358.7 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1422, allocations: 0 / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.1422, allocations: 19.97 kB / 362.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.1422, allocations: 11.94 kB / 362.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003592/0.1426, allocations: 179.7 kB / 362.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.1442, allocations: 1.337 MB / 363.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007104/0.1449, allocations: 350.8 kB / 364.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003855/0.1453, allocations: 179.4 kB / 364.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.1454, allocations: 8.062 kB / 364.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008675/0.1462, allocations: 463.1 kB / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.1462, allocations: 0 / 364.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001394/0.1476, allocations: 0.7464 MB / 365.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000242/0.1479, allocations: 460.9 kB / 366.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.1491, allocations: 0.9341 MB / 367 MB, free: 3.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.1491, allocations: 41.7 kB / 367.1 MB, free: 3.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003061/0.1494, allocations: 304.7 kB / 367.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1495, allocations: 102.7 kB / 367.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/0.1496, allocations: 61.62 kB / 367.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1498, allocations: 322 kB / 367.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.1502, allocations: 148.9 kB / 368 MB, free: 2.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007946/0.151, allocations: 358.5 kB / 368.3 MB, free: 2.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.152, allocations: 0.5777 MB / 368.9 MB, free: 1.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.152, allocations: 4 kB / 368.9 MB, free: 1.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001298/0.1533, allocations: 0.669 MB / 369.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.1534, allocations: 101.1 kB / 369.7 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.1535, allocations: 4.906 kB / 369.7 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.1535, allocations: 4 kB / 369.7 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.1538, allocations: 72.12 kB / 369.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1538, allocations: 7.938 kB / 369.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.1541, allocations: 47.67 kB / 369.8 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.1542, allocations: 31.98 kB / 369.8 MB, free: 0.7109 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.0004486/0.1546, allocations: 390.7 kB / 370.2 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.1548, allocations: 87 kB / 370.3 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.1549, allocations: 74.2 kB / 370.4 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1549, allocations: 4 kB / 370.4 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.1549, allocations: 7.938 kB / 370.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1549, allocations: 0 / 370.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2149/0.3699, allocations: 0.951 MB / 371.3 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.3699, allocations: 6.062 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.3701, allocations: 23.56 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.1e-05/0.3701, allocations: 3.938 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.183e-05/0.3702, allocations: 15.55 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.3702, allocations: 3.391 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3702, allocations: 1.469 kB / 371.4 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.3716, allocations: 0.7754 MB / 372.2 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.3718, allocations: 164.7 kB / 372.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.3719, allocations: 23.8 kB / 372.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.3722, allocations: 25.94 kB / 372.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.3723, allocations: 46.98 kB / 372.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.399e-05/0.3724, allocations: 22.84 kB / 372.5 MB, free: 24.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.3734, allocations: 0.6677 MB / 373.1 MB, free: 23.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3734, allocations: 0.75 kB / 373.1 MB, free: 23.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007325/0.3742, allocations: 152.2 kB / 373.3 MB, free: 23.98 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.001233/0.3754, allocations: 0.4988 MB / 373.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.3767, allocations: 0.612 MB / 374.4 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.3767, allocations: 1.375 kB / 374.4 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006414/0.3774, allocations: 436.5 kB / 374.8 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009346/0.3783, allocations: 165.7 kB / 375 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.3803, allocations: 1.341 MB / 376.3 MB, free: 22.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.3807, allocations: 0.9336 MB / 377.2 MB, free: 22.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003766/0.3811, allocations: 113.1 kB / 377.4 MB, free: 21.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3813, allocations: 55.95 kB / 377.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3813, allocations: 0 / 377.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01903/0.4003, allocations: 8.757 MB / 386.2 MB, free: 19.38 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins/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