Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3472, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004971/0.3522, allocations: 3.208 MB / 412.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.354, allocations: 0.7477 MB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002732/0.3543, allocations: 15.94 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000441/0.3548, allocations: 75.19 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.355, allocations: 67.25 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007072/0.3557, allocations: 287.5 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000653/0.3563, allocations: 0.6167 MB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005232/0.3569, allocations: 337.7 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.3572, allocations: 227.2 kB / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004655/0.3577, allocations: 266.8 kB / 415 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.3578, allocations: 72 kB / 415.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.3579, allocations: 72 kB / 415.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.3581, allocations: 147.6 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.3584, allocations: 274.7 kB / 415.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007995/0.3592, allocations: 0.8498 MB / 416.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3592, allocations: 0 / 416.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3592, allocations: 0 / 416.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.3592, allocations: 0 / 416.4 MB, free: 10.34 MB / 334.1 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.001485/0.3607, allocations: 0.813 MB / 417.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3608, allocations: 12.03 kB / 417.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.3609, allocations: 60.28 kB / 417.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.3615, allocations: 398.3 kB / 417.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.55e-05/0.3616, allocations: 71.58 kB / 417.8 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.984e-05/0.3616, allocations: 52.28 kB / 417.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.3633, allocations: 0.8753 MB / 418.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.3633, allocations: 3.938 kB / 418.7 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.3634, allocations: 24 kB / 418.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3634, allocations: 12 kB / 418.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007332/0.3641, allocations: 359 kB / 419.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.3663, allocations: 1.736 MB / 420.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.3676, allocations: 0.5369 MB / 421.4 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004211/0.3681, allocations: 259.7 kB / 421.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.3681, allocations: 12.22 kB / 421.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000364/0.3685, allocations: 211.2 kB / 421.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.084e-06/0.3685, allocations: 3.938 kB / 421.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001254/0.3698, allocations: 0.604 MB / 422.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.3699, allocations: 182.4 kB / 422.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.3702, allocations: 258.6 kB / 422.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.3702, allocations: 37.7 kB / 422.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.3704, allocations: 209 kB / 423.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3705, allocations: 126.3 kB / 423.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.3706, allocations: 102.3 kB / 423.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3708, allocations: 354.8 kB / 423.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.3711, allocations: 149.2 kB / 423.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005061/0.3716, allocations: 411 kB / 424.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007693/0.3724, allocations: 0.5631 MB / 424.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-05/0.3724, allocations: 4 kB / 424.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009768/0.3734, allocations: 0.5973 MB / 425.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.3734, allocations: 8 kB / 425.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3734, allocations: 8 kB / 425.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.3735, allocations: 12 kB / 425.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.3739, allocations: 128.3 kB / 425.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.3739, allocations: 19.92 kB / 425.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.3742, allocations: 59.58 kB / 425.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.3743, allocations: 28 kB / 425.7 MB, free: 0.5078 MB / 334.1 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 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,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,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002832/0.3746, allocations: 228.4 kB / 425.9 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003754/0.375, allocations: 229.1 kB / 426.1 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006185/0.3756, allocations: 304.5 kB / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.3756, allocations: 8 kB / 426.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3756, allocations: 3.938 kB / 426.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3756, allocations: 7.984 kB / 426.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3768, allocations: 0.8776 MB / 427.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3768, allocations: 4 kB / 427.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.3773, allocations: 99.88 kB / 427.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.3773, allocations: 8 kB / 427.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-05/0.3774, allocations: 15.98 kB / 427.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3774, allocations: 7.938 kB / 427.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3774, allocations: 4 kB / 427.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.3786, allocations: 0.8199 MB / 428.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.852e-05/0.3787, allocations: 116.7 kB / 428.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.3788, allocations: 12 kB / 428.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.379, allocations: 19.98 kB / 428.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.169e-05/0.3791, allocations: 27.91 kB / 428.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.3792, allocations: 16 kB / 428.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.3793, allocations: 189.8 kB / 428.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3793, allocations: 0 / 428.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004898/0.3798, allocations: 111.7 kB / 428.7 MB, free: 13.3 MB / 350.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.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 (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.0001579/0.38, allocations: 117.4 kB / 428.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008648/0.3809, allocations: 455.8 kB / 429.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3809, allocations: 1.625 kB / 429.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002469/0.3811, allocations: 131.9 kB / 429.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006409/0.3818, allocations: 176.7 kB / 429.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.3835, allocations: 1.022 MB / 430.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.3839, allocations: 0.8396 MB / 431.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3841, allocations: 47.27 kB / 431.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.3842, allocations: 39.42 kB / 431.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3842, allocations: 0 / 431.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of Templates: time 0.00872/0.3929, allocations: 4.432 MB / 436 MB, free: 6.008 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches