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.0008902/0.0008902, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.3 MB / 213.8 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007796/0.0007795, allocations: 90.16 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06898/0.06898, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.506e-05/1.509e-05, allocations: 0 / 378.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2138, allocations: 50.38 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.3185, allocations: 83.81 MB / 0.5011 GB, free: 14.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.3189, allocations: 79.94 kB / 0.5012 GB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0215/0.3404, allocations: 8.467 MB / 0.5094 GB, free: 5.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3404, allocations: 0 / 0.5094 GB, free: 5.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.3405, allocations: 12 kB / 0.5094 GB, free: 5.828 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.001177/0.3416, allocations: 0.7559 MB / 0.5102 GB, free: 5.012 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3417, allocations: 8.031 kB / 0.5102 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3418, allocations: 63.25 kB / 0.5102 GB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.3424, allocations: 418.5 kB / 0.5106 GB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.65e-05/0.3425, allocations: 84.72 kB / 0.5107 GB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-05/0.3425, allocations: 39.91 kB / 0.5108 GB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006993/0.3432, allocations: 374.5 kB / 0.5111 GB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.3446, allocations: 0.8608 MB / 0.512 GB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.3447, allocations: 0 / 0.512 GB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.642e-05/0.3447, allocations: 7.922 kB / 0.512 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.3447, allocations: 16 kB / 0.512 GB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.347, allocations: 1.636 MB / 0.5136 GB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.3482, allocations: 0.5451 MB / 0.5141 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.3485, allocations: 238.9 kB / 0.5143 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/0.3486, allocations: 16.52 kB / 0.5144 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.3489, allocations: 203 kB / 0.5145 GB, free: 304 kB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.246e-06/0.3489, allocations: 4 kB / 0.5146 GB, free: 300 kB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.2244/0.5733, allocations: 423.4 kB / 0.515 GB, free: 87.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.5735, allocations: 204.2 kB / 0.5151 GB, free: 86.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.5739, allocations: 214.9 kB / 0.5154 GB, free: 86.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.726e-05/0.574, allocations: 26.31 kB / 0.5154 GB, free: 86.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.5742, allocations: 222.1 kB / 0.5156 GB, free: 86.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.5744, allocations: 132.8 kB / 0.5157 GB, free: 86.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.5744, allocations: 0 / 0.5157 GB, free: 86.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5746, allocations: 354 kB / 0.5161 GB, free: 86.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.5748, allocations: 131.9 kB / 0.5162 GB, free: 86.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004378/0.5753, allocations: 409.1 kB / 0.5166 GB, free: 85.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.5757, allocations: 200.9 kB / 0.5168 GB, free: 85.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.5758, allocations: 2.5 kB / 0.5168 GB, free: 85.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001027/0.5768, allocations: 0.5323 MB / 0.5173 GB, free: 85.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.5768, allocations: 9.641 kB / 0.5173 GB, free: 85.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.5769, allocations: 9 kB / 0.5173 GB, free: 85.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.63e-05/0.5769, allocations: 14.81 kB / 0.5173 GB, free: 85.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006048/0.5775, allocations: 148 kB / 0.5175 GB, free: 85.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.617e-05/0.5776, allocations: 19.52 kB / 0.5175 GB, free: 85.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.5779, allocations: 55.31 kB / 0.5175 GB, free: 85.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.578, allocations: 33.75 kB / 0.5176 GB, free: 85.77 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 () * 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.0001665/0.5781, allocations: 149.8 kB / 0.5177 GB, free: 85.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004158/0.5786, allocations: 238.7 kB / 0.5179 GB, free: 85.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005453/0.5791, allocations: 276.3 kB / 0.5182 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.5791, allocations: 7.625 kB / 0.5182 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.5791, allocations: 5.219 kB / 0.5182 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.5792, allocations: 4.797 kB / 0.5182 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/0.5804, allocations: 0.8484 MB / 0.519 GB, free: 85.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5804, allocations: 0 / 0.519 GB, free: 85.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005778/0.581, allocations: 122.3 kB / 0.5192 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.581, allocations: 3.5 kB / 0.5192 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.5811, allocations: 11.03 kB / 0.5192 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/0.5811, allocations: 3.156 kB / 0.5192 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5811, allocations: 1.219 kB / 0.5192 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.5824, allocations: 0.8311 MB / 0.52 GB, free: 85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.341e-05/0.5824, allocations: 127.6 kB / 0.5201 GB, free: 84.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.5825, allocations: 10.31 kB / 0.5201 GB, free: 84.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.5828, allocations: 19.25 kB / 0.5201 GB, free: 84.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/0.5829, allocations: 23.72 kB / 0.5202 GB, free: 84.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/0.5829, allocations: 19.36 kB / 0.5202 GB, free: 84.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.5831, allocations: 167.7 kB / 0.5203 GB, free: 84.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5831, allocations: 1 kB / 0.5203 GB, free: 84.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007468/0.5839, allocations: 104.5 kB / 0.5204 GB, free: 84.78 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 () * 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.0002046/0.5841, allocations: 138 kB / 0.5206 GB, free: 84.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008113/0.5849, allocations: 416.3 kB / 0.521 GB, free: 84.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5849, allocations: 3.422 kB / 0.521 GB, free: 84.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.5851, allocations: 125.8 kB / 0.5211 GB, free: 84.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006127/0.5858, allocations: 156.2 kB / 0.5212 GB, free: 84.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.5875, allocations: 0.7137 MB / 0.5219 GB, free: 84.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.5881, allocations: 0.8724 MB / 0.5228 GB, free: 83.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002782/0.5884, allocations: 50.81 kB / 0.5228 GB, free: 83.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.5885, allocations: 44.59 kB / 0.5229 GB, free: 83.49 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5885, allocations: 5.734 kB / 0.5229 GB, free: 83.49 MB / 362.7 MB Notification: Performance of Templates: time 0.008281/0.5968, allocations: 3.889 MB / 0.5267 GB, free: 83.22 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