Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009938/0.0009934, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008499/0.0008499, allocations: 104 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004046, allocations: 11.98 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3213, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1059/0.4273, allocations: 81.03 MB / 456.8 MB, free: 15.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4276, allocations: 75.97 kB / 456.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07104/0.4986, allocations: 26 MB / 482.9 MB, free: 5.527 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4987, allocations: 0 / 482.9 MB, free: 5.527 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.582e-05/0.4987, allocations: 19.92 kB / 482.9 MB, free: 5.508 MB / 362.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.001751/0.5005, allocations: 1.123 MB / 484 MB, free: 4.289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.5005, allocations: 12.03 kB / 484.1 MB, free: 4.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.5007, allocations: 75.06 kB / 484.1 MB, free: 4.203 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.5018, allocations: 0.6202 MB / 484.8 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.5018, allocations: 16 kB / 484.8 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.5019, allocations: 35.94 kB / 484.8 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006178/0.5025, allocations: 374.9 kB / 485.2 MB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.5026, allocations: 0 / 485.2 MB, free: 3.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.5026, allocations: 8 kB / 485.2 MB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.5026, allocations: 8 kB / 485.2 MB, free: 3.066 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003816/0.503, allocations: 195.8 kB / 485.4 MB, free: 2.875 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.5048, allocations: 1.43 MB / 486.8 MB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006796/0.5055, allocations: 378.9 kB / 487.2 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.5055, allocations: 176 / 487.2 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006059/0.5061, allocations: 475.3 kB / 487.6 MB, free: 452 kB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.064e-06/0.5061, allocations: 0 / 487.6 MB, free: 452 kB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001588/0.5077, allocations: 1.036 MB / 488.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002136/0.508, allocations: 456.9 kB / 489.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.5091, allocations: 0.8473 MB / 490 MB, free: 13.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/0.5092, allocations: 45.64 kB / 490 MB, free: 13.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.5095, allocations: 308.8 kB / 490.3 MB, free: 13.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.651e-05/0.5096, allocations: 102.7 kB / 490.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.5096, allocations: 12 kB / 490.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5097, allocations: 334 kB / 490.8 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.51, allocations: 160.9 kB / 490.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.5105, allocations: 374.4 kB / 491.3 MB, free: 12.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.5109, allocations: 273.5 kB / 491.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.5109, allocations: 0 / 491.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001129/0.512, allocations: 0.7081 MB / 492.3 MB, free: 11.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.672e-05/0.5122, allocations: 96.48 kB / 492.3 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.5122, allocations: 4 kB / 492.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.5122, allocations: 8 kB / 492.4 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.5125, allocations: 67.84 kB / 492.4 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5125, allocations: 4 kB / 492.4 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.5128, allocations: 56 kB / 492.5 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.5129, allocations: 24 kB / 492.5 MB, free: 11.23 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean 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.000513/0.5134, allocations: 402.8 kB / 492.9 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.5135, allocations: 83.06 kB / 493 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009263/0.5145, allocations: 0.5406 MB / 493.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5145, allocations: 4 kB / 493.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.5145, allocations: 0 / 493.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.5145, allocations: 4 kB / 493.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.516, allocations: 1.083 MB / 494.6 MB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.516, allocations: 4 kB / 494.6 MB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.5161, allocations: 27.92 kB / 494.6 MB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.5161, allocations: 7.953 kB / 494.7 MB, free: 8.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.5162, allocations: 15.98 kB / 494.7 MB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.5162, allocations: 4 kB / 494.7 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5162, allocations: 80 / 494.7 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.5175, allocations: 0.8789 MB / 495.6 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.5177, allocations: 192.1 kB / 495.7 MB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.5179, allocations: 23.98 kB / 495.8 MB, free: 7.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.5181, allocations: 31.98 kB / 495.8 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.5183, allocations: 39.95 kB / 495.8 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.5183, allocations: 23.98 kB / 495.9 MB, free: 7.688 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008699/0.5192, allocations: 0.6669 MB / 496.5 MB, free: 7.016 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5192, allocations: 192 / 496.5 MB, free: 7.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007964/0.52, allocations: 184 kB / 496.7 MB, free: 6.836 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.001161/0.5212, allocations: 0.5054 MB / 497.2 MB, free: 6.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.5222, allocations: 0.6576 MB / 497.9 MB, free: 5.656 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5222, allocations: 4.562 kB / 497.9 MB, free: 5.652 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005194/0.5228, allocations: 458 kB / 498.3 MB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000716/0.5235, allocations: 157.1 kB / 498.5 MB, free: 5.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.5256, allocations: 1.333 MB / 499.8 MB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/0.5262, allocations: 0.953 MB / 0.489 GB, free: 2.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.5265, allocations: 121.1 kB / 0.4891 GB, free: 2.539 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.5267, allocations: 59.42 kB / 0.4892 GB, free: 2.48 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5267, allocations: 0 / 0.4892 GB, free: 2.48 MB / 378.7 MB Notification: Performance of Templates: time 0.2114/0.738, allocations: 9.204 MB / 0.4982 GB, free: 104.2 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches