Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002139/0.00214, allocations: 101.8 kB / 16.45 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002296/0.002296, allocations: 192 kB / 17.38 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 223.3 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07841/0.07841, allocations: 12.59 MB / 283.2 MB, free: 15.41 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 82.05 kB / 394.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1111, allocations: 49.39 MB / 443.5 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.006043/0.1172, allocations: 3.219 MB / 446.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1193, allocations: 0.7243 MB / 447.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006614/0.12, allocations: 15.94 kB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003984/0.1204, allocations: 63.19 kB / 447.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005586/0.121, allocations: 79.19 kB / 447.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.1222, allocations: 311.6 kB / 447.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.1235, allocations: 0.6718 MB / 448.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009085/0.1244, allocations: 413.9 kB / 449 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004922/0.125, allocations: 259.1 kB / 449.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006167/0.1256, allocations: 290.7 kB / 449.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003032/0.1259, allocations: 80 kB / 449.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.1261, allocations: 80 kB / 449.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.1263, allocations: 159.6 kB / 449.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004238/0.1267, allocations: 310.5 kB / 450.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.128, allocations: 0.8678 MB / 451 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.128, allocations: 0 / 451 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.128, allocations: 4 kB / 451 MB, free: 8.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.774e-05/0.1281, allocations: 0 / 451 MB, free: 8.977 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.002477/0.1306, allocations: 0.9075 MB / 451.9 MB, free: 8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.1306, allocations: 8.031 kB / 452 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1308, allocations: 72.52 kB / 452 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.1317, allocations: 434.4 kB / 452.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.1318, allocations: 97.28 kB / 452.5 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.132, allocations: 60.38 kB / 452.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.1343, allocations: 1.014 MB / 453.6 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.904e-05/0.1343, allocations: 3.938 kB / 453.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.1344, allocations: 20 kB / 453.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.1345, allocations: 16 kB / 453.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009617/0.1354, allocations: 407.6 kB / 454.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.1386, allocations: 1.693 MB / 455.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.1403, allocations: 0.6038 MB / 456.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005658/0.1409, allocations: 287.7 kB / 456.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.1409, allocations: 16.47 kB / 456.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004208/0.1414, allocations: 242.6 kB / 456.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 4.198e-06/0.1414, allocations: 0 / 456.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.001523/0.1429, allocations: 0.6922 MB / 457.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001876/0.1431, allocations: 208 kB / 457.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.1435, allocations: 279 kB / 458.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.478e-05/0.1435, allocations: 37.7 kB / 458.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1437, allocations: 217.3 kB / 458.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.1438, allocations: 146.9 kB / 458.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.144, allocations: 122.7 kB / 458.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1442, allocations: 350.7 kB / 458.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.1446, allocations: 169.9 kB / 459.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005509/0.1451, allocations: 454.8 kB / 459.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009411/0.1461, allocations: 0.6215 MB / 460.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.1461, allocations: 4 kB / 460.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001245/0.1473, allocations: 0.6491 MB / 460.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.1474, allocations: 8 kB / 460.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.1474, allocations: 16.09 kB / 460.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.023e-05/0.1474, allocations: 15.98 kB / 460.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.148, allocations: 144.3 kB / 461 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.148, allocations: 23.92 kB / 461 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003876/0.1484, allocations: 71.55 kB / 461.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-05/0.1485, allocations: 32 kB / 461.1 MB, free: 14.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$whenCondition2,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y) * Number of discrete states: 0 () * Number of clocked states: 6 (rotationalClock.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des,engine.inductionToPowerDelay.m_a_sampled,engine.crankshaftPositionEvent.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * 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.0003156/0.1488, allocations: 231 kB / 461.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000547/0.1493, allocations: 278.6 kB / 461.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007314/0.1501, allocations: 332.5 kB / 461.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.1501, allocations: 8 kB / 461.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.1501, allocations: 4 kB / 461.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.1501, allocations: 3.984 kB / 461.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.1518, allocations: 0.9604 MB / 462.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.1518, allocations: 4 kB / 462.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.1524, allocations: 123.8 kB / 463 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.1524, allocations: 3.938 kB / 463 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.949e-05/0.1525, allocations: 16 kB / 463 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.1525, allocations: 11.92 kB / 463.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1525, allocations: 0 / 463.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.1542, allocations: 0.9111 MB / 464 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.1543, allocations: 128.8 kB / 464.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.119e-05/0.1544, allocations: 16 kB / 464.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.1547, allocations: 31.86 kB / 464.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1548, allocations: 24.09 kB / 464.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/0.1548, allocations: 31.98 kB / 464.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.1551, allocations: 190 kB / 464.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1551, allocations: 0 / 464.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005532/0.1556, allocations: 115.8 kB / 464.5 MB, free: 10.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (engine.throttleBody.m_ai,engine.intakeManifold.P_m,engine.cylinderAirCharge.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (engine.crankshaftPositionEvent.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.m_a_sampled,speedControl.N_des,speedControl.N,speedControl.x_d,rotationalClock.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001831/0.1558, allocations: 131.1 kB / 464.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.1569, allocations: 0.5051 MB / 465.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1569, allocations: 0 / 465.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.1572, allocations: 144.1 kB / 465.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.1579, allocations: 200.8 kB / 465.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.1599, allocations: 1.002 MB / 466.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.1604, allocations: 0.8636 MB / 467.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002465/0.1606, allocations: 47.41 kB / 467.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.1608, allocations: 47.42 kB / 467.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1608, allocations: 0 / 467.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01109/0.1719, allocations: 4.837 MB / 472.3 MB, free: 2.887 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.EngineThrottleControl.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches