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.001131/0.001131, allocations: 172.5 kB / 14.1 MB, free: 1.223 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.496/1.496, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009325/0.0009325, allocations: 86.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.557e-05, allocations: 0 / 322.4 MB, free: 17.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 47.57 MB / 370 MB, free: 1.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.4416, allocations: 80.94 MB / 450.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.4419, allocations: 68.91 kB / 451 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07735/0.5192, allocations: 25.93 MB / 476.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5193, allocations: 0 / 476.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.233e-05/0.5194, allocations: 15.94 kB / 477 MB, free: 3.934 MB / 346.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.002199/0.5216, allocations: 0.9835 MB / 477.9 MB, free: 2.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.814e-05/0.5217, allocations: 15.97 kB / 478 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002314/0.5219, allocations: 75.06 kB / 478 MB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.5237, allocations: 0.6049 MB / 478.6 MB, free: 2.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.394e-05/0.5237, allocations: 19.94 kB / 478.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.736e-05/0.5238, allocations: 31.89 kB / 478.7 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.5247, allocations: 367 kB / 479 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.5248, allocations: 0 / 479 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.5248, allocations: 12 kB / 479.1 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.613e-05/0.5249, allocations: 12 kB / 479.1 MB, free: 1.648 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005353/0.5254, allocations: 191.8 kB / 479.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.5283, allocations: 1.426 MB / 480.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008032/0.5291, allocations: 355 kB / 481 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000432/0.5295, allocations: 183.6 kB / 481.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.5296, allocations: 7.953 kB / 481.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008614/0.5305, allocations: 463.3 kB / 481.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.266e-06/0.5305, allocations: 0 / 481.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001652/0.5321, allocations: 0.6301 MB / 482.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003017/0.5325, allocations: 464.8 kB / 482.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/0.5343, allocations: 0.8396 MB / 483.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/0.5345, allocations: 41.7 kB / 483.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004381/0.5349, allocations: 308.9 kB / 483.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.5351, allocations: 106.7 kB / 484 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.5351, allocations: 8 kB / 484 MB, free: 12.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002489/0.5354, allocations: 330 kB / 484.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.5358, allocations: 149 kB / 484.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.5365, allocations: 370.4 kB / 484.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005353/0.537, allocations: 263.8 kB / 485.1 MB, free: 11.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.5371, allocations: 0 / 485.1 MB, free: 11.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001646/0.5387, allocations: 0.6811 MB / 485.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.5388, allocations: 105 kB / 485.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.5389, allocations: 4.531 kB / 485.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/0.5389, allocations: 11.94 kB / 485.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.5394, allocations: 71.84 kB / 486 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.5394, allocations: 8 kB / 486 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/0.5399, allocations: 43.73 kB / 486.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.763e-05/0.5401, allocations: 31.98 kB / 486.1 MB, free: 10.16 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = false 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 () * 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.0004689/0.5405, allocations: 269.8 kB / 486.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.5407, allocations: 83.06 kB / 486.4 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.5421, allocations: 0.5181 MB / 486.9 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.5421, allocations: 4 kB / 487 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5421, allocations: 0 / 487 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.5422, allocations: 11.98 kB / 487 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.5443, allocations: 1.06 MB / 488 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5443, allocations: 0 / 488 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.5445, allocations: 35.88 kB / 488.1 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.5445, allocations: 8 kB / 488.1 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/0.5446, allocations: 19.98 kB / 488.1 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.5446, allocations: 0 / 488.1 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.75e-05/0.5446, allocations: 160 / 488.1 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.5462, allocations: 0.8669 MB / 489 MB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/0.5466, allocations: 188.1 kB / 489.1 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.5468, allocations: 31.92 kB / 489.2 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/0.5472, allocations: 31.98 kB / 489.2 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.5473, allocations: 43.94 kB / 489.2 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.28e-05/0.5474, allocations: 23.95 kB / 489.3 MB, free: 6.777 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001281/0.5487, allocations: 0.6553 MB / 489.9 MB, free: 6.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5487, allocations: 0 / 489.9 MB, free: 6.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00104/0.5497, allocations: 188 kB / 490.1 MB, free: 5.934 MB / 362.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) * 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.001551/0.5513, allocations: 477.2 kB / 490.6 MB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.5527, allocations: 0.6346 MB / 491.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5527, allocations: 0.5625 kB / 491.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.5534, allocations: 458.1 kB / 491.7 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.5546, allocations: 144.2 kB / 491.8 MB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.5571, allocations: 0.9769 MB / 492.8 MB, free: 3.156 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000819/0.558, allocations: 0.9491 MB / 493.7 MB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005001/0.5585, allocations: 121.2 kB / 493.8 MB, free: 2.055 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.5587, allocations: 59.42 kB / 493.9 MB, free: 1.996 MB / 362.7 MB Notification: Performance of SimCode: time 3.637e-06/0.5587, allocations: 0 / 493.9 MB, free: 1.996 MB / 362.7 MB Notification: Performance of Templates: time 0.02596/0.5847, allocations: 9.223 MB / 0.4913 GB, free: 8.762 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