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.001243/0.001243, allocations: 84.19 kB / 15.75 MB, free: 416 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.001664/0.001664, allocations: 176.4 kB / 16.63 MB, free: 6.887 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.517/1.517, allocations: 205.4 MB / 222.8 MB, free: 5.625 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.07874/0.07874, allocations: 12.61 MB / 283.7 MB, free: 8.672 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.0007876/0.0007877, allocations: 16 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1059, allocations: 50.37 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.004099/0.1101, allocations: 2.706 MB / 397.6 MB, free: 72 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.1119, allocations: 0.6972 MB / 398.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000643/0.1126, allocations: 15.88 kB / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.1129, allocations: 43.52 kB / 398.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003222/0.1132, allocations: 39.62 kB / 398.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009527/0.1142, allocations: 211.7 kB / 398.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009889/0.1152, allocations: 0.5857 MB / 399.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007276/0.1159, allocations: 285.5 kB / 399.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003826/0.1163, allocations: 155.3 kB / 399.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004167/0.1168, allocations: 190.9 kB / 399.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.322e-05/0.1169, allocations: 19.94 kB / 399.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.283e-05/0.1169, allocations: 16 kB / 399.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.311e-05/0.117, allocations: 79.67 kB / 399.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.1172, allocations: 117.4 kB / 400 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008596/0.1181, allocations: 0.647 MB / 400.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1181, allocations: 4 kB / 400.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.059e-06/0.1181, allocations: 0 / 400.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.965e-05/0.1182, allocations: 3.938 kB / 400.7 MB, free: 12.96 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.001995/0.1202, allocations: 0.7832 MB / 401.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.1202, allocations: 12.03 kB / 401.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.1205, allocations: 59.34 kB / 401.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007372/0.1212, allocations: 412.9 kB / 402 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.1214, allocations: 100.7 kB / 402.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.1216, allocations: 63.98 kB / 402.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/0.1237, allocations: 1.009 MB / 403.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/0.1238, allocations: 0 / 403.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-05/0.1239, allocations: 24 kB / 403.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.1239, allocations: 15.98 kB / 403.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.1249, allocations: 419.6 kB / 403.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.1278, allocations: 1.708 MB / 405.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.1294, allocations: 0.6002 MB / 405.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.13, allocations: 291.8 kB / 406.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.445e-05/0.13, allocations: 15.98 kB / 406.2 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005055/0.1305, allocations: 238.6 kB / 406.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=68): time 3.647e-06/0.1306, allocations: 3.938 kB / 406.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=68): time 0.001563/0.1321, allocations: 0.6929 MB / 407.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/0.1323, allocations: 203.8 kB / 407.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.1327, allocations: 287 kB / 407.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.1327, allocations: 37.7 kB / 407.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.1329, allocations: 209 kB / 407.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.1331, allocations: 142.2 kB / 408 MB, free: 5.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/0.1331, allocations: 12 kB / 408 MB, free: 5.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1333, allocations: 358.7 kB / 408.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003876/0.1337, allocations: 173.9 kB / 408.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.1343, allocations: 458.6 kB / 409 MB, free: 4.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004849/0.1348, allocations: 239.7 kB / 409.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.1348, allocations: 4 kB / 409.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001261/0.1361, allocations: 0.6455 MB / 409.8 MB, free: 3.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.1361, allocations: 16.19 kB / 409.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.1361, allocations: 8 kB / 409.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.223e-05/0.1362, allocations: 16 kB / 409.9 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/0.1367, allocations: 151.7 kB / 410 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.674e-05/0.1368, allocations: 15.94 kB / 410 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.1371, allocations: 71.36 kB / 410.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.1372, allocations: 43.98 kB / 410.2 MB, free: 2.973 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.0003172/0.1375, allocations: 225.6 kB / 410.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005077/0.138, allocations: 274.4 kB / 410.6 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007074/0.1388, allocations: 352.4 kB / 411 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.1388, allocations: 4 kB / 411 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.1388, allocations: 7.938 kB / 411 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1388, allocations: 3.984 kB / 411 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.1403, allocations: 0.9703 MB / 412 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.1403, allocations: 0 / 412 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000573/0.1409, allocations: 123.8 kB / 412.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-05/0.1409, allocations: 4 kB / 412.1 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.426e-05/0.141, allocations: 15.98 kB / 412.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.276e-06/0.141, allocations: 8 kB / 412.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.141, allocations: 0 / 412.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.1427, allocations: 0.9325 MB / 413.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1428, allocations: 128.6 kB / 413.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.589e-05/0.1429, allocations: 16 kB / 413.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.1431, allocations: 27.98 kB / 413.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/0.1433, allocations: 27.97 kB / 413.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.1433, allocations: 19.98 kB / 413.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.1435, allocations: 190 kB / 413.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1435, allocations: 0 / 413.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005892/0.1441, allocations: 119.6 kB / 413.6 MB, free: 15.43 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.0001711/0.1443, allocations: 131.1 kB / 413.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.1454, allocations: 0.5056 MB / 414.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.1454, allocations: 0 / 414.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.1457, allocations: 159.8 kB / 414.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007514/0.1465, allocations: 197.4 kB / 414.6 MB, free: 14.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.1487, allocations: 1.188 MB / 415.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.1492, allocations: 0.8522 MB / 416.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000273/0.1495, allocations: 55.39 kB / 416.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.1496, allocations: 47.42 kB / 416.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1496, allocations: 0 / 416.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of Templates: time 0.009641/0.1593, allocations: 4.118 MB / 420.8 MB, free: 8.113 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