Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002303/0.002303, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00105/0.00105, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.996e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.08979, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3928/0.4826, allocations: 80.93 MB / 450 MB, free: 12.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4829, allocations: 69.72 kB / 450.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1186/0.6016, allocations: 25.94 MB / 476 MB, free: 4.281 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6016, allocations: 0 / 476 MB, free: 4.281 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.926e-05/0.6017, allocations: 8 kB / 476 MB, free: 4.273 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.00207/0.6038, allocations: 0.9874 MB / 477 MB, free: 3.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.6039, allocations: 8.031 kB / 477 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.6042, allocations: 79.06 kB / 477.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.6061, allocations: 0.6048 MB / 477.7 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.288e-05/0.6062, allocations: 23.92 kB / 477.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.996e-05/0.6063, allocations: 27.95 kB / 477.8 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008702/0.6072, allocations: 359.1 kB / 478.1 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.6072, allocations: 3.938 kB / 478.1 MB, free: 2.016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.816e-05/0.6073, allocations: 11.98 kB / 478.1 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.671e-05/0.6073, allocations: 12 kB / 478.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005519/0.6079, allocations: 187.8 kB / 478.3 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.6107, allocations: 1.426 MB / 479.7 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008775/0.6116, allocations: 359 kB / 480.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.6121, allocations: 187.6 kB / 480.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.6121, allocations: 3.953 kB / 480.3 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008393/0.613, allocations: 467.3 kB / 480.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.877e-06/0.613, allocations: 0 / 480.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.00182/0.6148, allocations: 0.6223 MB / 481.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002433/0.6151, allocations: 468.8 kB / 481.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.6172, allocations: 0.8357 MB / 482.7 MB, free: 13.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.6174, allocations: 41.7 kB / 482.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.6177, allocations: 311.4 kB / 483 MB, free: 12.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.6179, allocations: 110.6 kB / 483.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.618, allocations: 12 kB / 483.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6181, allocations: 330.8 kB / 483.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.6186, allocations: 149 kB / 483.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006653/0.6193, allocations: 366.4 kB / 483.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005683/0.6199, allocations: 272.2 kB / 484.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.6199, allocations: 0 / 484.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001609/0.6215, allocations: 0.6269 MB / 484.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.991e-05/0.6216, allocations: 97.05 kB / 484.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.6217, allocations: 4 kB / 484.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.6217, allocations: 7.984 kB / 484.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.6222, allocations: 68.12 kB / 485 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.6222, allocations: 8 kB / 485 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/0.6229, allocations: 47.73 kB / 485.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/0.623, allocations: 27.98 kB / 485.1 MB, free: 10.56 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.0004168/0.6235, allocations: 282.1 kB / 485.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.6237, allocations: 79.06 kB / 485.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.6252, allocations: 0.5259 MB / 486 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.6253, allocations: 4 kB / 486 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6253, allocations: 0 / 486 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.6253, allocations: 3.984 kB / 486 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.6275, allocations: 1.067 MB / 487.1 MB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.6276, allocations: 4 kB / 487.1 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.6278, allocations: 31.88 kB / 487.1 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.6279, allocations: 4 kB / 487.1 MB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-05/0.6279, allocations: 19.98 kB / 487.1 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.628, allocations: 4 kB / 487.1 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.628, allocations: 0 / 487.1 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.6299, allocations: 0.8591 MB / 488 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003607/0.6303, allocations: 188.1 kB / 488.2 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002131/0.6306, allocations: 31.98 kB / 488.2 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.6311, allocations: 36.2 kB / 488.2 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.6312, allocations: 31.95 kB / 488.3 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.724e-05/0.6313, allocations: 31.94 kB / 488.3 MB, free: 7.172 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001483/0.6328, allocations: 0.6631 MB / 488.9 MB, free: 6.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.6329, allocations: 0 / 488.9 MB, free: 6.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001193/0.6341, allocations: 188 kB / 489.1 MB, free: 6.32 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.001515/0.6356, allocations: 477.9 kB / 489.6 MB, free: 5.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.6372, allocations: 0.6344 MB / 490.2 MB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.6373, allocations: 4 kB / 490.2 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.638, allocations: 430.4 kB / 490.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.6395, allocations: 152.8 kB / 490.8 MB, free: 4.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.6424, allocations: 1.022 MB / 491.8 MB, free: 3.508 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007391/0.6431, allocations: 0.9607 MB / 492.8 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/0.6435, allocations: 59.42 kB / 492.8 MB, free: 2.457 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6436, allocations: 0 / 492.8 MB, free: 2.457 MB / 362.7 MB Notification: Performance of Templates: time 0.0246/0.6682, allocations: 9.992 MB / 0.4911 GB, free: 8.441 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches