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/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/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.001938/0.001938, allocations: 180.5 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.637/2.637, allocations: 205.4 MB / 223.6 MB, free: 9.004 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.001573/0.001573, allocations: 78.44 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1744/0.1744, allocations: 12.21 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008217/0.0008218, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1863, allocations: 50.3 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6486/0.835, allocations: 84.53 MB / 0.5152 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004034/0.8355, allocations: 79.53 kB / 0.5153 GB, free: 11.6 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/ClockSignals.mo:280:9-282:76:writable] Warning: In relation trigger_interval == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of FrontEnd - DAE generated: time 0.03634/0.8719, allocations: 8.547 MB / 0.5236 GB, free: 6 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.872, allocations: 0 / 0.5236 GB, free: 6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.872, allocations: 16 kB / 0.5236 GB, free: 5.984 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.002027/0.8741, allocations: 0.7829 MB / 0.5244 GB, free: 5.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.8741, allocations: 8.031 kB / 0.5244 GB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.8744, allocations: 64.19 kB / 0.5244 GB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007423/0.8752, allocations: 420.2 kB / 0.5248 GB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.8753, allocations: 102 kB / 0.5249 GB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.8754, allocations: 61.34 kB / 0.525 GB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.8775, allocations: 1.001 MB / 0.526 GB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.49e-05/0.8776, allocations: 3.938 kB / 0.526 GB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.776e-05/0.8776, allocations: 29.11 kB / 0.526 GB, free: 3.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.8777, allocations: 16 kB / 0.526 GB, free: 3.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.8786, allocations: 407.9 kB / 0.5264 GB, free: 3.539 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003711/0.8823, allocations: 1.743 MB / 0.5281 GB, free: 2.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.8848, allocations: 0.5993 MB / 0.5287 GB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008537/0.8857, allocations: 289.3 kB / 0.529 GB, free: 1.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.48e-05/0.8858, allocations: 23.34 kB / 0.529 GB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005909/0.8864, allocations: 232.8 kB / 0.5292 GB, free: 1.211 MB / 330.7 MB Notification: Performance of pre-optimization done (n=68): time 5.039e-06/0.8865, allocations: 0 / 0.5292 GB, free: 1.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=68): time 0.00195/0.8884, allocations: 0.6891 MB / 0.5299 GB, free: 0.7148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.8886, allocations: 215.8 kB / 0.5301 GB, free: 484 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.8891, allocations: 274 kB / 0.5304 GB, free: 248 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.8892, allocations: 40.02 kB / 0.5304 GB, free: 212 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.8893, allocations: 224 kB / 0.5306 GB, free: 28 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002493/0.8896, allocations: 146.7 kB / 0.5308 GB, free: 15.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.8897, allocations: 13.75 kB / 0.5308 GB, free: 15.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.8899, allocations: 353.7 kB / 0.5311 GB, free: 15.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000573/0.8905, allocations: 165.4 kB / 0.5313 GB, free: 15.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009171/0.8914, allocations: 459.2 kB / 0.5317 GB, free: 14.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.8931, allocations: 0.6281 MB / 0.5323 GB, free: 14.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.8931, allocations: 0 / 0.5323 GB, free: 14.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002028/0.8951, allocations: 0.6497 MB / 0.5329 GB, free: 13.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.8952, allocations: 11.98 kB / 0.533 GB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.8952, allocations: 8 kB / 0.533 GB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.803e-05/0.8953, allocations: 16 kB / 0.533 GB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000894/0.8962, allocations: 143.6 kB / 0.5331 GB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.875e-05/0.8962, allocations: 19.92 kB / 0.5331 GB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006671/0.8969, allocations: 79.11 kB / 0.5332 GB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-05/0.897, allocations: 27.31 kB / 0.5332 GB, free: 13.56 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.0006612/0.8977, allocations: 235.1 kB / 0.5335 GB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009206/0.8986, allocations: 264.2 kB / 0.5337 GB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.8999, allocations: 342 kB / 0.534 GB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.8999, allocations: 8 kB / 0.5341 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.8999, allocations: 4 kB / 0.5341 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.9, allocations: 3.984 kB / 0.5341 GB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.9025, allocations: 0.9774 MB / 0.535 GB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.9025, allocations: 0 / 0.535 GB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.9036, allocations: 120.5 kB / 0.5351 GB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.626e-05/0.9036, allocations: 4 kB / 0.5351 GB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-05/0.9037, allocations: 17.67 kB / 0.5351 GB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.179e-05/0.9037, allocations: 11.94 kB / 0.5352 GB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.9038, allocations: 4 kB / 0.5352 GB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.9068, allocations: 0.9074 MB / 0.536 GB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.9071, allocations: 123.9 kB / 0.5362 GB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.9072, allocations: 18.44 kB / 0.5362 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004855/0.9077, allocations: 38.55 kB / 0.5362 GB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.9078, allocations: 27.34 kB / 0.5362 GB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.816e-05/0.9079, allocations: 19.61 kB / 0.5363 GB, free: 11.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004066/0.9083, allocations: 192.1 kB / 0.5364 GB, free: 11 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.9084, allocations: 0 / 0.5364 GB, free: 11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001117/0.9095, allocations: 124.9 kB / 0.5366 GB, free: 10.89 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.0003382/0.9098, allocations: 161.4 kB / 0.5367 GB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.9117, allocations: 0.4927 MB / 0.5372 GB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.9117, allocations: 4 kB / 0.5372 GB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005494/0.9123, allocations: 158.6 kB / 0.5374 GB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.9136, allocations: 208.2 kB / 0.5376 GB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.9169, allocations: 1.208 MB / 0.5387 GB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008337/0.9177, allocations: 0.855 MB / 0.5396 GB, free: 8.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.9181, allocations: 54.72 kB / 0.5396 GB, free: 8.062 MB / 346.7 MB Notification: Performance of SimCode: time 1.533e-06/0.9181, allocations: 0 / 0.5396 GB, free: 8.062 MB / 346.7 MB Notification: Performance of Templates: time 0.01944/0.9376, allocations: 6.085 MB / 0.5456 GB, free: 2.07 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