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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 200.9 kB / 18.1 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007571/0.0007571, allocations: 103 kB / 297.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002398, allocations: 8 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2555, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3601, allocations: 83.55 MB / 492.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.3604, allocations: 79.89 kB / 493 MB, free: 7.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2581/0.6185, allocations: 28.18 MB / 0.509 GB, free: 91.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6186, allocations: 2.625 kB / 0.509 GB, free: 91.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.357e-05/0.6186, allocations: 15.06 kB / 0.509 GB, free: 91.15 MB / 378.7 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.00149/0.6201, allocations: 1.169 MB / 0.5101 GB, free: 90.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.6202, allocations: 9.156 kB / 0.5101 GB, free: 90.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.6204, allocations: 80.09 kB / 0.5102 GB, free: 90.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.6215, allocations: 0.6863 MB / 0.5109 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.6216, allocations: 19.03 kB / 0.5109 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.6217, allocations: 21.34 kB / 0.5109 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006318/0.6223, allocations: 380 kB / 0.5113 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.6223, allocations: 192 / 0.5113 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.6224, allocations: 16.47 kB / 0.5113 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.6224, allocations: 5.406 kB / 0.5113 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.6228, allocations: 200.4 kB / 0.5115 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.6241, allocations: 1.437 MB / 0.5129 GB, free: 89.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.6248, allocations: 368.8 kB / 0.5132 GB, free: 88.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.625, allocations: 191.9 kB / 0.5134 GB, free: 88.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.6251, allocations: 10.84 kB / 0.5134 GB, free: 88.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004618/0.6255, allocations: 478.5 kB / 0.5139 GB, free: 88.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.6255, allocations: 0 / 0.5139 GB, free: 88.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.00119/0.6267, allocations: 0.8083 MB / 0.5147 GB, free: 88.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.812e-05/0.6269, allocations: 456 kB / 0.5151 GB, free: 87.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009708/0.6278, allocations: 0.9665 MB / 0.5161 GB, free: 87.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.6279, allocations: 45.64 kB / 0.5161 GB, free: 87.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.6281, allocations: 317.2 kB / 0.5164 GB, free: 87.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.994e-05/0.6282, allocations: 113.7 kB / 0.5165 GB, free: 87.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.6282, allocations: 8.125 kB / 0.5165 GB, free: 87.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.6283, allocations: 327.9 kB / 0.5168 GB, free: 87.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.6285, allocations: 158.8 kB / 0.517 GB, free: 87.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003547/0.6289, allocations: 378.4 kB / 0.5173 GB, free: 87.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.6295, allocations: 0.603 MB / 0.5179 GB, free: 86.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6295, allocations: 3.406 kB / 0.5179 GB, free: 86.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009008/0.6304, allocations: 0.7128 MB / 0.5186 GB, free: 86.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.949e-05/0.6305, allocations: 95.16 kB / 0.5187 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.6305, allocations: 3.469 kB / 0.5187 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.6305, allocations: 7.656 kB / 0.5187 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.6307, allocations: 71.47 kB / 0.5188 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.6307, allocations: 7.562 kB / 0.5188 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.631, allocations: 49.81 kB / 0.5189 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.557e-05/0.6311, allocations: 30.98 kB / 0.5189 GB, free: 86.18 MB / 378.7 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],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003165/0.6314, allocations: 395.8 kB / 0.5193 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.801e-05/0.6315, allocations: 82.19 kB / 0.5193 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007953/0.6323, allocations: 0.5475 MB / 0.5199 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.6323, allocations: 11.66 kB / 0.5199 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6323, allocations: 0 / 0.5199 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.6323, allocations: 3.562 kB / 0.5199 GB, free: 85.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.6334, allocations: 1.09 MB / 0.521 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.6334, allocations: 3.938 kB / 0.521 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.6335, allocations: 35.75 kB / 0.521 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.6335, allocations: 7.812 kB / 0.521 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.6335, allocations: 21.84 kB / 0.521 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.6335, allocations: 0 / 0.521 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.6335, allocations: 9.359 kB / 0.521 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009241/0.6345, allocations: 0.8462 MB / 0.5219 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.6346, allocations: 202.1 kB / 0.522 GB, free: 84.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.6348, allocations: 23.55 kB / 0.5221 GB, free: 84.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.635, allocations: 29.09 kB / 0.5221 GB, free: 84.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.6351, allocations: 42.91 kB / 0.5221 GB, free: 84.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.6352, allocations: 25.39 kB / 0.5222 GB, free: 84.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006815/0.6359, allocations: 0.6929 MB / 0.5228 GB, free: 84.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6359, allocations: 0 / 0.5228 GB, free: 84.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000636/0.6365, allocations: 192.3 kB / 0.523 GB, free: 83.98 MB / 378.7 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.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,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 (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000968/0.6375, allocations: 0.5006 MB / 0.5235 GB, free: 83.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007834/0.6383, allocations: 0.6635 MB / 0.5242 GB, free: 83.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6383, allocations: 0 / 0.5242 GB, free: 83.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.6387, allocations: 457.2 kB / 0.5246 GB, free: 83.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.6398, allocations: 153.7 kB / 0.5247 GB, free: 83.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.6415, allocations: 1.377 MB / 0.5261 GB, free: 82.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.6418, allocations: 0.9552 MB / 0.527 GB, free: 81.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.6421, allocations: 124.9 kB / 0.5271 GB, free: 81.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.6423, allocations: 67.88 kB / 0.5272 GB, free: 81.58 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6423, allocations: 0 / 0.5272 GB, free: 81.58 MB / 378.7 MB Notification: Performance of Templates: time 0.01396/0.6563, allocations: 9.414 MB / 0.5364 GB, free: 74.62 MB / 378.7 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","../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches