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.001279/0.001279, allocations: 175.4 kB / 16.76 MB, free: 5.047 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.349/1.349, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008281/0.0008282, allocations: 93.41 kB / 271.3 MB, free: 8.25 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.07239/0.07239, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003969, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07587/0.07628, allocations: 50.36 MB / 442.9 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.002852/0.07918, allocations: 2.71 MB / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.08046, allocations: 0.6738 MB / 446.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003522/0.08084, allocations: 11.94 kB / 446.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.08106, allocations: 55.38 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.08128, allocations: 43.64 kB / 446.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007095/0.082, allocations: 211.6 kB / 446.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000633/0.08265, allocations: 0.5818 MB / 447.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.08315, allocations: 378.1 kB / 447.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.08338, allocations: 159.2 kB / 447.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.08361, allocations: 190.9 kB / 447.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.08368, allocations: 16 kB / 448 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.484e-05/0.08373, allocations: 16 kB / 448 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.193e-05/0.0838, allocations: 83.59 kB / 448 MB, free: 11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.08397, allocations: 236.4 kB / 448.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.08439, allocations: 0.6509 MB / 448.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.08441, allocations: 4 kB / 448.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08442, allocations: 7.938 kB / 448.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.08443, allocations: 0 / 448.9 MB, free: 10.1 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.001141/0.08558, allocations: 0.7678 MB / 449.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.08562, allocations: 12.03 kB / 449.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.801e-05/0.08573, allocations: 60.28 kB / 449.8 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.08615, allocations: 418.1 kB / 450.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.514e-05/0.08624, allocations: 105.2 kB / 450.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.08632, allocations: 60.38 kB / 450.4 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.08794, allocations: 1.015 MB / 451.4 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.08798, allocations: 3.938 kB / 451.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.322e-05/0.08804, allocations: 24 kB / 451.4 MB, free: 7.496 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.08806, allocations: 12 kB / 451.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007914/0.08885, allocations: 411.7 kB / 451.8 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.09096, allocations: 1.724 MB / 453.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.09233, allocations: 0.5999 MB / 454.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004382/0.09279, allocations: 284.7 kB / 454.4 MB, free: 4.348 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.09284, allocations: 20.47 kB / 454.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003741/0.09322, allocations: 238.7 kB / 454.7 MB, free: 4.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 3.246e-06/0.09324, allocations: 0 / 454.7 MB, free: 4.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001311/0.09455, allocations: 0.6851 MB / 455.3 MB, free: 3.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.09465, allocations: 212.3 kB / 455.6 MB, free: 3.129 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.09489, allocations: 283 kB / 455.8 MB, free: 2.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.09493, allocations: 37.7 kB / 455.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.573e-05/0.09502, allocations: 213 kB / 456.1 MB, free: 2.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.605e-05/0.09512, allocations: 138.2 kB / 456.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.09515, allocations: 12 kB / 456.2 MB, free: 2.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.687e-05/0.09522, allocations: 362.7 kB / 456.6 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.09556, allocations: 169.9 kB / 456.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.09596, allocations: 458.6 kB / 457.2 MB, free: 1.324 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006689/0.09663, allocations: 0.6313 MB / 457.8 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.09665, allocations: 4 kB / 457.8 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001005/0.09766, allocations: 0.6452 MB / 458.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.0977, allocations: 19.88 kB / 458.5 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.09772, allocations: 8 kB / 458.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.09775, allocations: 12 kB / 458.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005146/0.09827, allocations: 147.7 kB / 458.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/0.0983, allocations: 20.38 kB / 458.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.09864, allocations: 71.52 kB / 458.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.068e-05/0.0987, allocations: 35.98 kB / 458.8 MB, free: 15.6 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,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.0003193/0.09903, allocations: 229.3 kB / 459 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.09955, allocations: 272.9 kB / 459.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.1002, allocations: 352.7 kB / 459.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.1003, allocations: 8 kB / 459.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1003, allocations: 0 / 459.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.1003, allocations: 7.984 kB / 459.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.1017, allocations: 0.9741 MB / 460.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1017, allocations: 0 / 460.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005358/0.1022, allocations: 123.8 kB / 460.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1023, allocations: 4 kB / 460.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.1023, allocations: 19.98 kB / 460.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.1023, allocations: 7.938 kB / 460.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1023, allocations: 48 / 460.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.104, allocations: 0.9177 MB / 461.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1041, allocations: 128.5 kB / 461.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.075e-05/0.1042, allocations: 12 kB / 461.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.1044, allocations: 39.92 kB / 461.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.1045, allocations: 31.89 kB / 461.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.1046, allocations: 23.98 kB / 461.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001935/0.1048, allocations: 182 kB / 462.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1048, allocations: 0 / 462.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00053/0.1053, allocations: 119.7 kB / 462.2 MB, free: 12.07 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.0001491/0.1055, allocations: 135.2 kB / 462.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.1065, allocations: 0.5006 MB / 462.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1065, allocations: 0 / 462.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.1068, allocations: 161.6 kB / 463 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.1076, allocations: 201.4 kB / 463.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.1094, allocations: 1.228 MB / 464.4 MB, free: 9.793 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.1098, allocations: 0.86 MB / 465.3 MB, free: 8.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.11, allocations: 51.36 kB / 465.3 MB, free: 8.859 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.11, allocations: 0 / 465.3 MB, free: 8.859 MB / 314.7 MB Notification: Performance of Templates: time 0.008801/0.1188, allocations: 6.073 MB / 471.4 MB, free: 2.77 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