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.001206/0.001206, allocations: 173.2 kB / 16.45 MB, free: 5.684 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.481/1.481, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007486/0.0007486, allocations: 99.44 kB / 270.9 MB, free: 8.352 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.06591/0.06591, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003577, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06178/0.06215, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.002411/0.0646, allocations: 2.701 MB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008195/0.06543, allocations: 0.6933 MB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.0656, allocations: 11.94 kB / 445.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.06573, allocations: 47.5 kB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.06584, allocations: 43.64 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.0663, allocations: 207.6 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003351/0.06664, allocations: 0.5818 MB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.06695, allocations: 289.4 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.06706, allocations: 155.3 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.06724, allocations: 194.9 kB / 447.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/0.06729, allocations: 16 kB / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.479e-05/0.06734, allocations: 20 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.06739, allocations: 83.61 kB / 447.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.386e-05/0.06746, allocations: 109.5 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.06782, allocations: 0.6548 MB / 448.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.06783, allocations: 0 / 448.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.06784, allocations: 4 kB / 448.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.06785, allocations: 0 / 448.2 MB, free: 10.63 MB / 298.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.001043/0.0689, allocations: 0.7793 MB / 448.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.06894, allocations: 8.031 kB / 448.9 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.074e-05/0.06903, allocations: 63.34 kB / 449 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.06941, allocations: 417 kB / 449.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.382e-05/0.06949, allocations: 104.7 kB / 449.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.986e-05/0.06957, allocations: 56 kB / 449.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.07096, allocations: 1.014 MB / 450.6 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.07099, allocations: 7.938 kB / 450.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.834e-05/0.07105, allocations: 20 kB / 450.6 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.07106, allocations: 12 kB / 450.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007436/0.07181, allocations: 419.7 kB / 451 MB, free: 7.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.07361, allocations: 1.708 MB / 452.7 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.07488, allocations: 0.5963 MB / 453.3 MB, free: 5.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.07531, allocations: 291.3 kB / 453.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.07536, allocations: 16.52 kB / 453.6 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003374/0.0757, allocations: 242.6 kB / 453.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 2.174e-06/0.07572, allocations: 0 / 453.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001212/0.07693, allocations: 0.6928 MB / 454.6 MB, free: 3.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.07702, allocations: 211.9 kB / 454.8 MB, free: 3.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.07722, allocations: 278.9 kB / 455 MB, free: 3.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.07726, allocations: 37.7 kB / 455.1 MB, free: 3.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.57e-05/0.07734, allocations: 213 kB / 455.3 MB, free: 3.117 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.07742, allocations: 142.2 kB / 455.4 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.07745, allocations: 16 kB / 455.4 MB, free: 2.961 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.07751, allocations: 350.8 kB / 455.8 MB, free: 2.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000288/0.0778, allocations: 173.9 kB / 456 MB, free: 2.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.07818, allocations: 470.6 kB / 456.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.07853, allocations: 231.7 kB / 456.6 MB, free: 1.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.07854, allocations: 4 kB / 456.6 MB, free: 1.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008663/0.07941, allocations: 0.6456 MB / 457.3 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.07944, allocations: 12.06 kB / 457.3 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.07945, allocations: 8 kB / 457.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.07948, allocations: 16 kB / 457.3 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.07993, allocations: 151.7 kB / 457.5 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.07995, allocations: 19.94 kB / 457.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.08025, allocations: 71.41 kB / 457.6 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.08029, allocations: 43.94 kB / 457.6 MB, free: 0.6484 MB / 298.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.0001946/0.08049, allocations: 221.6 kB / 457.8 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.08086, allocations: 269 kB / 458.1 MB, free: 160 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006097/0.08148, allocations: 352.4 kB / 458.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.0815, allocations: 8 kB / 458.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.08151, allocations: 0 / 458.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.08152, allocations: 3.984 kB / 458.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.08275, allocations: 0.9781 MB / 459.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.08277, allocations: 3.984 kB / 459.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/0.0833, allocations: 119.9 kB / 459.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.08332, allocations: 0 / 459.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.08336, allocations: 19.98 kB / 459.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.08337, allocations: 7.938 kB / 459.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.08338, allocations: 0 / 459.6 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.08483, allocations: 0.9216 MB / 460.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.3e-05/0.08493, allocations: 132.4 kB / 460.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.085, allocations: 20.12 kB / 460.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.08528, allocations: 31.98 kB / 460.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.08535, allocations: 27.95 kB / 460.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.814e-05/0.0854, allocations: 19.98 kB / 460.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000166/0.08557, allocations: 189.9 kB / 460.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08557, allocations: 0 / 460.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004252/0.08601, allocations: 119.7 kB / 461 MB, free: 13.11 MB / 314.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.0001275/0.08614, allocations: 131.9 kB / 461.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00088/0.08703, allocations: 0.5131 MB / 461.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.08704, allocations: 0 / 461.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.08732, allocations: 155.8 kB / 461.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006199/0.08795, allocations: 201.9 kB / 462 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.08956, allocations: 1.217 MB / 463.2 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.08995, allocations: 0.856 MB / 464.1 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.0901, allocations: 47.42 kB / 464.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09011, allocations: 0 / 464.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of Templates: time 0.00746/0.09757, allocations: 6.101 MB / 470.2 MB, free: 3.805 MB / 314.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/jenkins/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