Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 197.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.5 MB / 244.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009364/0.0009363, allocations: 100.5 kB / 296.8 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002413, allocations: 8 kB / 356.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2439, allocations: 51.3 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.002751/0.2467, allocations: 2.721 MB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009596/0.2476, allocations: 0.6901 MB / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.2478, allocations: 11.94 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.2481, allocations: 43.56 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.2482, allocations: 52.69 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.2487, allocations: 189.2 kB / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.2491, allocations: 0.5423 MB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000341/0.2494, allocations: 305.3 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2495, allocations: 150.2 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.2498, allocations: 179 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.679e-05/0.2498, allocations: 12 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.117e-05/0.2499, allocations: 16 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.545e-05/0.25, allocations: 75.62 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.2501, allocations: 216.6 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003532/0.2505, allocations: 0.6515 MB / 413.9 MB, free: 21.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2505, allocations: 0.5312 kB / 413.9 MB, free: 21.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2505, allocations: 0.625 kB / 413.9 MB, free: 21.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2505, allocations: 4 kB / 413.9 MB, free: 21.83 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.0009458/0.2514, allocations: 0.7039 MB / 414.6 MB, free: 21.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.2515, allocations: 8.031 kB / 414.6 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.2516, allocations: 60.27 kB / 414.6 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.2519, allocations: 398.2 kB / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.565e-05/0.252, allocations: 71.52 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.012e-05/0.2521, allocations: 52.38 kB / 415.2 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.2533, allocations: 0.8636 MB / 416 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.2534, allocations: 11.83 kB / 416 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.2534, allocations: 28 kB / 416.1 MB, free: 19.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.2534, allocations: 12 kB / 416.1 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000697/0.2541, allocations: 367 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.256, allocations: 1.747 MB / 418.2 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2572, allocations: 0.5386 MB / 418.7 MB, free: 16.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.2576, allocations: 251.8 kB / 419 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.2576, allocations: 23.97 kB / 419 MB, free: 16.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000333/0.258, allocations: 217.8 kB / 419.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 2.064e-06/0.258, allocations: 4 kB / 419.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001114/0.2591, allocations: 0.6118 MB / 419.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.2592, allocations: 182.6 kB / 420 MB, free: 15.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.2594, allocations: 250.7 kB / 420.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.2595, allocations: 37.7 kB / 420.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.2595, allocations: 216.9 kB / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.2596, allocations: 118.4 kB / 420.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.512e-05/0.2597, allocations: 12 kB / 420.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.2597, allocations: 350.9 kB / 420.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.26, allocations: 157.2 kB / 421.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.2604, allocations: 411 kB / 421.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/0.261, allocations: 0.5779 MB / 422.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.261, allocations: 4 kB / 422.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008927/0.2619, allocations: 0.6063 MB / 422.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.262, allocations: 16.19 kB / 422.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.262, allocations: 8 kB / 422.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.262, allocations: 12 kB / 422.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.2625, allocations: 131.8 kB / 422.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.2625, allocations: 19.92 kB / 422.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.2628, allocations: 59.52 kB / 422.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.2628, allocations: 28 kB / 423 MB, free: 12.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 (engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.inductionToPowerDelay.delay.first,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,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,engine.cylinderAirCharge.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.u_buffer[1],engine.crankshaftPositionEvent.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des) * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0002436/0.2631, allocations: 224.4 kB / 423.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003518/0.2634, allocations: 233.1 kB / 423.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005572/0.264, allocations: 308.4 kB / 423.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.264, allocations: 8.031 kB / 423.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.264, allocations: 4 kB / 423.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.264, allocations: 3.984 kB / 423.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009843/0.265, allocations: 0.8888 MB / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.265, allocations: 0 / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.2655, allocations: 103.9 kB / 424.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.2655, allocations: 7.938 kB / 424.7 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.2656, allocations: 15.98 kB / 424.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2656, allocations: 7.938 kB / 424.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2656, allocations: 0 / 424.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.2667, allocations: 0.8392 MB / 425.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.665e-05/0.2668, allocations: 120.7 kB / 425.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.2669, allocations: 12 kB / 425.7 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.2671, allocations: 24.11 kB / 425.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.2672, allocations: 31.91 kB / 425.8 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.2672, allocations: 23.98 kB / 425.8 MB, free: 9.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000136/0.2674, allocations: 185.8 kB / 426 MB, free: 8.988 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2674, allocations: 0 / 426 MB, free: 8.988 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004531/0.2678, allocations: 107.7 kB / 426.1 MB, free: 8.883 MB / 298.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.integrator.y,engine.inertia.w,derivative.u) * Number of discrete variables: 10 (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,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 6 (speedControl.N_des,speedControl.N,speedControl.x_d,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.delay.u_buffer[1],engine.inductionToPowerDelay.delay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 57 * 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.268, allocations: 117.5 kB / 426.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007693/0.2688, allocations: 461.3 kB / 426.6 MB, free: 8.312 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.2688, allocations: 8.125 kB / 426.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.269, allocations: 139.9 kB / 426.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000686/0.2697, allocations: 174.7 kB / 427 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.2713, allocations: 1.278 MB / 428.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.2715, allocations: 0.8361 MB / 429.1 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.2717, allocations: 47.36 kB / 429.1 MB, free: 5.77 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.2717, allocations: 0 / 429.1 MB, free: 5.77 MB / 298.7 MB Notification: Performance of Templates: time 0.006852/0.2785, allocations: 5.558 MB / 434.7 MB, free: 220 kB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches