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.002179/0.002179, allocations: 91.61 kB / 20.96 MB, free: 3.469 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.002005/0.002005, allocations: 165.3 kB / 24.28 MB, free: 156 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.645/1.645, allocations: 177.1 MB / 204.6 MB, free: 5.609 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 1.313e-06/1.313e-06, allocations: 0 / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.656e-05/2.787e-05, allocations: 2.312 kB / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005442/0.005469, allocations: 3.14 MB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.007155, allocations: 0.7358 MB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.007401, allocations: 15.88 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003352/0.007737, allocations: 79.12 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/0.007924, allocations: 79.17 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007185/0.008643, allocations: 295.3 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007592/0.009402, allocations: 0.6128 MB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.009835, allocations: 234.2 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.01031, allocations: 355.3 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003597/0.01067, allocations: 195.4 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.01078, allocations: 72 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.01088, allocations: 72 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.01107, allocations: 143.6 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.01131, allocations: 187.5 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.01238, allocations: 0.8839 MB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.01239, allocations: 0 / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01239, allocations: 0 / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.0124, allocations: 0 / 279.4 MB, free: 10.77 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.001575/0.01397, allocations: 0.8952 MB / 280.2 MB, free: 9.832 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.01401, allocations: 8.031 kB / 280.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.01421, allocations: 100.6 kB / 280.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.01478, allocations: 355.2 kB / 280.7 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.01489, allocations: 93.28 kB / 280.8 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.63e-05/0.01499, allocations: 56.33 kB / 280.8 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.01675, allocations: 0.9443 MB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.01677, allocations: 192 / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.078e-05/0.01682, allocations: 20.31 kB / 281.8 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.01684, allocations: 16.12 kB / 281.8 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009188/0.01776, allocations: 347 kB / 282.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002981/0.02074, allocations: 1.966 MB / 284.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.02233, allocations: 0.5445 MB / 284.7 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000532/0.02286, allocations: 243.8 kB / 284.9 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/0.02292, allocations: 16.23 kB / 284.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004773/0.0234, allocations: 258.1 kB / 285.2 MB, free: 4.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.595e-06/0.0234, allocations: 0 / 285.2 MB, free: 4.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.00143/0.02483, allocations: 0.5948 MB / 285.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.025, allocations: 188 kB / 286 MB, free: 3.793 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/0.02542, allocations: 364.2 kB / 286.3 MB, free: 3.422 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.02547, allocations: 37.95 kB / 286.4 MB, free: 3.379 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.02569, allocations: 280.1 kB / 286.6 MB, free: 3.102 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.02583, allocations: 134.9 kB / 286.8 MB, free: 2.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.02603, allocations: 111.8 kB / 286.9 MB, free: 2.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003128/0.02634, allocations: 0.5391 MB / 287.4 MB, free: 2.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.02662, allocations: 116.9 kB / 287.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000518/0.02714, allocations: 348.7 kB / 287.9 MB, free: 1.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007633/0.0279, allocations: 449.1 kB / 288.3 MB, free: 1.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.02791, allocations: 3.938 kB / 288.3 MB, free: 1.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008927/0.0288, allocations: 449.3 kB / 288.7 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.02883, allocations: 8.094 kB / 288.7 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.02884, allocations: 8.016 kB / 288.8 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.02887, allocations: 8 kB / 288.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.02927, allocations: 87.89 kB / 288.9 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.02929, allocations: 15.92 kB / 288.9 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.02952, allocations: 39.77 kB / 288.9 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.02956, allocations: 16 kB / 288.9 MB, free: 0.6211 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.0005561/0.03011, allocations: 230.5 kB / 289.1 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004909/0.03061, allocations: 253.3 kB / 289.4 MB, free: 136 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007413/0.03135, allocations: 300.7 kB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.03136, allocations: 8 kB / 289.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.03136, allocations: 0 / 289.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.03137, allocations: 7.984 kB / 289.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.03287, allocations: 0.8293 MB / 290.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.03287, allocations: 4 kB / 290.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.0334, allocations: 103.8 kB / 290.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.03341, allocations: 8.031 kB / 290.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.03345, allocations: 15.98 kB / 290.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.03346, allocations: 4 kB / 290.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.03346, allocations: 4 kB / 290.7 MB, free: 14.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.03509, allocations: 0.8701 MB / 291.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.487e-05/0.03517, allocations: 51.62 kB / 291.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.03525, allocations: 16 kB / 291.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.03548, allocations: 16 kB / 291.6 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.549e-05/0.03558, allocations: 23.95 kB / 291.6 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.03562, allocations: 19.98 kB / 291.7 MB, free: 13.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000276/0.0359, allocations: 233.1 kB / 291.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0359, allocations: 0 / 291.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004758/0.03637, allocations: 107.7 kB / 292 MB, free: 13.45 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.0001808/0.03655, allocations: 128.4 kB / 292.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009124/0.03746, allocations: 395.9 kB / 292.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.03747, allocations: 3.938 kB / 292.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.03778, allocations: 140 kB / 292.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/0.03854, allocations: 169.7 kB / 292.8 MB, free: 12.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.0405, allocations: 0.9638 MB / 293.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.04081, allocations: 244.2 kB / 294 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.041, allocations: 34.97 kB / 294.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.04113, allocations: 40.48 kB / 294.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of SimCode: time 1.182e-06/0.04113, allocations: 0 / 294.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of Templates: time 0.01025/0.05137, allocations: 4.041 MB / 298.1 MB, free: 7.277 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","/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.884041115059517]