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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007071/0.0007071, allocations: 91.19 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002618, allocations: 11.92 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2411, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3442, allocations: 82.35 MB / 483.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.3445, allocations: 71.97 kB / 483.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0691/0.4136, allocations: 26.66 MB / 0.4986 GB, free: 3.336 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4137, allocations: 0 / 0.4986 GB, free: 3.336 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.257e-05/0.4137, allocations: 16.17 kB / 0.4986 GB, free: 3.32 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.001703/0.4154, allocations: 1.139 MB / 0.4997 GB, free: 2.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.4155, allocations: 8.031 kB / 0.4997 GB, free: 2.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.4157, allocations: 79.06 kB / 0.4998 GB, free: 2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.4168, allocations: 0.6125 MB / 0.5004 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.442e-05/0.4168, allocations: 20 kB / 0.5004 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.4169, allocations: 20 kB / 0.5004 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.4175, allocations: 374.6 kB / 0.5008 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4175, allocations: 4 kB / 0.5008 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.4176, allocations: 16 kB / 0.5008 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.4176, allocations: 7.953 kB / 0.5008 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.418, allocations: 199.8 kB / 0.501 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2229/0.6409, allocations: 1.413 MB / 0.5024 GB, free: 93.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.642, allocations: 380 kB / 0.5028 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.6421, allocations: 4.391 kB / 0.5028 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008676/0.6429, allocations: 476.8 kB / 0.5032 GB, free: 93.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 4.578e-06/0.6429, allocations: 3.844 kB / 0.5032 GB, free: 93.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.002068/0.645, allocations: 1.025 MB / 0.5042 GB, free: 92.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002145/0.6452, allocations: 456.3 kB / 0.5047 GB, free: 92.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.6469, allocations: 0.8472 MB / 0.5055 GB, free: 92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.922e-05/0.647, allocations: 47.5 kB / 0.5055 GB, free: 91.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.6474, allocations: 305.6 kB / 0.5058 GB, free: 91.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.6476, allocations: 108.7 kB / 0.5059 GB, free: 91.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.6476, allocations: 7.188 kB / 0.5059 GB, free: 91.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.6477, allocations: 327.4 kB / 0.5063 GB, free: 91.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004409/0.6482, allocations: 164.2 kB / 0.5064 GB, free: 91.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005395/0.6487, allocations: 380 kB / 0.5068 GB, free: 91.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.6492, allocations: 278.1 kB / 0.507 GB, free: 91.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.6492, allocations: 4.656 kB / 0.507 GB, free: 91.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001285/0.6505, allocations: 0.709 MB / 0.5077 GB, free: 91.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.601e-05/0.6506, allocations: 95.89 kB / 0.5078 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.6506, allocations: 3.625 kB / 0.5078 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.6507, allocations: 7.281 kB / 0.5078 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.6509, allocations: 71.31 kB / 0.5079 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.6509, allocations: 3.344 kB / 0.5079 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.6512, allocations: 44.83 kB / 0.5079 GB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.6513, allocations: 26.14 kB / 0.508 GB, free: 90.96 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.0003955/0.6517, allocations: 399.3 kB / 0.5084 GB, free: 90.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.6518, allocations: 85.36 kB / 0.5084 GB, free: 90.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008446/0.6527, allocations: 0.5409 MB / 0.509 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.6527, allocations: 7.156 kB / 0.509 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6527, allocations: 0 / 0.509 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.6527, allocations: 0 / 0.509 GB, free: 90.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001301/0.654, allocations: 1.088 MB / 0.51 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.654, allocations: 0 / 0.51 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.6541, allocations: 27.44 kB / 0.5101 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.6541, allocations: 7.172 kB / 0.5101 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.6542, allocations: 18.28 kB / 0.5101 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.6542, allocations: 3.75 kB / 0.5101 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6542, allocations: 3.625 kB / 0.5101 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.6552, allocations: 0.8678 MB / 0.5109 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.6555, allocations: 196.8 kB / 0.5111 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.6556, allocations: 32.62 kB / 0.5112 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.6558, allocations: 28.97 kB / 0.5112 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-05/0.6559, allocations: 44.34 kB / 0.5112 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.656, allocations: 27.5 kB / 0.5113 GB, free: 89.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006814/0.6567, allocations: 0.6654 MB / 0.5119 GB, free: 89.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6567, allocations: 0 / 0.5119 GB, free: 89.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006328/0.6573, allocations: 187.9 kB / 0.5121 GB, free: 89.65 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.00116/0.6585, allocations: 0.5058 MB / 0.5126 GB, free: 89.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008275/0.6593, allocations: 0.6521 MB / 0.5132 GB, free: 89.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6593, allocations: 3.562 kB / 0.5132 GB, free: 89.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004435/0.6598, allocations: 452.8 kB / 0.5136 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.6605, allocations: 152.8 kB / 0.5138 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.6622, allocations: 1.337 MB / 0.5151 GB, free: 88.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.6626, allocations: 0.9454 MB / 0.516 GB, free: 87.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002786/0.6629, allocations: 129.8 kB / 0.5161 GB, free: 87.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.6631, allocations: 55.34 kB / 0.5162 GB, free: 87.75 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.6631, allocations: 7.484 kB / 0.5162 GB, free: 87.75 MB / 378.7 MB Notification: Performance of Templates: time 0.01346/0.6765, allocations: 9.199 MB / 0.5252 GB, free: 85.49 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches