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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001007/0.001008, allocations: 180.2 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08873/0.08873, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004047, allocations: 15.11 kB / 392 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1073, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1178/0.2252, allocations: 84.56 MB / 0.5146 GB, free: 6.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.2255, allocations: 75.97 kB / 0.5146 GB, free: 6.188 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2395/0.465, allocations: 8.548 MB / 0.523 GB, free: 83.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.465, allocations: 0 / 0.523 GB, free: 83.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.878e-05/0.4651, allocations: 12.97 kB / 0.523 GB, free: 83.05 MB / 362.7 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.001623/0.4667, allocations: 0.7844 MB / 0.5238 GB, free: 82.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.167e-05/0.4668, allocations: 10.31 kB / 0.5238 GB, free: 82.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.467, allocations: 63.44 kB / 0.5238 GB, free: 82.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008465/0.4679, allocations: 424 kB / 0.5242 GB, free: 82.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.468, allocations: 101 kB / 0.5243 GB, free: 82.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.4682, allocations: 61.44 kB / 0.5244 GB, free: 82.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002359/0.4705, allocations: 0.9996 MB / 0.5254 GB, free: 81.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/0.4706, allocations: 0.9688 kB / 0.5254 GB, free: 81.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.225e-05/0.4706, allocations: 22.83 kB / 0.5254 GB, free: 81.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.4707, allocations: 13.59 kB / 0.5254 GB, free: 81.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.4718, allocations: 419.8 kB / 0.5258 GB, free: 81.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.4747, allocations: 1.73 MB / 0.5275 GB, free: 81.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.4763, allocations: 0.6068 MB / 0.5281 GB, free: 81.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.793e-05/0.4764, allocations: 24.45 kB / 0.5281 GB, free: 81.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004328/0.4768, allocations: 235.1 kB / 0.5283 GB, free: 81.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.256e-06/0.4769, allocations: 1.281 kB / 0.5283 GB, free: 81.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001559/0.4784, allocations: 0.683 MB / 0.529 GB, free: 80.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.4786, allocations: 210.5 kB / 0.5292 GB, free: 80.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.4789, allocations: 251.6 kB / 0.5295 GB, free: 80.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.4789, allocations: 38.02 kB / 0.5295 GB, free: 80.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.4791, allocations: 218.6 kB / 0.5297 GB, free: 80.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.4792, allocations: 140.6 kB / 0.5298 GB, free: 80.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.4792, allocations: 15 kB / 0.5298 GB, free: 80.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.627e-05/0.4793, allocations: 351.4 kB / 0.5302 GB, free: 80.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.4797, allocations: 167.8 kB / 0.5303 GB, free: 80.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004597/0.4801, allocations: 456.1 kB / 0.5308 GB, free: 79.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.4805, allocations: 241 kB / 0.531 GB, free: 79.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.4806, allocations: 6.594 kB / 0.531 GB, free: 79.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00107/0.4816, allocations: 0.6529 MB / 0.5316 GB, free: 79.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.4817, allocations: 9.469 kB / 0.5317 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.4817, allocations: 9.844 kB / 0.5317 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.4817, allocations: 14.47 kB / 0.5317 GB, free: 79.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.4823, allocations: 150.8 kB / 0.5318 GB, free: 79.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.4823, allocations: 20.33 kB / 0.5318 GB, free: 79.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.4826, allocations: 71.16 kB / 0.5319 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/0.4827, allocations: 36.23 kB / 0.5319 GB, free: 79.12 MB / 362.7 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.0002615/0.483, allocations: 235.6 kB / 0.5322 GB, free: 78.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004288/0.4834, allocations: 265.5 kB / 0.5324 GB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006172/0.484, allocations: 335.9 kB / 0.5327 GB, free: 78.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.484, allocations: 11.36 kB / 0.5328 GB, free: 78.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4841, allocations: 3.312 kB / 0.5328 GB, free: 78.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.4841, allocations: 9.688 kB / 0.5328 GB, free: 78.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.4854, allocations: 0.9736 MB / 0.5337 GB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4854, allocations: 5.062 kB / 0.5337 GB, free: 78.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.486, allocations: 118.9 kB / 0.5338 GB, free: 78.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.486, allocations: 8.078 kB / 0.5338 GB, free: 78.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.4861, allocations: 15.64 kB / 0.5339 GB, free: 78.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.4861, allocations: 4.125 kB / 0.5339 GB, free: 78.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4861, allocations: 1.375 kB / 0.5339 GB, free: 78.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.4876, allocations: 0.9481 MB / 0.5348 GB, free: 77.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.751e-05/0.4877, allocations: 129.2 kB / 0.5349 GB, free: 77.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.4877, allocations: 17.5 kB / 0.5349 GB, free: 77.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.488, allocations: 32.25 kB / 0.535 GB, free: 77.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.384e-05/0.4881, allocations: 24.98 kB / 0.535 GB, free: 77.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.4882, allocations: 25.53 kB / 0.535 GB, free: 77.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.4884, allocations: 194.6 kB / 0.5352 GB, free: 77.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4884, allocations: 0 / 0.5352 GB, free: 77.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005684/0.4889, allocations: 129.4 kB / 0.5353 GB, free: 77.17 MB / 362.7 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.0002071/0.4891, allocations: 146.8 kB / 0.5355 GB, free: 77.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000944/0.4901, allocations: 0.4976 MB / 0.5359 GB, free: 76.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4901, allocations: 0 / 0.5359 GB, free: 76.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.4904, allocations: 158 kB / 0.5361 GB, free: 76.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.4909, allocations: 185.5 kB / 0.5363 GB, free: 76.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.4924, allocations: 1.179 MB / 0.5374 GB, free: 75.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.4928, allocations: 0.8715 MB / 0.5383 GB, free: 75.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.493, allocations: 47.34 kB / 0.5383 GB, free: 75.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.4931, allocations: 46.83 kB / 0.5384 GB, free: 75.25 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4932, allocations: 3.938 kB / 0.5384 GB, free: 75.25 MB / 362.7 MB Notification: Performance of Templates: time 0.007611/0.5008, allocations: 4.125 MB / 0.5424 GB, free: 74.31 MB / 362.7 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches