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.001256/0.001255, allocations: 172.7 kB / 16.76 MB, free: 4.938 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.278/1.278, allocations: 205 MB / 222.5 MB, free: 9.055 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.0007019/0.0007019, allocations: 89.69 kB / 270.5 MB, free: 8.656 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.06736/0.06735, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 11.98 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07575/0.07611, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.002653/0.07879, allocations: 2.91 MB / 444.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008787/0.07969, allocations: 0.6814 MB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001919/0.07989, allocations: 19.88 kB / 445.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.08007, allocations: 43.52 kB / 445.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.08021, allocations: 47.62 kB / 445.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.08074, allocations: 283.7 kB / 445.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.08111, allocations: 0.6091 MB / 446.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003867/0.0815, allocations: 386.3 kB / 446.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.08162, allocations: 159.2 kB / 446.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.0818, allocations: 210.7 kB / 447 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.683e-05/0.08185, allocations: 20 kB / 447 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.364e-05/0.0819, allocations: 16 kB / 447 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.08196, allocations: 79.61 kB / 447.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.0821, allocations: 226.5 kB / 447.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.08247, allocations: 0.6507 MB / 448 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.08248, allocations: 0 / 448 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08249, allocations: 0 / 448 MB, free: 10.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.0825, allocations: 0 / 448 MB, free: 10.05 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.001017/0.08352, allocations: 0.7795 MB / 448.8 MB, free: 9.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.08356, allocations: 8.031 kB / 448.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.08367, allocations: 60.28 kB / 448.8 MB, free: 9.145 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.08406, allocations: 422.1 kB / 449.2 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.304e-05/0.08415, allocations: 101.3 kB / 449.3 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.895e-05/0.08422, allocations: 56.38 kB / 449.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.08563, allocations: 1.019 MB / 450.4 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.08567, allocations: 11.94 kB / 450.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.991e-05/0.08572, allocations: 20 kB / 450.4 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.08574, allocations: 12 kB / 450.5 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007334/0.08648, allocations: 419.7 kB / 450.9 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.08828, allocations: 1.716 MB / 452.6 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.08956, allocations: 0.6115 MB / 453.2 MB, free: 4.566 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.08999, allocations: 283.3 kB / 453.5 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.78e-05/0.09005, allocations: 24.52 kB / 453.5 MB, free: 4.254 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.0904, allocations: 234.6 kB / 453.7 MB, free: 4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 2.836e-06/0.09041, allocations: 4 kB / 453.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001203/0.09162, allocations: 0.6905 MB / 454.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.211e-05/0.09171, allocations: 220.3 kB / 454.6 MB, free: 3.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.09195, allocations: 270.9 kB / 454.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.09199, allocations: 41.69 kB / 454.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.09208, allocations: 213 kB / 455.2 MB, free: 2.504 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/0.09216, allocations: 138.2 kB / 455.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/0.09223, allocations: 61.69 kB / 455.3 MB, free: 2.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.0923, allocations: 366.8 kB / 455.7 MB, free: 1.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.09259, allocations: 165.9 kB / 455.9 MB, free: 1.773 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.09298, allocations: 470.6 kB / 456.3 MB, free: 1.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.09362, allocations: 0.6312 MB / 457 MB, free: 432 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.09364, allocations: 0 / 457 MB, free: 432 kB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009503/0.09459, allocations: 0.6565 MB / 457.6 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.09463, allocations: 12.75 kB / 457.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.09465, allocations: 8 kB / 457.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.09468, allocations: 19.98 kB / 457.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.09518, allocations: 151.8 kB / 457.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/0.09521, allocations: 19.92 kB / 457.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.09552, allocations: 63.52 kB / 457.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.09558, allocations: 39.94 kB / 457.9 MB, free: 15.45 MB / 314.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,$CLKPRE.rotationalClock.rotationalClock.changed.u,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,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,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,$whenCondition2,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002707/0.09586, allocations: 233.5 kB / 458.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004488/0.09631, allocations: 269 kB / 458.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006683/0.09699, allocations: 344.8 kB / 458.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.09702, allocations: 8 kB / 458.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.09704, allocations: 8 kB / 458.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.09705, allocations: 3.984 kB / 458.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.09837, allocations: 0.9779 MB / 459.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.09839, allocations: 8 kB / 459.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000508/0.0989, allocations: 119.8 kB / 459.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.521e-05/0.09893, allocations: 4 kB / 459.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.09898, allocations: 19.98 kB / 459.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.75e-06/0.09899, allocations: 7.938 kB / 459.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.09899, allocations: 4 kB / 459.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.1005, allocations: 0.9255 MB / 460.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.036e-05/0.1006, allocations: 128.4 kB / 461 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.1007, allocations: 16 kB / 461 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.101, allocations: 35.91 kB / 461 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.101, allocations: 23.97 kB / 461 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.1011, allocations: 27.98 kB / 461.1 MB, free: 12.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001894/0.1013, allocations: 194 kB / 461.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1013, allocations: 0 / 461.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000471/0.1018, allocations: 115.7 kB / 461.4 MB, free: 11.89 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001383/0.1019, allocations: 127.1 kB / 461.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000927/0.1029, allocations: 0.5096 MB / 462 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1029, allocations: 0 / 462 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.1032, allocations: 156.3 kB / 462.1 MB, free: 11.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006951/0.1039, allocations: 205.8 kB / 462.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.1057, allocations: 1.241 MB / 463.6 MB, free: 9.605 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.1061, allocations: 0.86 MB / 464.5 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.1063, allocations: 47.42 kB / 464.5 MB, free: 8.676 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1063, allocations: 0 / 464.5 MB, free: 8.676 MB / 314.7 MB Notification: Performance of Templates: time 0.008425/0.1147, allocations: 6.112 MB / 470.6 MB, free: 2.547 MB / 314.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/jenkins1/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