Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002222/0.002221, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.082/2.082, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001048/0.001048, allocations: 78.72 kB / 267.6 MB, free: 14.05 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.0959/0.0959, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.11e-05, allocations: 4 kB / 386 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3025, allocations: 50.37 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.4504, allocations: 84.48 MB / 0.5086 GB, free: 9.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003523/0.4508, allocations: 71.97 kB / 0.5087 GB, free: 9.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03649/0.4873, allocations: 8.543 MB / 0.517 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4874, allocations: 0 / 0.517 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.906e-05/0.4874, allocations: 16 kB / 0.517 GB, free: 0.8711 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.00191/0.4893, allocations: 0.7481 MB / 0.5178 GB, free: 68 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4894, allocations: 8.031 kB / 0.5178 GB, free: 60 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2722/0.7616, allocations: 61.02 kB / 0.5178 GB, free: 83.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.7629, allocations: 408.3 kB / 0.5182 GB, free: 83.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.7631, allocations: 105.9 kB / 0.5183 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.7633, allocations: 58.75 kB / 0.5184 GB, free: 83.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.7658, allocations: 0.958 MB / 0.5193 GB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/0.7659, allocations: 2.078 kB / 0.5193 GB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.076e-05/0.766, allocations: 20.19 kB / 0.5193 GB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.766, allocations: 19.19 kB / 0.5194 GB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.7671, allocations: 362.4 kB / 0.5197 GB, free: 83.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003878/0.771, allocations: 1.738 MB / 0.5214 GB, free: 82.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.7732, allocations: 0.5742 MB / 0.522 GB, free: 82.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.7739, allocations: 258.5 kB / 0.5222 GB, free: 82.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.491e-05/0.774, allocations: 20.98 kB / 0.5222 GB, free: 82.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.7745, allocations: 216.3 kB / 0.5224 GB, free: 82.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.527e-06/0.7745, allocations: 0 / 0.5224 GB, free: 82.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.001408/0.7759, allocations: 469 kB / 0.5229 GB, free: 82.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.7761, allocations: 213.1 kB / 0.5231 GB, free: 81.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.7765, allocations: 246.6 kB / 0.5233 GB, free: 81.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.7766, allocations: 41.08 kB / 0.5234 GB, free: 81.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.7767, allocations: 272 kB / 0.5236 GB, free: 81.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.7769, allocations: 133.3 kB / 0.5237 GB, free: 81.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.777, allocations: 17.22 kB / 0.5238 GB, free: 81.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.7771, allocations: 340.2 kB / 0.5241 GB, free: 81.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.7775, allocations: 142.5 kB / 0.5242 GB, free: 80.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.7782, allocations: 432.4 kB / 0.5246 GB, free: 80.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.7787, allocations: 219.6 kB / 0.5248 GB, free: 80.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.7788, allocations: 1.531 kB / 0.5248 GB, free: 80.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001457/0.7802, allocations: 0.5907 MB / 0.5254 GB, free: 80.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.7803, allocations: 16.62 kB / 0.5254 GB, free: 80.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.7803, allocations: 9.156 kB / 0.5254 GB, free: 80.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.105e-05/0.7803, allocations: 15 kB / 0.5255 GB, free: 80.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.7814, allocations: 146.4 kB / 0.5256 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.209e-05/0.7814, allocations: 21.59 kB / 0.5256 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005748/0.782, allocations: 69.16 kB / 0.5257 GB, free: 80.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/0.7821, allocations: 36.47 kB / 0.5257 GB, free: 80.13 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.0002242/0.7823, allocations: 171.3 kB / 0.5259 GB, free: 79.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/0.783, allocations: 266.3 kB / 0.5261 GB, free: 79.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008537/0.7839, allocations: 305.4 kB / 0.5264 GB, free: 79.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.7839, allocations: 7.812 kB / 0.5264 GB, free: 79.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.7839, allocations: 1.844 kB / 0.5264 GB, free: 79.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.784, allocations: 9.047 kB / 0.5264 GB, free: 79.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.7859, allocations: 0.9414 MB / 0.5274 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.786, allocations: 1.062 kB / 0.5274 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.7872, allocations: 120.9 kB / 0.5275 GB, free: 79.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/0.7872, allocations: 3.969 kB / 0.5275 GB, free: 79.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.7873, allocations: 20.11 kB / 0.5275 GB, free: 79.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.198e-06/0.7873, allocations: 8.719 kB / 0.5275 GB, free: 79.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.7873, allocations: 0.8438 kB / 0.5275 GB, free: 79.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.7893, allocations: 0.8766 MB / 0.5284 GB, free: 78.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.7895, allocations: 123.5 kB / 0.5285 GB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.7897, allocations: 20.02 kB / 0.5285 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005726/0.7902, allocations: 30.3 kB / 0.5285 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.7904, allocations: 27.03 kB / 0.5286 GB, free: 78.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.7905, allocations: 20.02 kB / 0.5286 GB, free: 78.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002671/0.7907, allocations: 195.5 kB / 0.5288 GB, free: 78.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7907, allocations: 7.938 kB / 0.5288 GB, free: 78.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007607/0.7915, allocations: 125.7 kB / 0.5289 GB, free: 78.27 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.0002003/0.7917, allocations: 140.8 kB / 0.529 GB, free: 78.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.7928, allocations: 466.9 kB / 0.5295 GB, free: 77.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7929, allocations: 4 kB / 0.5295 GB, free: 77.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.7932, allocations: 135.8 kB / 0.5296 GB, free: 77.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.794, allocations: 179 kB / 0.5298 GB, free: 77.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.796, allocations: 0.7815 MB / 0.5305 GB, free: 77.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.7964, allocations: 0.8712 MB / 0.5314 GB, free: 76.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.7968, allocations: 51.33 kB / 0.5314 GB, free: 76.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7968, allocations: 0 / 0.5314 GB, free: 76.68 MB / 362.7 MB Notification: Performance of Templates: time 0.01211/0.8089, allocations: 5.974 MB / 0.5373 GB, free: 75.35 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.EngineThrottleControl.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches