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.001222/0.001222, allocations: 101.2 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 180.9 kB / 16.62 MB, free: 6.422 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.553/1.553, allocations: 205.4 MB / 222.8 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08969/0.08969, allocations: 12.6 MB / 283.7 MB, free: 8.703 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.0007148/0.0007149, allocations: 16 kB / 344.5 MB, free: 21.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.112, allocations: 50.39 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.003598/0.1157, allocations: 2.676 MB / 397.6 MB, free: 128 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.117, allocations: 0.6855 MB / 398.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.1172, allocations: 15.94 kB / 398.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.1173, allocations: 39.56 kB / 398.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1175, allocations: 63.75 kB / 398.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006411/0.1182, allocations: 203.6 kB / 398.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.1186, allocations: 368.4 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004412/0.1191, allocations: 289.4 kB / 399.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.1192, allocations: 151.3 kB / 399.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.1195, allocations: 198.9 kB / 399.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.1196, allocations: 16 kB / 399.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.69e-05/0.1196, allocations: 16 kB / 399.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.535e-05/0.1197, allocations: 83.61 kB / 399.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1198, allocations: 113.4 kB / 399.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000576/0.1204, allocations: 0.6509 MB / 400.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1204, allocations: 4 kB / 400.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1204, allocations: 4 kB / 400.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1204, allocations: 0 / 400.4 MB, free: 13.23 MB / 302.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.001449/0.1219, allocations: 0.7793 MB / 401.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1219, allocations: 8.031 kB / 401.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1221, allocations: 59.34 kB / 401.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.1226, allocations: 409 kB / 401.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.1228, allocations: 104.7 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.271e-05/0.1229, allocations: 59.98 kB / 401.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.1248, allocations: 1.018 MB / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.1248, allocations: 0 / 402.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.1249, allocations: 23.98 kB / 402.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1249, allocations: 16 kB / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009036/0.1258, allocations: 415.6 kB / 403.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.1284, allocations: 1.705 MB / 405 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.13, allocations: 0.6003 MB / 405.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.761e-05/0.1301, allocations: 20.86 kB / 405.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005146/0.1306, allocations: 238.6 kB / 405.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=68): time 2.254e-06/0.1306, allocations: 4 kB / 405.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=68): time 0.001576/0.1322, allocations: 0.6893 MB / 406.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001808/0.1324, allocations: 211.8 kB / 406.8 MB, free: 6.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.1328, allocations: 274.9 kB / 407 MB, free: 6.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.1328, allocations: 37.7 kB / 407.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.133, allocations: 217 kB / 407.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.1331, allocations: 138.2 kB / 407.4 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.1332, allocations: 8 kB / 407.4 MB, free: 5.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1334, allocations: 362.8 kB / 407.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.1337, allocations: 169.9 kB / 407.9 MB, free: 5.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005526/0.1343, allocations: 462.6 kB / 408.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.1347, allocations: 235.7 kB / 408.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.1347, allocations: 4 kB / 408.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00113/0.1359, allocations: 0.6491 MB / 409.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1359, allocations: 8 kB / 409.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1359, allocations: 11.94 kB / 409.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.1359, allocations: 19.94 kB / 409.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.1365, allocations: 148.2 kB / 409.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.221e-05/0.1365, allocations: 19.94 kB / 409.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.1368, allocations: 79.42 kB / 409.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/0.1369, allocations: 35.98 kB / 409.6 MB, free: 3.555 MB / 302.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,rotationalClock.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000325/0.1372, allocations: 229.7 kB / 409.8 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004973/0.1377, allocations: 261 kB / 410.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007177/0.1385, allocations: 352.4 kB / 410.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.1385, allocations: 11.94 kB / 410.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.1385, allocations: 3.953 kB / 410.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1385, allocations: 3.984 kB / 410.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.14, allocations: 0.9742 MB / 411.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.14, allocations: 4 kB / 411.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005234/0.1405, allocations: 119.8 kB / 411.5 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.1405, allocations: 11.95 kB / 411.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.861e-05/0.1406, allocations: 16 kB / 411.6 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.1406, allocations: 7.984 kB / 411.6 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1406, allocations: 4 kB / 411.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.1422, allocations: 0.9469 MB / 412.5 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.702e-05/0.1423, allocations: 132.5 kB / 412.6 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.1424, allocations: 12 kB / 412.7 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.1427, allocations: 31.98 kB / 412.7 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.93e-05/0.1428, allocations: 31.89 kB / 412.7 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.1428, allocations: 16 kB / 412.7 MB, free: 280 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.143, allocations: 194 kB / 412.9 MB, free: 84 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.143, allocations: 0 / 412.9 MB, free: 84 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005888/0.1436, allocations: 123.7 kB / 413 MB, free: 15.96 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001809/0.1438, allocations: 131.2 kB / 413.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009911/0.1448, allocations: 0.5097 MB / 413.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1448, allocations: 4.125 kB / 413.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.1452, allocations: 159.8 kB / 413.8 MB, free: 15.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.1458, allocations: 173.8 kB / 414 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.1477, allocations: 1.18 MB / 415.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.1482, allocations: 0.8755 MB / 416.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002562/0.1484, allocations: 55.39 kB / 416.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.1486, allocations: 39.42 kB / 416.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1486, allocations: 0 / 416.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of Templates: time 0.008879/0.1575, allocations: 4.099 MB / 420.3 MB, free: 8.668 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches