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.002283/0.002283, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 90.66 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.167e-05/2.177e-05, allocations: 4 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3313, allocations: 47.56 MB / 362.3 MB, free: 45.8 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.4577, allocations: 80.28 MB / 442.6 MB, free: 6.027 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.458, allocations: 72.98 kB / 442.7 MB, free: 5.957 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.119/0.5771, allocations: 25.72 MB / 468.4 MB, free: 12.32 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5771, allocations: 4 kB / 468.4 MB, free: 12.32 MB / 363.1 MB Notification: Performance of Transformations before backend: time 9.692e-05/0.5772, allocations: 15.94 kB / 468.4 MB, free: 12.3 MB / 363.1 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.002351/0.5796, allocations: 0.9821 MB / 469.4 MB, free: 11.23 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.5797, allocations: 12.03 kB / 469.4 MB, free: 11.22 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000383/0.5801, allocations: 75.06 kB / 469.5 MB, free: 11.14 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.5821, allocations: 0.6088 MB / 470.1 MB, free: 10.49 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.454e-05/0.5822, allocations: 12 kB / 470.1 MB, free: 10.48 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.878e-05/0.5823, allocations: 15.95 kB / 470.1 MB, free: 10.46 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005545/0.5829, allocations: 177.4 kB / 470.3 MB, free: 10.29 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007663/0.5836, allocations: 338.7 kB / 470.6 MB, free: 9.918 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.5837, allocations: 0 / 470.6 MB, free: 9.918 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-05/0.5837, allocations: 19.25 kB / 470.6 MB, free: 9.902 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.5838, allocations: 4 kB / 470.6 MB, free: 9.898 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002956/0.5868, allocations: 1.372 MB / 472 MB, free: 8.465 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008023/0.5876, allocations: 335 kB / 472.3 MB, free: 8.102 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004069/0.588, allocations: 163.6 kB / 472.5 MB, free: 7.93 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.5881, allocations: 19.97 kB / 472.5 MB, free: 7.91 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008654/0.589, allocations: 443.6 kB / 473 MB, free: 7.418 MB / 363.1 MB Notification: Performance of pre-optimization done (n=42): time 3.757e-06/0.589, allocations: 0 / 473 MB, free: 7.418 MB / 363.1 MB Notification: Performance of matching and sorting (n=42): time 0.00189/0.5909, allocations: 0.5274 MB / 473.5 MB, free: 6.879 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003052/0.5913, allocations: 456.9 kB / 473.9 MB, free: 6.328 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.5932, allocations: 0.8083 MB / 474.7 MB, free: 5.516 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.5935, allocations: 37.7 kB / 474.8 MB, free: 5.473 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.5938, allocations: 307.7 kB / 475.1 MB, free: 5.172 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.594, allocations: 106.7 kB / 475.2 MB, free: 5.066 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.5941, allocations: 0 / 475.2 MB, free: 5.066 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.5943, allocations: 338.8 kB / 475.5 MB, free: 4.727 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.5947, allocations: 137 kB / 475.6 MB, free: 4.594 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006626/0.5954, allocations: 353.6 kB / 476 MB, free: 4.172 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000552/0.596, allocations: 173 kB / 476.2 MB, free: 4.004 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.596, allocations: 0 / 476.2 MB, free: 4.004 MB / 363.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001464/0.5975, allocations: 0.5105 MB / 476.7 MB, free: 3.488 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.5976, allocations: 93.84 kB / 476.8 MB, free: 3.379 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.5976, allocations: 4 kB / 476.8 MB, free: 3.375 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.5977, allocations: 4 kB / 476.8 MB, free: 3.371 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.5982, allocations: 75.78 kB / 476.8 MB, free: 3.297 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.5982, allocations: 8 kB / 476.8 MB, free: 3.289 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.5989, allocations: 35.73 kB / 476.9 MB, free: 3.254 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.298e-05/0.5989, allocations: 24 kB / 476.9 MB, free: 3.23 MB / 363.1 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.0004193/0.5994, allocations: 262.7 kB / 477.2 MB, free: 2.953 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.5997, allocations: 79.34 kB / 477.2 MB, free: 2.875 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.601, allocations: 435.4 kB / 477.7 MB, free: 2.441 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.601, allocations: 8 kB / 477.7 MB, free: 2.434 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.601, allocations: 11.89 kB / 477.7 MB, free: 2.422 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.6011, allocations: 3.984 kB / 477.7 MB, free: 2.418 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.6032, allocations: 0.9412 MB / 478.6 MB, free: 1.434 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.6032, allocations: 0 / 478.6 MB, free: 1.434 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.6035, allocations: 27.98 kB / 478.7 MB, free: 1.406 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.6035, allocations: 0 / 478.7 MB, free: 1.406 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-05/0.6036, allocations: 23.98 kB / 478.7 MB, free: 1.383 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.6036, allocations: 3.938 kB / 478.7 MB, free: 1.379 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.6036, allocations: 11.89 kB / 478.7 MB, free: 1.367 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.6055, allocations: 0.7396 MB / 479.4 MB, free: 0.582 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.6059, allocations: 188.1 kB / 479.6 MB, free: 388 kB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.6062, allocations: 19.98 kB / 479.6 MB, free: 368 kB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00051/0.6067, allocations: 23.98 kB / 479.7 MB, free: 344 kB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.6069, allocations: 39.94 kB / 479.7 MB, free: 304 kB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/0.607, allocations: 20 kB / 479.7 MB, free: 284 kB / 363.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.6084, allocations: 0.628 MB / 480.3 MB, free: 15.65 MB / 379.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6084, allocations: 3.938 kB / 480.4 MB, free: 15.65 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001257/0.6097, allocations: 168 kB / 480.5 MB, free: 15.48 MB / 379.1 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.001462/0.6112, allocations: 458.1 kB / 481 MB, free: 15.06 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.6126, allocations: 0.6109 MB / 481.6 MB, free: 14.41 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.6127, allocations: 4 kB / 481.6 MB, free: 14.41 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007307/0.6134, allocations: 421.9 kB / 482 MB, free: 13.96 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.6148, allocations: 144.4 kB / 482.1 MB, free: 13.82 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.6176, allocations: 1 MB / 483.1 MB, free: 12.78 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008444/0.6185, allocations: 0.9528 MB / 484.1 MB, free: 11.8 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/0.6189, allocations: 63.42 kB / 484.1 MB, free: 11.73 MB / 379.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6189, allocations: 4 kB / 484.2 MB, free: 11.73 MB / 379.1 MB Notification: Performance of Templates: time 0.02529/0.6442, allocations: 9.937 MB / 494.1 MB, free: 1.781 MB / 379.1 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