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.001568/0.001568, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001561/0.001561, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9957/0.9957, allocations: 177.1 MB / 205 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|stop.on|stop.reset.[0-9,]+.",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.[0-9,]+.|stop.on|stop.reset.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.565e-05, allocations: 6.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003523/0.003549, allocations: 2.559 MB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.006516, allocations: 1.894 MB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.006707, allocations: 7.938 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.007749, allocations: 0.5646 MB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007521/0.008501, allocations: 0.5019 MB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.009543, allocations: 0.5493 MB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007663/0.01031, allocations: 0.8297 MB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.01048, allocations: 70.16 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004583/0.01094, allocations: 439 kB / 280.4 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.01131, allocations: 363 kB / 280.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.57e-05/0.01138, allocations: 40 kB / 280.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003554/0.01174, allocations: 239.5 kB / 281 MB, free: 9.473 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.01193, allocations: 223.3 kB / 281.2 MB, free: 9.254 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.01211, allocations: 175.4 kB / 281.4 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007255/0.01283, allocations: 0.6461 MB / 282 MB, free: 8.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.01284, allocations: 0 / 282 MB, free: 8.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01284, allocations: 0 / 282 MB, free: 8.434 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.01284, allocations: 4 kB / 282 MB, free: 8.43 MB / 266.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.00148/0.01432, allocations: 1.274 MB / 283.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.01436, allocations: 12.03 kB / 283.3 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.01451, allocations: 100.4 kB / 283.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006542/0.01516, allocations: 0.5236 MB / 283.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.0152, allocations: 20.31 kB / 284 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.01524, allocations: 36.36 kB / 284 MB, free: 6.355 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/0.0157, allocations: 385.7 kB / 284.4 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.01572, allocations: 3.938 kB / 284.4 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.01575, allocations: 8 kB / 284.4 MB, free: 5.906 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.315e-05/0.01578, allocations: 11.98 kB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.01601, allocations: 176.9 kB / 284.6 MB, free: 5.703 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.01724, allocations: 1.504 MB / 286.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.01764, allocations: 337.9 kB / 286.4 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.01783, allocations: 187.8 kB / 286.6 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.01785, allocations: 7.984 kB / 286.6 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004429/0.01829, allocations: 0.4937 MB / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.01829, allocations: 0 / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009595/0.01925, allocations: 0.7491 MB / 287.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/0.01941, allocations: 366 kB / 288.2 MB, free: 1.688 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008015/0.02021, allocations: 0.7611 MB / 289 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.02025, allocations: 41.7 kB / 289 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.02051, allocations: 383.6 kB / 289.4 MB, free: 492 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/0.0206, allocations: 111.2 kB / 289.5 MB, free: 380 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.02073, allocations: 107.8 kB / 289.6 MB, free: 264 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002823/0.02101, allocations: 0.4926 MB / 290.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.02119, allocations: 158 kB / 290.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.02152, allocations: 492 kB / 290.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004424/0.02197, allocations: 0.489 MB / 291.2 MB, free: 14.37 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.02197, allocations: 0.5625 kB / 291.2 MB, free: 14.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007322/0.0227, allocations: 0.6278 MB / 291.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.047e-05/0.02276, allocations: 97.09 kB / 291.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.02277, allocations: 4.281 kB / 291.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.02279, allocations: 11.94 kB / 291.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.02299, allocations: 67.84 kB / 292 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.023, allocations: 4 kB / 292 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.02319, allocations: 43.77 kB / 292.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.415e-05/0.02322, allocations: 31.92 kB / 292.1 MB, free: 13.43 MB / 282.7 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.0002303/0.02345, allocations: 313.5 kB / 292.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.02357, allocations: 107.5 kB / 292.5 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006236/0.02419, allocations: 0.5063 MB / 293 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.0242, allocations: 12.12 kB / 293 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.0242, allocations: 0 / 293 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.02421, allocations: 3.984 kB / 293 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009321/0.02514, allocations: 0.9358 MB / 294 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.02515, allocations: 8 kB / 294 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.104e-05/0.02524, allocations: 27.98 kB / 294 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.02525, allocations: 7.938 kB / 294 MB, free: 11.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.02527, allocations: 19.98 kB / 294 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.02528, allocations: 4 kB / 294 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.02528, allocations: 3.938 kB / 294 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008256/0.02611, allocations: 0.8435 MB / 294.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.868e-05/0.02621, allocations: 91.28 kB / 295 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.63e-05/0.02629, allocations: 23.98 kB / 295 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.02647, allocations: 23.98 kB / 295 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.02657, allocations: 39.94 kB / 295 MB, free: 10.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.6e-05/0.0266, allocations: 20 kB / 295.1 MB, free: 10.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005166/0.02712, allocations: 0.4911 MB / 295.5 MB, free: 9.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02712, allocations: 3.938 kB / 295.6 MB, free: 9.766 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005057/0.02763, allocations: 155.8 kB / 295.7 MB, free: 9.613 MB / 282.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) * Number of clocked states: 0 () * 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 (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.001089/0.02872, allocations: 468.7 kB / 296.2 MB, free: 9.289 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006199/0.02934, allocations: 0.6258 MB / 296.8 MB, free: 8.586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.02934, allocations: 0 / 296.8 MB, free: 8.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004563/0.02979, allocations: 415.2 kB / 297.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006733/0.03047, allocations: 203.4 kB / 297.4 MB, free: 7.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.03187, allocations: 1.112 MB / 298.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.03201, allocations: 170.3 kB / 298.7 MB, free: 6.559 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.03222, allocations: 101.1 kB / 298.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.03234, allocations: 64.48 kB / 298.8 MB, free: 6.398 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.03234, allocations: 0 / 298.8 MB, free: 6.398 MB / 282.7 MB Notification: Performance of Templates: time 0.1674/0.1998, allocations: 9.914 MB / 308.7 MB, free: 37.79 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.421379668172449]