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.001043/0.001043, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.486/1.486, allocations: 205.4 MB / 223 MB, free: 8.938 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.0007615/0.0007616, allocations: 90.16 kB / 271.3 MB, free: 8.242 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.07406/0.07406, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003719, allocations: 16 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07806/0.07845, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2969/0.3754, allocations: 84.6 MB / 0.5158 GB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.3756, allocations: 75.41 kB / 0.5159 GB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01944/0.3951, allocations: 8.55 MB / 0.5242 GB, free: 4.441 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3951, allocations: 0 / 0.5242 GB, free: 4.441 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.3951, allocations: 16 kB / 0.5243 GB, free: 4.426 MB / 330.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.001365/0.3965, allocations: 0.782 MB / 0.525 GB, free: 3.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3966, allocations: 8.031 kB / 0.525 GB, free: 3.605 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.3968, allocations: 71.25 kB / 0.5251 GB, free: 3.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.3973, allocations: 418.4 kB / 0.5255 GB, free: 3.176 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.715e-05/0.3974, allocations: 102.3 kB / 0.5256 GB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.395e-05/0.3976, allocations: 64.91 kB / 0.5257 GB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.3992, allocations: 1.009 MB / 0.5266 GB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/0.3993, allocations: 11.78 kB / 0.5267 GB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.3994, allocations: 24.56 kB / 0.5267 GB, free: 2.246 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3994, allocations: 12 kB / 0.5267 GB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008409/0.4002, allocations: 415.3 kB / 0.5271 GB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.4029, allocations: 1.746 MB / 0.5288 GB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.4042, allocations: 0.6037 MB / 0.5294 GB, free: 48 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.4047, allocations: 284.1 kB / 0.5296 GB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.4048, allocations: 11.56 kB / 0.5297 GB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000447/0.4052, allocations: 236.8 kB / 0.5299 GB, free: 15.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=68): time 4.388e-06/0.4053, allocations: 0 / 0.5299 GB, free: 15.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=68): time 0.001555/0.4068, allocations: 0.6918 MB / 0.5306 GB, free: 15.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.407, allocations: 215.1 kB / 0.5308 GB, free: 14.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.4073, allocations: 278.6 kB / 0.531 GB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.4073, allocations: 35.89 kB / 0.5311 GB, free: 14.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.4075, allocations: 209.7 kB / 0.5313 GB, free: 14.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.4076, allocations: 145 kB / 0.5314 GB, free: 14.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.4076, allocations: 15.19 kB / 0.5314 GB, free: 14.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4078, allocations: 358.5 kB / 0.5318 GB, free: 14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.4081, allocations: 171 kB / 0.5319 GB, free: 13.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.4086, allocations: 462.5 kB / 0.5324 GB, free: 13.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008057/0.4095, allocations: 0.6225 MB / 0.533 GB, free: 12.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4095, allocations: 4 kB / 0.533 GB, free: 12.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001076/0.4106, allocations: 0.6449 MB / 0.5336 GB, free: 12.28 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4106, allocations: 12 kB / 0.5336 GB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.4106, allocations: 8 kB / 0.5336 GB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.947e-05/0.4106, allocations: 12 kB / 0.5336 GB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.4112, allocations: 151.3 kB / 0.5338 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.4112, allocations: 27.92 kB / 0.5338 GB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.4115, allocations: 69.31 kB / 0.5339 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.4116, allocations: 31.38 kB / 0.5339 GB, free: 11.99 MB / 346.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.0002907/0.4119, allocations: 230.4 kB / 0.5341 GB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000456/0.4124, allocations: 266.8 kB / 0.5344 GB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007081/0.4131, allocations: 346.2 kB / 0.5347 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.4131, allocations: 8 kB / 0.5347 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4131, allocations: 0 / 0.5347 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4131, allocations: 3.984 kB / 0.5347 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.4146, allocations: 0.9783 MB / 0.5357 GB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4146, allocations: 4 kB / 0.5357 GB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.4151, allocations: 123.4 kB / 0.5358 GB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.4151, allocations: 4 kB / 0.5358 GB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.4152, allocations: 22.92 kB / 0.5358 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.4152, allocations: 11.94 kB / 0.5358 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4152, allocations: 3.938 kB / 0.5358 GB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.4167, allocations: 0.9054 MB / 0.5367 GB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.997e-05/0.4168, allocations: 130.2 kB / 0.5368 GB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.389e-05/0.4169, allocations: 13.38 kB / 0.5369 GB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.4171, allocations: 34.67 kB / 0.5369 GB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.4172, allocations: 27.64 kB / 0.5369 GB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.4173, allocations: 19.56 kB / 0.5369 GB, free: 9.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001957/0.4175, allocations: 187.9 kB / 0.5371 GB, free: 9.422 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4175, allocations: 0 / 0.5371 GB, free: 9.422 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005382/0.418, allocations: 133.6 kB / 0.5372 GB, free: 9.312 MB / 346.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.0001961/0.4182, allocations: 146.3 kB / 0.5374 GB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.4192, allocations: 0.4922 MB / 0.5379 GB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4193, allocations: 0 / 0.5379 GB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.4195, allocations: 159.1 kB / 0.538 GB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.4203, allocations: 210.4 kB / 0.5382 GB, free: 8.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.4221, allocations: 1.175 MB / 0.5394 GB, free: 7.461 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/0.4226, allocations: 0.8598 MB / 0.5402 GB, free: 6.582 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000313/0.4229, allocations: 59.42 kB / 0.5403 GB, free: 6.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.423, allocations: 43.42 kB / 0.5403 GB, free: 6.48 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.423, allocations: 0 / 0.5403 GB, free: 6.48 MB / 346.7 MB Notification: Performance of Templates: time 0.008889/0.4319, allocations: 4.149 MB / 0.5444 GB, free: 2.34 MB / 346.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