Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 115.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 192.3 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 55.92 kB / 366.8 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.0958, allocations: 52.14 MB / 418.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004052/0.09985, allocations: 2.553 MB / 421.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003181/0.103, allocations: 1.808 MB / 423.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.1033, allocations: 7.938 kB / 423.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.1046, allocations: 0.5336 MB / 423.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000788/0.1053, allocations: 422.5 kB / 424.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.107, allocations: 0.6795 MB / 424.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009068/0.1079, allocations: 0.7715 MB / 425.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1081, allocations: 61.98 kB / 425.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.1084, allocations: 334.8 kB / 426.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004672/0.1089, allocations: 386.6 kB / 426.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.109, allocations: 40 kB / 426.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004196/0.1094, allocations: 235.7 kB / 426.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.1097, allocations: 215.3 kB / 426.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.11, allocations: 302.1 kB / 427.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.111, allocations: 0.8598 MB / 428.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.111, allocations: 0 / 428.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.111, allocations: 0 / 428.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.111, allocations: 0 / 428.1 MB, free: 2.914 MB / 350.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.001835/0.1128, allocations: 1.226 MB / 429.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1129, allocations: 11.89 kB / 429.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.113, allocations: 88.42 kB / 429.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008601/0.1139, allocations: 0.5941 MB / 430 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.1139, allocations: 19.95 kB / 430 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.114, allocations: 27.98 kB / 430.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006317/0.1146, allocations: 346.7 kB / 430.4 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1146, allocations: 3.938 kB / 430.4 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.1146, allocations: 16 kB / 430.4 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.1147, allocations: 7.984 kB / 430.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1151, allocations: 179.8 kB / 430.6 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.1166, allocations: 1.333 MB / 431.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/0.1174, allocations: 334.8 kB / 432.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.1177, allocations: 155.4 kB / 432.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.1177, allocations: 11.98 kB / 432.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006767/0.1184, allocations: 463.2 kB / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.944e-06/0.1184, allocations: 0 / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.001453/0.1198, allocations: 0.7422 MB / 433.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002615/0.1201, allocations: 456.9 kB / 434.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.1213, allocations: 0.9302 MB / 435 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.1213, allocations: 45.7 kB / 435 MB, free: 11.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.1216, allocations: 316.8 kB / 435.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.1217, allocations: 111.2 kB / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.1219, allocations: 98.11 kB / 435.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.122, allocations: 322 kB / 435.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.1224, allocations: 148.9 kB / 436 MB, free: 10.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.1228, allocations: 354.4 kB / 436.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008306/0.1237, allocations: 0.5854 MB / 437 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1237, allocations: 0 / 437 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001137/0.1248, allocations: 0.674 MB / 437.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/0.1249, allocations: 103.6 kB / 437.7 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1249, allocations: 4 kB / 437.7 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1249, allocations: 4.281 kB / 437.7 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.1252, allocations: 63.91 kB / 437.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.1252, allocations: 8 kB / 437.8 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.1255, allocations: 59.94 kB / 437.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.1256, allocations: 27.98 kB / 437.9 MB, free: 8.402 MB / 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.0005417/0.1261, allocations: 395.8 kB / 438.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.1262, allocations: 79.53 kB / 438.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.1264, allocations: 82.2 kB / 438.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.1264, allocations: 4 kB / 438.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.1264, allocations: 0 / 438.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1264, allocations: 4 kB / 438.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.1277, allocations: 0.9602 MB / 439.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.1277, allocations: 7.938 kB / 439.4 MB, free: 6.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.715e-05/0.1278, allocations: 23.92 kB / 439.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1278, allocations: 4 kB / 439.4 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.1279, allocations: 19.98 kB / 439.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.1279, allocations: 4 kB / 439.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1279, allocations: 4 kB / 439.5 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.129, allocations: 0.7717 MB / 440.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.1292, allocations: 164.6 kB / 440.4 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.1293, allocations: 23.98 kB / 440.4 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1296, allocations: 27.98 kB / 440.4 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.1297, allocations: 39.94 kB / 440.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.716e-05/0.1297, allocations: 23.98 kB / 440.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008955/0.1306, allocations: 0.6708 MB / 441.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1306, allocations: 0 / 441.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005459/0.1312, allocations: 147.9 kB / 441.3 MB, free: 4.809 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.001613/0.1328, allocations: 499.1 kB / 441.8 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009847/0.1338, allocations: 0.568 MB / 442.4 MB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1338, allocations: 0 / 442.4 MB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005008/0.1343, allocations: 366.5 kB / 442.7 MB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008623/0.1351, allocations: 183.8 kB / 442.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.1371, allocations: 1.252 MB / 444.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006329/0.1378, allocations: 0.9291 MB / 445.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.1379, allocations: 59.41 kB / 445.2 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1379, allocations: 0 / 445.2 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of Templates: time 0.1747/0.3126, allocations: 9.846 MB / 455 MB, free: 28.37 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.193320238031447]