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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 102.8 kB / 16.02 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001989/0.001989, allocations: 197.6 kB / 16.95 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.1 MB / 222.8 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0934/0.0934, allocations: 12.58 MB / 282.7 MB, free: 15.66 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 88.72 kB / 343 MB, free: 3.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3844, allocations: 49.38 MB / 392.4 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.006341/0.3908, allocations: 3.238 MB / 395.6 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.3929, allocations: 0.6874 MB / 396.3 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002988/0.3932, allocations: 13.06 kB / 396.3 MB, free: 46.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.3935, allocations: 44.67 kB / 396.3 MB, free: 46.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.3937, allocations: 59.16 kB / 396.4 MB, free: 46.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008587/0.3945, allocations: 281.6 kB / 396.7 MB, free: 46.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000863/0.3954, allocations: 0.6687 MB / 397.3 MB, free: 45.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007507/0.3962, allocations: 416.5 kB / 397.7 MB, free: 45.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003099/0.3965, allocations: 250.7 kB / 398 MB, free: 45.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.3968, allocations: 292.9 kB / 398.3 MB, free: 45.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.397, allocations: 80.84 kB / 398.4 MB, free: 45.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.3972, allocations: 86.56 kB / 398.4 MB, free: 45.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.3973, allocations: 158.8 kB / 398.6 MB, free: 44.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003329/0.3977, allocations: 311.3 kB / 398.9 MB, free: 44.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009682/0.3986, allocations: 0.8439 MB / 399.7 MB, free: 44.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.3986, allocations: 0 / 399.7 MB, free: 44.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.3987, allocations: 0 / 399.7 MB, free: 44.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.3987, allocations: 0 / 399.7 MB, free: 44.04 MB / 318.1 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.001892/0.4006, allocations: 0.8908 MB / 400.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/0.4006, allocations: 10.06 kB / 400.6 MB, free: 43.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.4008, allocations: 64.53 kB / 400.7 MB, free: 43.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.4014, allocations: 413.2 kB / 401.1 MB, free: 42.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.4015, allocations: 99.59 kB / 401.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.4016, allocations: 58.44 kB / 401.3 MB, free: 42.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.4037, allocations: 1.023 MB / 402.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.4037, allocations: 6.25 kB / 402.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.4038, allocations: 20.59 kB / 402.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.681e-05/0.4038, allocations: 17.81 kB / 402.3 MB, free: 42.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009129/0.4047, allocations: 403.2 kB / 402.7 MB, free: 41.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.4071, allocations: 1.713 MB / 404.4 MB, free: 40.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.4087, allocations: 0.6021 MB / 405 MB, free: 40.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005161/0.4092, allocations: 282.4 kB / 405.3 MB, free: 39.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.583e-05/0.4093, allocations: 16.38 kB / 405.3 MB, free: 39.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.4097, allocations: 232.3 kB / 405.6 MB, free: 39.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=68): time 2.164e-06/0.4098, allocations: 1.156 kB / 405.6 MB, free: 39.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=68): time 0.001453/0.4112, allocations: 0.6728 MB / 406.2 MB, free: 39.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.4114, allocations: 212 kB / 406.4 MB, free: 39.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.4117, allocations: 282 kB / 406.7 MB, free: 39.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.4117, allocations: 37.05 kB / 406.7 MB, free: 38.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.4119, allocations: 217.3 kB / 407 MB, free: 38.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.4121, allocations: 137.4 kB / 407.1 MB, free: 38.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.4123, allocations: 122.9 kB / 407.2 MB, free: 38.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4125, allocations: 360.3 kB / 407.6 MB, free: 38.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/0.4129, allocations: 163.4 kB / 407.7 MB, free: 38.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007051/0.4136, allocations: 463.4 kB / 408.2 MB, free: 37.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008528/0.4145, allocations: 0.6176 MB / 408.8 MB, free: 36.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.4145, allocations: 7.938 kB / 408.8 MB, free: 36.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00101/0.4155, allocations: 0.6453 MB / 409.4 MB, free: 36.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.4156, allocations: 8 kB / 409.5 MB, free: 36.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.4156, allocations: 12 kB / 409.5 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.89e-05/0.4156, allocations: 12 kB / 409.5 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.4161, allocations: 143.8 kB / 409.6 MB, free: 36.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.403e-05/0.4162, allocations: 19.92 kB / 409.6 MB, free: 36.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.4165, allocations: 71.67 kB / 409.7 MB, free: 36.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.255e-05/0.4166, allocations: 40 kB / 409.7 MB, free: 36.02 MB / 318.1 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.0003071/0.4169, allocations: 229.5 kB / 410 MB, free: 35.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/0.4173, allocations: 267.6 kB / 410.2 MB, free: 35.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006329/0.418, allocations: 344.7 kB / 410.6 MB, free: 35.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.418, allocations: 8 kB / 410.6 MB, free: 35.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.418, allocations: 8 kB / 410.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.418, allocations: 96 / 410.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.4194, allocations: 0.9701 MB / 411.6 MB, free: 34.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.4194, allocations: 4 kB / 411.6 MB, free: 34.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005114/0.4199, allocations: 111.9 kB / 411.7 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.42, allocations: 7.984 kB / 411.7 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.42, allocations: 20 kB / 411.7 MB, free: 34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.754e-06/0.42, allocations: 11.88 kB / 411.7 MB, free: 33.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.42, allocations: 0 / 411.7 MB, free: 33.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.4214, allocations: 0.9052 MB / 412.6 MB, free: 33.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.116e-05/0.4215, allocations: 124.5 kB / 412.7 MB, free: 32.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.318e-05/0.4216, allocations: 23.98 kB / 412.8 MB, free: 32.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.4218, allocations: 23.92 kB / 412.8 MB, free: 32.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.654e-05/0.422, allocations: 23.97 kB / 412.8 MB, free: 32.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.422, allocations: 27.92 kB / 412.8 MB, free: 32.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.4222, allocations: 194 kB / 413 MB, free: 32.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4222, allocations: 7.938 kB / 413 MB, free: 32.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.4227, allocations: 119.7 kB / 413.1 MB, free: 32.51 MB / 318.1 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.000161/0.4228, allocations: 115.2 kB / 413.3 MB, free: 32.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009158/0.4237, allocations: 0.5253 MB / 413.8 MB, free: 31.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4238, allocations: 0 / 413.8 MB, free: 31.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.424, allocations: 157.6 kB / 413.9 MB, free: 31.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006992/0.4247, allocations: 198.5 kB / 414.1 MB, free: 31.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.4266, allocations: 1.207 MB / 415.3 MB, free: 30.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/0.4271, allocations: 0.8558 MB / 416.2 MB, free: 29.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.4274, allocations: 51.41 kB / 416.2 MB, free: 29.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.4275, allocations: 43.42 kB / 416.3 MB, free: 29.29 MB / 318.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4275, allocations: 0 / 416.3 MB, free: 29.29 MB / 318.1 MB Notification: Performance of Templates: time 0.009198/0.4367, allocations: 4.6 MB / 420.9 MB, free: 24.71 MB / 318.1 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