Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 51.92 kB / 374.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1083, allocations: 53.33 MB / 427.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.00502/0.1133, allocations: 2.594 MB / 430.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003977/0.1173, allocations: 1.943 MB / 432 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004472/0.1177, allocations: 15.88 kB / 432 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.1192, allocations: 0.5446 MB / 432.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00126/0.1204, allocations: 498.3 kB / 433.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.122, allocations: 0.5327 MB / 433.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.1232, allocations: 0.8182 MB / 434.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.1234, allocations: 62 kB / 434.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006473/0.1241, allocations: 350.7 kB / 434.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007143/0.1248, allocations: 410.5 kB / 435.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.1249, allocations: 40 kB / 435.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.1254, allocations: 235.7 kB / 435.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002929/0.1257, allocations: 211.3 kB / 435.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.1262, allocations: 310.1 kB / 436 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.1275, allocations: 0.8947 MB / 436.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1275, allocations: 0 / 436.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1275, allocations: 0 / 436.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.1275, allocations: 0 / 436.9 MB, free: 10.87 MB / 366.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.002375/0.1299, allocations: 1.253 MB / 438.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1299, allocations: 12.03 kB / 438.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/0.1301, allocations: 80.42 kB / 438.2 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1312, allocations: 0.606 MB / 438.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.1312, allocations: 20.38 kB / 438.9 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.1313, allocations: 24.12 kB / 438.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007288/0.132, allocations: 354.8 kB / 439.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.132, allocations: 11.94 kB / 439.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/0.1321, allocations: 8 kB / 439.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.1321, allocations: 4 kB / 439.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.1325, allocations: 179.8 kB / 439.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.1345, allocations: 1.341 MB / 440.8 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007728/0.1353, allocations: 338.7 kB / 441.1 MB, free: 6.371 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003242/0.1356, allocations: 159.3 kB / 441.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.1357, allocations: 8 kB / 441.3 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000707/0.1364, allocations: 463.2 kB / 441.7 MB, free: 5.688 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.864e-06/0.1364, allocations: 0 / 441.7 MB, free: 5.688 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.00159/0.138, allocations: 0.7519 MB / 442.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003021/0.1383, allocations: 456.9 kB / 442.9 MB, free: 4.359 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.1397, allocations: 0.9733 MB / 443.9 MB, free: 3.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.1398, allocations: 45.7 kB / 443.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.1401, allocations: 316.9 kB / 444.2 MB, free: 3.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1403, allocations: 115.1 kB / 444.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.1405, allocations: 102.1 kB / 444.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1406, allocations: 322 kB / 444.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.141, allocations: 148.9 kB / 444.9 MB, free: 2.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000541/0.1415, allocations: 358.4 kB / 445.3 MB, free: 1.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008982/0.1424, allocations: 0.5782 MB / 445.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1424, allocations: 8 kB / 445.8 MB, free: 1.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001296/0.1437, allocations: 0.6618 MB / 446.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.1438, allocations: 105 kB / 446.6 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.1439, allocations: 7.984 kB / 446.6 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.1439, allocations: 4 kB / 446.6 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.1442, allocations: 68.19 kB / 446.7 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.1442, allocations: 7.938 kB / 446.7 MB, free: 336 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.1445, allocations: 51.72 kB / 446.7 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.1446, allocations: 23.98 kB / 446.8 MB, free: 260 kB / 366.1 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],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.207/0.3515, allocations: 387.8 kB / 447.2 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.3519, allocations: 89.78 kB / 447.2 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002714/0.3522, allocations: 82.66 kB / 447.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.3522, allocations: 6.438 kB / 447.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.3522, allocations: 2.531 kB / 447.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3522, allocations: 3.438 kB / 447.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.3538, allocations: 0.9774 MB / 448.3 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3538, allocations: 2.094 kB / 448.3 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.354, allocations: 21.09 kB / 448.3 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.354, allocations: 4.703 kB / 448.3 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.354, allocations: 22.09 kB / 448.4 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.354, allocations: 6.953 kB / 448.4 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.354, allocations: 3.312 kB / 448.4 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.3552, allocations: 0.7853 MB / 449.2 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.3554, allocations: 154.4 kB / 449.3 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.3555, allocations: 22.59 kB / 449.3 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003137/0.3558, allocations: 27.97 kB / 449.4 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3559, allocations: 36.72 kB / 449.4 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.356, allocations: 26.08 kB / 449.4 MB, free: 23.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009032/0.3569, allocations: 0.701 MB / 450.1 MB, free: 23.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3569, allocations: 3.469 kB / 450.1 MB, free: 23.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007224/0.3576, allocations: 154.1 kB / 450.3 MB, free: 23.35 MB / 366.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.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,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 (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001776/0.3594, allocations: 0.4915 MB / 450.8 MB, free: 23.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3605, allocations: 0.5594 MB / 451.3 MB, free: 23.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.3605, allocations: 4.844 kB / 451.3 MB, free: 23.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004679/0.361, allocations: 365 kB / 451.7 MB, free: 22.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.362, allocations: 186.1 kB / 451.9 MB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.3643, allocations: 1.281 MB / 453.1 MB, free: 22.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005513/0.3649, allocations: 0.938 MB / 454.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.3651, allocations: 63.38 kB / 454.1 MB, free: 21.55 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3651, allocations: 0 / 454.1 MB, free: 21.55 MB / 366.1 MB Notification: Performance of Templates: time 0.02176/0.3868, allocations: 10.12 MB / 464.3 MB, free: 19.27 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.909514272003435]