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.001534/0.001534, allocations: 178.4 kB / 17.4 MB, free: 4.398 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.551/1.551, allocations: 223.3 MB / 241.4 MB, free: 11.58 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.0009057/0.0009061, allocations: 91.19 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005053/0.0005056, allocations: 11.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3222, allocations: 50.4 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.4259, allocations: 82.43 MB / 485.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.4262, allocations: 71.97 kB / 485.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08421/0.5105, allocations: 26.66 MB / 0.4999 GB, free: 3.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.5105, allocations: 0 / 0.4999 GB, free: 3.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.5107, allocations: 12 kB / 0.4999 GB, free: 3.148 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.003443/0.5141, allocations: 1.131 MB / 0.501 GB, free: 1.918 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.5142, allocations: 8.031 kB / 0.501 GB, free: 1.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003933/0.5146, allocations: 80 kB / 0.5011 GB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/0.517, allocations: 0.6444 MB / 0.5017 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-05/0.5171, allocations: 20.38 kB / 0.5017 GB, free: 1.125 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.5172, allocations: 20.38 kB / 0.5018 GB, free: 1.105 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.5184, allocations: 379.2 kB / 0.5021 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.5184, allocations: 192 / 0.5021 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.265e-05/0.5185, allocations: 11.94 kB / 0.5021 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.933e-05/0.5185, allocations: 8 kB / 0.5021 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007931/0.5193, allocations: 207.7 kB / 0.5023 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2405/0.7599, allocations: 1.42 MB / 0.5037 GB, free: 93.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007534/0.7607, allocations: 376.1 kB / 0.5041 GB, free: 93.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.7611, allocations: 188.3 kB / 0.5043 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.7611, allocations: 4.531 kB / 0.5043 GB, free: 93.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006338/0.7617, allocations: 476.9 kB / 0.5047 GB, free: 93.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.577e-06/0.7617, allocations: 0 / 0.5047 GB, free: 93.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001598/0.7634, allocations: 0.8052 MB / 0.5055 GB, free: 92.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.7635, allocations: 453.9 kB / 0.5059 GB, free: 92.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.7649, allocations: 0.9276 MB / 0.5068 GB, free: 92.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/0.765, allocations: 44.77 kB / 0.5069 GB, free: 92.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.7652, allocations: 306.2 kB / 0.5072 GB, free: 92.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.633e-05/0.7653, allocations: 111.4 kB / 0.5073 GB, free: 92.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.277e-05/0.7653, allocations: 12.16 kB / 0.5073 GB, free: 92.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.126e-05/0.7654, allocations: 326.6 kB / 0.5076 GB, free: 91.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.7657, allocations: 162.9 kB / 0.5078 GB, free: 91.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.7661, allocations: 382 kB / 0.5081 GB, free: 91.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008033/0.767, allocations: 0.6114 MB / 0.5087 GB, free: 91.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.767, allocations: 0 / 0.5087 GB, free: 91.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009103/0.7679, allocations: 0.7033 MB / 0.5094 GB, free: 91.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.768, allocations: 94.64 kB / 0.5095 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.768, allocations: 3.844 kB / 0.5095 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.768, allocations: 7.625 kB / 0.5095 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.7682, allocations: 68.31 kB / 0.5096 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.7682, allocations: 5.125 kB / 0.5096 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.7685, allocations: 48.56 kB / 0.5096 GB, free: 91.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.002e-05/0.7686, allocations: 35.3 kB / 0.5097 GB, free: 91.04 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.00033/0.7689, allocations: 389.8 kB / 0.51 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.657e-05/0.769, allocations: 82.81 kB / 0.5101 GB, free: 90.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007694/0.7698, allocations: 0.5457 MB / 0.5106 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.7698, allocations: 3.781 kB / 0.5107 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.7698, allocations: 0 / 0.5107 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.7698, allocations: 7.422 kB / 0.5107 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.7709, allocations: 1.076 MB / 0.5117 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.7709, allocations: 0 / 0.5117 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.771, allocations: 32.77 kB / 0.5117 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.7711, allocations: 7.688 kB / 0.5117 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.7711, allocations: 11.5 kB / 0.5118 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.7711, allocations: 11.25 kB / 0.5118 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7711, allocations: 0 / 0.5118 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/0.7721, allocations: 0.8395 MB / 0.5126 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.7722, allocations: 196.3 kB / 0.5128 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.7723, allocations: 29.05 kB / 0.5128 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.7726, allocations: 24.98 kB / 0.5128 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.621e-05/0.7727, allocations: 46.5 kB / 0.5129 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.7727, allocations: 23.03 kB / 0.5129 GB, free: 89.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006564/0.7734, allocations: 0.6721 MB / 0.5135 GB, free: 89.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7734, allocations: 0 / 0.5135 GB, free: 89.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005562/0.774, allocations: 185.7 kB / 0.5137 GB, free: 89.77 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.0009526/0.7749, allocations: 0.5205 MB / 0.5142 GB, free: 89.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008019/0.7757, allocations: 0.6502 MB / 0.5149 GB, free: 89.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7757, allocations: 0 / 0.5149 GB, free: 89.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.7762, allocations: 457.5 kB / 0.5153 GB, free: 89.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000828/0.777, allocations: 165.2 kB / 0.5155 GB, free: 89.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.7786, allocations: 1.337 MB / 0.5168 GB, free: 88.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.7789, allocations: 0.9316 MB / 0.5177 GB, free: 87.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.7792, allocations: 126 kB / 0.5178 GB, free: 87.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.7793, allocations: 64.7 kB / 0.5179 GB, free: 87.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.7793, allocations: 4 kB / 0.5179 GB, free: 87.65 MB / 378.7 MB Notification: Performance of Templates: time 0.01407/0.7934, allocations: 9.305 MB / 0.527 GB, free: 85.02 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/jenkins1/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