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.001744/0.001745, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002162/0.002162, allocations: 198.9 kB / 18.08 MB, free: 5.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 2.231/2.231, allocations: 222.9 MB / 241.8 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002261/0.00226, allocations: 50.3 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1818, allocations: 49.46 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.008932/0.1908, allocations: 2.563 MB / 352.6 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006701/0.1976, allocations: 1.816 MB / 354.4 MB, free: 428 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008992/0.1986, allocations: 7.938 kB / 354.4 MB, free: 420 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.2012, allocations: 0.4988 MB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001861/0.2031, allocations: 410.2 kB / 355.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.2061, allocations: 0.6004 MB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.2077, allocations: 0.7636 MB / 356.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003514/0.2081, allocations: 109.8 kB / 356.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006297/0.2087, allocations: 274.8 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006233/0.2094, allocations: 342.6 kB / 357.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.709e-05/0.2095, allocations: 16 kB / 357.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000648/0.2102, allocations: 187.7 kB / 357.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.2105, allocations: 187.3 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004511/0.211, allocations: 278.2 kB / 358.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.2121, allocations: 0.6435 MB / 358.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2121, allocations: 3.938 kB / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2121, allocations: 0 / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.2122, allocations: 0 / 358.7 MB, free: 12.13 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.002842/0.215, allocations: 1.199 MB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.707e-05/0.2151, allocations: 8.031 kB / 359.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002574/0.2154, allocations: 84 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.2167, allocations: 0.578 MB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.2168, allocations: 27.53 kB / 360.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/0.2169, allocations: 20 kB / 360.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.2179, allocations: 354.7 kB / 361 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.2179, allocations: 0 / 361 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.642e-05/0.218, allocations: 11.98 kB / 361 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.664e-05/0.2181, allocations: 11.94 kB / 361 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006788/0.2188, allocations: 179.8 kB / 361.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.2215, allocations: 1.341 MB / 362.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.2229, allocations: 358.7 kB / 362.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/0.2234, allocations: 171.4 kB / 363 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.815e-05/0.2235, allocations: 4 kB / 363 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.2247, allocations: 467.2 kB / 363.5 MB, free: 7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 3.376e-06/0.2247, allocations: 0 / 363.5 MB, free: 7 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.002692/0.2274, allocations: 0.7426 MB / 364.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005398/0.228, allocations: 464.9 kB / 364.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/0.2304, allocations: 0.9263 MB / 365.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.2306, allocations: 45.69 kB / 365.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005638/0.2311, allocations: 304.8 kB / 366 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.2313, allocations: 106.7 kB / 366.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.2316, allocations: 102 kB / 366.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.2318, allocations: 326 kB / 366.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005477/0.2324, allocations: 152.9 kB / 366.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008588/0.2333, allocations: 354.4 kB / 367 MB, free: 3.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.2348, allocations: 0.5777 MB / 367.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.2348, allocations: 4 kB / 367.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002058/0.2369, allocations: 0.669 MB / 368.2 MB, free: 1.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002352/0.2371, allocations: 97.09 kB / 368.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.2372, allocations: 4.281 kB / 368.3 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.67e-05/0.2372, allocations: 12 kB / 368.3 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.2377, allocations: 59.91 kB / 368.4 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.374e-05/0.2377, allocations: 15.92 kB / 368.4 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/0.2383, allocations: 44.3 kB / 368.5 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-05/0.2384, allocations: 20 kB / 368.5 MB, free: 1.656 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.0009038/0.2393, allocations: 402.8 kB / 368.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.2396, allocations: 87 kB / 369 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003893/0.24, allocations: 74.44 kB / 369 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.2401, allocations: 4 kB / 369 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.2401, allocations: 0 / 369 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2401, allocations: 4 kB / 369 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.2423, allocations: 0.9582 MB / 370 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.2424, allocations: 4 kB / 370 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.2425, allocations: 31.86 kB / 370 MB, free: 0 / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.2426, allocations: 0 / 370 MB, free: 0 / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.3219/0.5645, allocations: 18.48 kB / 370 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.627e-05/0.5645, allocations: 1.969 kB / 370 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5646, allocations: 2.375 kB / 370 MB, free: 25.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.5671, allocations: 0.7675 MB / 370.8 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.5675, allocations: 153 kB / 371 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/0.5677, allocations: 22.34 kB / 371 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/0.5683, allocations: 28.14 kB / 371 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.5685, allocations: 32.73 kB / 371 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.828e-05/0.5686, allocations: 23.48 kB / 371.1 MB, free: 25.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002068/0.5707, allocations: 0.6771 MB / 371.7 MB, free: 25.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.81e-07/0.5707, allocations: 0.8438 kB / 371.7 MB, free: 25.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00152/0.5723, allocations: 153.5 kB / 371.9 MB, free: 25.33 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.002132/0.5744, allocations: 0.4943 MB / 372.4 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.5763, allocations: 0.6156 MB / 373 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5764, allocations: 0.5 kB / 373 MB, free: 25.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008791/0.5773, allocations: 423.9 kB / 373.4 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.5789, allocations: 158.9 kB / 373.6 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/0.5825, allocations: 1.395 MB / 375 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007268/0.5832, allocations: 0.9328 MB / 375.9 MB, free: 23.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002838/0.5835, allocations: 55.69 kB / 376 MB, free: 23.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5835, allocations: 1.406 kB / 376 MB, free: 23.25 MB / 302.1 MB Notification: Performance of Templates: time 0.03187/0.6154, allocations: 9.749 MB / 385.7 MB, free: 20.11 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/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