Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 168.7 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9394/0.9394, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,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_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.986e-05/3.186e-05, allocations: 6.25 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005119/0.005151, allocations: 3.122 MB / 277.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.006817, allocations: 0.7487 MB / 278 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.007104, allocations: 15.88 kB / 278 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.007458, allocations: 67.2 kB / 278.1 MB, free: 492 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.007673, allocations: 84.58 kB / 278.2 MB, free: 408 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008722/0.008545, allocations: 298.4 kB / 278.5 MB, free: 112 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007442/0.00929, allocations: 0.6127 MB / 279.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004654/0.009755, allocations: 230.2 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004534/0.01021, allocations: 351.4 kB / 279.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004249/0.01063, allocations: 195.4 kB / 279.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.01075, allocations: 72 kB / 279.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.088e-05/0.01084, allocations: 73.94 kB / 280 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.01104, allocations: 143.6 kB / 280.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.01126, allocations: 187.5 kB / 280.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007527/0.01202, allocations: 454.3 kB / 280.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.01202, allocations: 0 / 280.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01202, allocations: 3.938 kB / 280.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.01203, allocations: 0.5 kB / 280.8 MB, free: 13.82 MB / 266.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.001334/0.01337, allocations: 0.8415 MB / 281.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.01342, allocations: 12.03 kB / 281.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.01362, allocations: 108.5 kB / 281.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.01421, allocations: 355.2 kB / 282.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.01435, allocations: 93.27 kB / 282.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.877e-05/0.01445, allocations: 56.33 kB / 282.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.0158, allocations: 0.6987 MB / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.01583, allocations: 192 / 282.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.178e-05/0.01588, allocations: 24.38 kB / 282.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.01591, allocations: 16.12 kB / 283 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.0163, allocations: 155.6 kB / 283.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.01865, allocations: 1.669 MB / 284.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009953/0.01965, allocations: 387.9 kB / 285.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.0199, allocations: 142 kB / 285.3 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.013e-05/0.01995, allocations: 16.22 kB / 285.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.02022, allocations: 187.5 kB / 285.5 MB, free: 8.777 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 3.787e-06/0.02023, allocations: 0 / 285.5 MB, free: 8.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0007907/0.02102, allocations: 374.7 kB / 285.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.02113, allocations: 178.2 kB / 286 MB, free: 8.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.02139, allocations: 292.1 kB / 286.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.02143, allocations: 33.7 kB / 286.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.0216, allocations: 260 kB / 286.6 MB, free: 7.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.0217, allocations: 126.9 kB / 286.7 MB, free: 7.473 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.02183, allocations: 87.81 kB / 286.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.02201, allocations: 0.512 MB / 287.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.02212, allocations: 48.95 kB / 287.4 MB, free: 6.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.02235, allocations: 260.6 kB / 287.6 MB, free: 6.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.02269, allocations: 296.2 kB / 287.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.0227, allocations: 0 / 287.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005073/0.0232, allocations: 312 kB / 288.2 MB, free: 5.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.02323, allocations: 7.938 kB / 288.2 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.02323, allocations: 4 kB / 288.2 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.02325, allocations: 8 kB / 288.3 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.02355, allocations: 91.83 kB / 288.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.02356, allocations: 11.94 kB / 288.4 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.02374, allocations: 40.2 kB / 288.4 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.02376, allocations: 16 kB / 288.4 MB, free: 5.621 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.cylinderAirCharge.integrator.local_reset,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y) * 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 (53): * Single equations (assignments): 53 * 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.0001872/0.02395, allocations: 193.2 kB / 288.6 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002911/0.02424, allocations: 197.5 kB / 288.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003654/0.02461, allocations: 196.5 kB / 289 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.02462, allocations: 15.92 kB / 289 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.02462, allocations: 0 / 289 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.02463, allocations: 4 kB / 289 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007747/0.0254, allocations: 0.5957 MB / 289.6 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.02541, allocations: 0 / 289.6 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.02579, allocations: 107.8 kB / 289.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.02579, allocations: 4 kB / 289.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.02583, allocations: 12 kB / 289.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.02584, allocations: 7.984 kB / 289.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.02584, allocations: 0 / 289.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004873/0.02633, allocations: 408.9 kB / 290.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.02638, allocations: 43.58 kB / 290.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.02644, allocations: 24 kB / 290.2 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.02661, allocations: 11.98 kB / 290.2 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.265e-05/0.02667, allocations: 19.97 kB / 290.2 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.0267, allocations: 15.98 kB / 290.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.02682, allocations: 189.1 kB / 290.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02682, allocations: 0 / 290.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003669/0.02718, allocations: 103.8 kB / 290.5 MB, free: 3.414 MB / 266.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 (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.000149/0.02733, allocations: 127.3 kB / 290.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.02771, allocations: 219.8 kB / 290.9 MB, free: 3.062 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.02771, allocations: 0 / 290.9 MB, free: 3.062 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.02784, allocations: 83.5 kB / 290.9 MB, free: 2.977 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.02836, allocations: 152.6 kB / 291.1 MB, free: 2.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.0297, allocations: 0.8572 MB / 291.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.02981, allocations: 133.7 kB / 292.1 MB, free: 1.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.02996, allocations: 38.95 kB / 292.1 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.03011, allocations: 130.2 kB / 292.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.03011, allocations: 0 / 292.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of Templates: time 0.006735/0.03684, allocations: 4.463 MB / 296.7 MB, free: 13.2 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8765426222234964]