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.001328/0.001328, allocations: 83.59 kB / 21.18 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.001463/0.001463, allocations: 165 kB / 24.56 MB, free: 12 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.9458/0.9458, allocations: 177.1 MB / 205 MB, free: 5.629 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.724e-06/1.724e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.322e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.006635/0.006658, allocations: 2.56 MB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005706/0.01236, allocations: 1.89 MB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.01257, allocations: 15.88 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.01654, allocations: 0.5568 MB / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007595/0.0173, allocations: 0.5174 MB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009634/0.01826, allocations: 0.5494 MB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007852/0.01905, allocations: 0.8219 MB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.0192, allocations: 66.16 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.02105, allocations: 0.5199 MB / 280.5 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.02132, allocations: 315.2 kB / 280.8 MB, free: 9.754 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.902e-05/0.02137, allocations: 40 kB / 280.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.02166, allocations: 239.5 kB / 281 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.02181, allocations: 199.3 kB / 281.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.02194, allocations: 167.4 kB / 281.4 MB, free: 9.121 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.02256, allocations: 0.6344 MB / 282 MB, free: 8.484 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.02256, allocations: 0 / 282 MB, free: 8.484 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.02256, allocations: 0 / 282 MB, free: 8.484 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.02257, allocations: 0 / 282 MB, free: 8.484 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.001144/0.02371, allocations: 1.27 MB / 283.3 MB, free: 7.133 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.02374, allocations: 8.031 kB / 283.3 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.02387, allocations: 108.4 kB / 283.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006424/0.02451, allocations: 0.5991 MB / 284 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.02454, allocations: 16.38 kB / 284 MB, free: 6.375 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.02457, allocations: 24.38 kB / 284.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.02495, allocations: 360.3 kB / 284.4 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.02496, allocations: 3.938 kB / 284.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.02498, allocations: 11.98 kB / 284.4 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.025, allocations: 15.98 kB / 284.4 MB, free: 5.918 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.02518, allocations: 176.9 kB / 284.6 MB, free: 5.727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.02629, allocations: 1.496 MB / 286.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.02662, allocations: 329.9 kB / 286.4 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.02676, allocations: 187.8 kB / 286.6 MB, free: 3.555 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.02678, allocations: 8 kB / 286.6 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003376/0.02712, allocations: 497.5 kB / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.443e-06/0.02712, allocations: 0 / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007327/0.02785, allocations: 0.758 MB / 287.9 MB, free: 2.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.02795, allocations: 332.4 kB / 288.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.02854, allocations: 0.7494 MB / 288.9 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.02858, allocations: 45.69 kB / 289 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005826/0.02916, allocations: 371.7 kB / 289.3 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.017e-05/0.02924, allocations: 115.1 kB / 289.5 MB, free: 472 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.02936, allocations: 103.8 kB / 289.6 MB, free: 360 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.02948, allocations: 0.4965 MB / 290.1 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.02962, allocations: 154.1 kB / 290.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.02988, allocations: 462.5 kB / 290.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.03023, allocations: 492.8 kB / 291.1 MB, free: 14.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.03024, allocations: 4 kB / 291.1 MB, free: 14.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005588/0.0308, allocations: 0.6279 MB / 291.8 MB, free: 13.84 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.03084, allocations: 93.09 kB / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.03085, allocations: 4 kB / 291.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.03086, allocations: 11.98 kB / 291.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.03101, allocations: 59.91 kB / 291.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.03102, allocations: 19.86 kB / 292 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.03116, allocations: 44.67 kB / 292 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.03118, allocations: 28 kB / 292 MB, free: 13.56 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.0001955/0.03138, allocations: 309.5 kB / 292.3 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.024e-05/0.03147, allocations: 103.5 kB / 292.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.03194, allocations: 0.5096 MB / 292.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.03194, allocations: 4 kB / 292.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.03195, allocations: 0 / 292.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.03195, allocations: 7.984 kB / 292.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.03263, allocations: 0.9216 MB / 293.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.03263, allocations: 3.938 kB / 293.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.0327, allocations: 23.94 kB / 293.9 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.0327, allocations: 7.984 kB / 293.9 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.03273, allocations: 12 kB / 293.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.03273, allocations: 4 kB / 293.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.03273, allocations: 3.984 kB / 293.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006049/0.03334, allocations: 0.8194 MB / 294.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.0334, allocations: 91.28 kB / 294.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.907e-05/0.03347, allocations: 31.92 kB / 294.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.03358, allocations: 15.98 kB / 294.9 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.03366, allocations: 43.94 kB / 294.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.03369, allocations: 20 kB / 294.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000385/0.03407, allocations: 490.9 kB / 295.4 MB, free: 9.977 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03407, allocations: 0 / 295.4 MB, free: 9.977 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003706/0.03444, allocations: 151.8 kB / 295.6 MB, free: 9.828 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.0009146/0.03536, allocations: 480.1 kB / 296 MB, free: 9.488 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007741/0.03613, allocations: 0.6225 MB / 296.7 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.03613, allocations: 0 / 296.7 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.03641, allocations: 410.8 kB / 297.1 MB, free: 8.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.0369, allocations: 190 kB / 297.2 MB, free: 8.152 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.03804, allocations: 1.121 MB / 298.4 MB, free: 6.965 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001074/0.03815, allocations: 165.8 kB / 298.5 MB, free: 6.781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.03832, allocations: 96.86 kB / 298.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.03842, allocations: 60.48 kB / 298.7 MB, free: 6.629 MB / 282.7 MB Notification: Performance of SimCode: time 4.7e-07/0.03842, allocations: 4 kB / 298.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of Templates: time 0.1105/0.149, allocations: 10.19 MB / 308.9 MB, free: 37.61 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.1493947161361575]