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.001419/0.001419, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001548/0.001548, allocations: 165.7 kB / 24.27 MB, free: 172 kB / 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 1.51/1.51, allocations: 177.1 MB / 204.6 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 178] 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 9.71e-07/9.71e-07, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.272e-05/3.369e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005229/0.005263, allocations: 3.048 MB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.006968, allocations: 0.728 MB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003452/0.007313, allocations: 19.81 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.007667, allocations: 71.14 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.007971, allocations: 79.23 kB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.008755, allocations: 299.3 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008466/0.009601, allocations: 0.6128 MB / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005463/0.01015, allocations: 230.2 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005119/0.01066, allocations: 355.3 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.01102, allocations: 195.4 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.01115, allocations: 72 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.01126, allocations: 72 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.01144, allocations: 143.6 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.01169, allocations: 187.6 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.01277, allocations: 0.8878 MB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.01277, allocations: 0 / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01278, allocations: 0 / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.0128, allocations: 0 / 279.3 MB, free: 10.84 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.001695/0.0145, allocations: 0.741 MB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.01453, allocations: 8.031 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.01476, allocations: 104.6 kB / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007526/0.01551, allocations: 348.4 kB / 280.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.01566, allocations: 93.28 kB / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.01577, allocations: 60.31 kB / 280.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/0.01766, allocations: 0.8854 MB / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.01768, allocations: 192 / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.01774, allocations: 24.31 kB / 281.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.01776, allocations: 20.06 kB / 281.5 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000896/0.01865, allocations: 359.1 kB / 281.9 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.02124, allocations: 1.494 MB / 283.4 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.02266, allocations: 0.4952 MB / 283.9 MB, free: 5.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.02316, allocations: 236.5 kB / 284.1 MB, free: 5.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.02321, allocations: 12.23 kB / 284.1 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.02362, allocations: 232 kB / 284.3 MB, free: 5.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.535e-06/0.02363, allocations: 0 / 284.3 MB, free: 5.488 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001585/0.02521, allocations: 0.6304 MB / 285 MB, free: 4.852 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/0.02537, allocations: 180 kB / 285.1 MB, free: 4.641 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.02568, allocations: 253.8 kB / 285.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/0.02574, allocations: 37.7 kB / 285.4 MB, free: 4.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.02593, allocations: 213.3 kB / 285.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.02606, allocations: 119 kB / 285.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.02621, allocations: 82.12 kB / 285.8 MB, free: 3.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.0264, allocations: 338.8 kB / 286.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.02672, allocations: 129.2 kB / 286.3 MB, free: 3.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/0.02717, allocations: 290.9 kB / 286.6 MB, free: 3.117 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007287/0.0279, allocations: 386.2 kB / 287 MB, free: 2.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.02791, allocations: 3.938 kB / 287 MB, free: 2.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009651/0.02887, allocations: 476.8 kB / 287.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.02889, allocations: 4 kB / 287.4 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.0289, allocations: 4.547 kB / 287.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.02891, allocations: 12 kB / 287.4 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.02931, allocations: 91.89 kB / 287.5 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.02933, allocations: 15.86 kB / 287.5 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.02958, allocations: 39.77 kB / 287.6 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.02963, allocations: 23.98 kB / 287.6 MB, free: 2.023 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,$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 (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.0002722/0.02991, allocations: 195.6 kB / 287.8 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000486/0.03039, allocations: 249.3 kB / 288 MB, free: 1.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007065/0.0311, allocations: 308.7 kB / 288.3 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.03111, allocations: 8.047 kB / 288.4 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.03112, allocations: 3.984 kB / 288.4 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.03112, allocations: 3.984 kB / 288.4 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.03245, allocations: 0.713 MB / 289.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.03246, allocations: 7.938 kB / 289.1 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005288/0.03299, allocations: 99.88 kB / 289.2 MB, free: 408 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.033, allocations: 8 kB / 289.2 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.03307, allocations: 15.98 kB / 289.2 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.03307, allocations: 4 kB / 289.2 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.03307, allocations: 0 / 289.2 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.03474, allocations: 0.8262 MB / 290 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.922e-05/0.03481, allocations: 43.7 kB / 290.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.783e-05/0.03488, allocations: 15.98 kB / 290.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.03514, allocations: 20.12 kB / 290.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.03522, allocations: 27.95 kB / 290.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.03526, allocations: 19.98 kB / 290.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002111/0.03547, allocations: 173.2 kB / 290.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03547, allocations: 0 / 290.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004655/0.03594, allocations: 103.8 kB / 290.4 MB, free: 15.12 MB / 282.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.0001973/0.03614, allocations: 121.1 kB / 290.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009858/0.03712, allocations: 375 kB / 290.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.03713, allocations: 0 / 290.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000334/0.03746, allocations: 121.3 kB / 291 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008518/0.03831, allocations: 184.6 kB / 291.2 MB, free: 14.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.04044, allocations: 0.949 MB / 292.2 MB, free: 13.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.04073, allocations: 244.2 kB / 292.4 MB, free: 13.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.04094, allocations: 34.97 kB / 292.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.04107, allocations: 36.48 kB / 292.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.04108, allocations: 0 / 292.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of Templates: time 0.00989/0.05096, allocations: 4.025 MB / 296.5 MB, free: 9.031 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.479699015966617]