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.001457/0.001462, allocations: 185.8 kB / 16.44 MB, free: 5.691 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.9/1.9, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001113/0.001113, allocations: 91.61 kB / 270.9 MB, free: 8.379 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.09937/0.09937, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005416/0.0005418, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08576, allocations: 50.38 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4419/0.5277, allocations: 84.56 MB / 0.5145 GB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5281, allocations: 78.42 kB / 0.5146 GB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03223/0.5603, allocations: 8.549 MB / 0.523 GB, free: 5.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5604, allocations: 0 / 0.523 GB, free: 5.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.29e-05/0.5604, allocations: 19.98 kB / 0.523 GB, free: 5.398 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.001844/0.5623, allocations: 0.7796 MB / 0.5238 GB, free: 4.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.5623, allocations: 12.03 kB / 0.5238 GB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.5625, allocations: 63.25 kB / 0.5238 GB, free: 4.523 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007565/0.5633, allocations: 415.5 kB / 0.5242 GB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.5634, allocations: 96.09 kB / 0.5243 GB, free: 4.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.5635, allocations: 69.33 kB / 0.5244 GB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/0.566, allocations: 0.992 MB / 0.5253 GB, free: 3.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.5661, allocations: 3.906 kB / 0.5254 GB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.772e-05/0.5662, allocations: 30.36 kB / 0.5254 GB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.5662, allocations: 16 kB / 0.5254 GB, free: 3.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.5676, allocations: 411.1 kB / 0.5258 GB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003417/0.571, allocations: 1.748 MB / 0.5275 GB, free: 1.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.5735, allocations: 0.6004 MB / 0.5281 GB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.335e-05/0.5736, allocations: 24.5 kB / 0.5281 GB, free: 1.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005924/0.5742, allocations: 226 kB / 0.5283 GB, free: 0.8398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=68): time 3.437e-06/0.5742, allocations: 0 / 0.5283 GB, free: 0.8398 MB / 330.7 MB Notification: Performance of matching and sorting (n=68): time 0.002292/0.5765, allocations: 0.6928 MB / 0.529 GB, free: 348 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.5767, allocations: 220 kB / 0.5292 GB, free: 96 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004557/0.5771, allocations: 248.3 kB / 0.5294 GB, free: 15.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.692e-05/0.5772, allocations: 38.83 kB / 0.5295 GB, free: 15.85 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.5774, allocations: 264 kB / 0.5297 GB, free: 15.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.5776, allocations: 135.8 kB / 0.5299 GB, free: 15.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.396e-05/0.5777, allocations: 17.94 kB / 0.5299 GB, free: 15.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5778, allocations: 340.7 kB / 0.5302 GB, free: 15.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005759/0.5784, allocations: 164.4 kB / 0.5304 GB, free: 15.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007962/0.5792, allocations: 457.2 kB / 0.5308 GB, free: 14.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.5799, allocations: 247.8 kB / 0.531 GB, free: 14.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.58, allocations: 8 kB / 0.531 GB, free: 14.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001799/0.5818, allocations: 0.6276 MB / 0.5317 GB, free: 13.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.5818, allocations: 12 kB / 0.5317 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.5819, allocations: 8 kB / 0.5317 GB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.729e-05/0.5819, allocations: 12 kB / 0.5317 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009961/0.5829, allocations: 155 kB / 0.5318 GB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/0.583, allocations: 15.94 kB / 0.5318 GB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006043/0.5836, allocations: 74.89 kB / 0.5319 GB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.251e-05/0.5837, allocations: 31.12 kB / 0.5319 GB, free: 13.64 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.0005239/0.5842, allocations: 234.3 kB / 0.5322 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008459/0.5851, allocations: 263.7 kB / 0.5324 GB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.5862, allocations: 344.9 kB / 0.5328 GB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.5863, allocations: 11.95 kB / 0.5328 GB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5863, allocations: 0 / 0.5328 GB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5863, allocations: 7.984 kB / 0.5328 GB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.5884, allocations: 0.9746 MB / 0.5337 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.098e-06/0.5884, allocations: 4 kB / 0.5337 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.5896, allocations: 115.2 kB / 0.5338 GB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.478e-05/0.5896, allocations: 7.953 kB / 0.5338 GB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.608e-05/0.5897, allocations: 23.73 kB / 0.5339 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.737e-06/0.5897, allocations: 4 kB / 0.5339 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5897, allocations: 0 / 0.5339 GB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.5925, allocations: 0.9518 MB / 0.5348 GB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.5927, allocations: 120.4 kB / 0.5349 GB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.5928, allocations: 22.92 kB / 0.5349 GB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005015/0.5933, allocations: 30.8 kB / 0.535 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.5934, allocations: 19.47 kB / 0.535 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.541e-05/0.5935, allocations: 23.67 kB / 0.535 GB, free: 11.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003355/0.5939, allocations: 196.2 kB / 0.5352 GB, free: 11.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5939, allocations: 4 kB / 0.5352 GB, free: 11.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008563/0.5947, allocations: 124.9 kB / 0.5353 GB, free: 10.91 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.0002623/0.595, allocations: 153.3 kB / 0.5355 GB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.5967, allocations: 0.4959 MB / 0.5359 GB, free: 10.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5968, allocations: 4.438 kB / 0.536 GB, free: 10.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.5973, allocations: 159.8 kB / 0.5361 GB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009332/0.5982, allocations: 186.8 kB / 0.5363 GB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.6011, allocations: 1.197 MB / 0.5374 GB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.6018, allocations: 0.8752 MB / 0.5383 GB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003197/0.6021, allocations: 47.11 kB / 0.5383 GB, free: 8.094 MB / 346.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6021, allocations: 0 / 0.5383 GB, free: 8.094 MB / 346.7 MB Notification: Performance of Templates: time 0.01436/0.6165, allocations: 5.992 MB / 0.5442 GB, free: 2.195 MB / 346.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/jenkins1/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