Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.007432/0.007432, allocations: 163.3 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.017/1.017, allocations: 177 MB / 205.2 MB, free: 5.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.464e-05, allocations: 2.312 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002886/0.00291, allocations: 2.534 MB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.005469, allocations: 1.92 MB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.005684, allocations: 11.88 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008461/0.00653, allocations: 0.5451 MB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006584/0.007189, allocations: 0.5057 MB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008961/0.008085, allocations: 0.5571 MB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000654/0.008739, allocations: 0.818 MB / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.00889, allocations: 70.14 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009249/0.009815, allocations: 0.517 MB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002786/0.01009, allocations: 299.2 kB / 281.1 MB, free: 9.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.01014, allocations: 36 kB / 281.2 MB, free: 9.398 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003377/0.01048, allocations: 235.6 kB / 281.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001897/0.01067, allocations: 203.3 kB / 281.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.01079, allocations: 163.4 kB / 281.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.0114, allocations: 0.6382 MB / 282.4 MB, free: 8.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.01141, allocations: 0 / 282.4 MB, free: 8.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01141, allocations: 4 kB / 282.4 MB, free: 8.164 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.01141, allocations: 0 / 282.4 MB, free: 8.164 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.0009999/0.01241, allocations: 1.11 MB / 283.5 MB, free: 6.984 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.01244, allocations: 15.98 kB / 283.5 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.354e-05/0.01252, allocations: 64.86 kB / 283.6 MB, free: 6.906 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.01301, allocations: 498.8 kB / 284.1 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.01304, allocations: 20.38 kB / 284.1 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.01306, allocations: 28.36 kB / 284.1 MB, free: 6.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.01335, allocations: 315.4 kB / 284.4 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.01336, allocations: 192 / 284.4 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.01338, allocations: 8.375 kB / 284.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.0134, allocations: 15.92 kB / 284.5 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.01353, allocations: 168.2 kB / 284.6 MB, free: 5.781 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.01423, allocations: 0.9012 MB / 285.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.01451, allocations: 462.4 kB / 286 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.01462, allocations: 168.4 kB / 286.1 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.01464, allocations: 4 kB / 286.1 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003034/0.01494, allocations: 483.2 kB / 286.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.01494, allocations: 0 / 286.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.00043/0.01537, allocations: 0.5548 MB / 287.2 MB, free: 2.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.0155, allocations: 328.4 kB / 287.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00044/0.01594, allocations: 0.6499 MB / 288.1 MB, free: 1.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.01597, allocations: 41.7 kB / 288.2 MB, free: 1.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.01607, allocations: 198.7 kB / 288.4 MB, free: 1.656 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.01613, allocations: 115.2 kB / 288.5 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.01621, allocations: 86.14 kB / 288.6 MB, free: 1.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.611e-05/0.01629, allocations: 333.9 kB / 288.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.416e-05/0.01639, allocations: 140.9 kB / 289 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.01657, allocations: 378 kB / 289.4 MB, free: 500 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.01685, allocations: 456.3 kB / 289.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.01685, allocations: 11.88 kB / 289.9 MB, free: 15.94 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003384/0.01719, allocations: 469.5 kB / 290.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.297e-05/0.01724, allocations: 97.09 kB / 290.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.01725, allocations: 8.281 kB / 290.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.01726, allocations: 4 kB / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.01741, allocations: 59.91 kB / 290.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.01742, allocations: 11.94 kB / 290.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.01756, allocations: 47.72 kB / 290.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.01758, allocations: 20 kB / 290.6 MB, free: 15.17 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,integerValue.number,booleanValue.active) * 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.0001906/0.01777, allocations: 278.2 kB / 290.8 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.01783, allocations: 71.92 kB / 290.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000314/0.01814, allocations: 358.9 kB / 291.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.01815, allocations: 4 kB / 291.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.01815, allocations: 4 kB / 291.3 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.01816, allocations: 11.86 kB / 291.3 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.01864, allocations: 0.6493 MB / 291.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.01864, allocations: 0 / 291.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.527e-05/0.01871, allocations: 24 kB / 291.9 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.01872, allocations: 7.984 kB / 292 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.01873, allocations: 12 kB / 292 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.01874, allocations: 7.938 kB / 292 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.01874, allocations: 3.984 kB / 292 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.01909, allocations: 0.6098 MB / 292.6 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.01915, allocations: 67.42 kB / 292.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.01921, allocations: 27.98 kB / 292.7 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.01932, allocations: 19.98 kB / 292.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.046e-05/0.0194, allocations: 47.86 kB / 292.7 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.01943, allocations: 23.98 kB / 292.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002537/0.01968, allocations: 331.4 kB / 293.1 MB, free: 12.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01968, allocations: 0 / 293.1 MB, free: 12.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005131/0.0202, allocations: 151.8 kB / 293.2 MB, free: 12.31 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 (33): * Single equations (assignments): 22 * 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.001235/0.02143, allocations: 0.5901 MB / 293.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003976/0.02183, allocations: 0.5651 MB / 294.4 MB, free: 11.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.02184, allocations: 8 kB / 294.4 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.02204, allocations: 387.9 kB / 294.8 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.02248, allocations: 189.8 kB / 295 MB, free: 10.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.02354, allocations: 1.1 MB / 296.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.02364, allocations: 169.8 kB / 296.2 MB, free: 9.293 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.0238, allocations: 92.84 kB / 296.3 MB, free: 9.199 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.02406, allocations: 199.3 kB / 296.5 MB, free: 9.004 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.02406, allocations: 8 kB / 296.5 MB, free: 8.996 MB / 282.7 MB Notification: Performance of Templates: time 0.1331/0.1572, allocations: 10.29 MB / 306.8 MB, free: 39.24 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.159041924867779]