Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.705e-05/2.857e-05, allocations: 2.312 kB / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005538/0.005566, allocations: 3.118 MB / 270.4 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.007626, allocations: 0.7436 MB / 271.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.007885, allocations: 11.94 kB / 271.2 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004018/0.008287, allocations: 83.05 kB / 271.2 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.008485, allocations: 75.2 kB / 271.3 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007985/0.009283, allocations: 295.3 kB / 271.6 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007898/0.01007, allocations: 0.6205 MB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000445/0.01052, allocations: 226.2 kB / 272.4 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004859/0.011, allocations: 351.3 kB / 272.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.0114, allocations: 199.4 kB / 273 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.01152, allocations: 72 kB / 273.1 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.01163, allocations: 75.94 kB / 273.1 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.01183, allocations: 147.5 kB / 273.3 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.01209, allocations: 187.6 kB / 273.5 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.01324, allocations: 0.8839 MB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.01325, allocations: 3.984 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.01325, allocations: 0 / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.01326, allocations: 0 / 274.3 MB, free: 15.68 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.001715/0.01498, allocations: 0.8875 MB / 275.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.01502, allocations: 8.922 kB / 275.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.01522, allocations: 100.6 kB / 275.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.01583, allocations: 351.2 kB / 275.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.01596, allocations: 101.2 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.01608, allocations: 60.36 kB / 275.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.01788, allocations: 0.9557 MB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.01791, allocations: 4.125 kB / 276.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.01796, allocations: 20.38 kB / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.01798, allocations: 16.12 kB / 276.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000832/0.01881, allocations: 347 kB / 277.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.02198, allocations: 1.95 MB / 279.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.02349, allocations: 0.544 MB / 279.7 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005114/0.024, allocations: 247.1 kB / 279.9 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.948e-05/0.02406, allocations: 27.97 kB / 279.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004402/0.0245, allocations: 245.7 kB / 280.2 MB, free: 9.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.254e-06/0.02451, allocations: 0 / 280.2 MB, free: 9.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001561/0.02607, allocations: 0.5961 MB / 280.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/0.02624, allocations: 186.1 kB / 281 MB, free: 8.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.02671, allocations: 368.2 kB / 281.3 MB, free: 8.324 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.02676, allocations: 37.95 kB / 281.4 MB, free: 8.281 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.02702, allocations: 284.6 kB / 281.6 MB, free: 8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.02717, allocations: 135 kB / 281.8 MB, free: 7.867 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.02735, allocations: 103.8 kB / 281.9 MB, free: 7.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003228/0.02768, allocations: 0.543 MB / 282.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.02798, allocations: 117 kB / 282.5 MB, free: 7.086 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004788/0.02845, allocations: 344.7 kB / 282.9 MB, free: 6.668 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007553/0.02921, allocations: 449.1 kB / 283.3 MB, free: 6.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.02922, allocations: 7.875 kB / 283.3 MB, free: 6.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008977/0.03011, allocations: 457.3 kB / 283.7 MB, free: 5.695 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.03013, allocations: 12 kB / 283.8 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.03014, allocations: 4 kB / 283.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.03017, allocations: 4 kB / 283.8 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004088/0.03057, allocations: 95.83 kB / 283.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.03059, allocations: 4 kB / 283.9 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.03084, allocations: 35.77 kB / 283.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.939e-05/0.03088, allocations: 20 kB / 283.9 MB, free: 5.523 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.0003277/0.0312, allocations: 240.5 kB / 284.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000478/0.03168, allocations: 249.3 kB / 284.4 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008172/0.0325, allocations: 293.2 kB / 284.7 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.03251, allocations: 4 kB / 284.7 MB, free: 4.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.03252, allocations: 4 kB / 284.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.03253, allocations: 3.984 kB / 284.7 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.03396, allocations: 0.8374 MB / 285.5 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.03396, allocations: 0 / 285.5 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.03447, allocations: 99.88 kB / 285.6 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.03448, allocations: 8.031 kB / 285.6 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.03452, allocations: 15.98 kB / 285.7 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.03453, allocations: 4 kB / 285.7 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.03453, allocations: 3.938 kB / 285.7 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.03611, allocations: 0.8701 MB / 286.5 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-05/0.03619, allocations: 43.64 kB / 286.6 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.096e-05/0.03626, allocations: 12 kB / 286.6 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.0365, allocations: 23.98 kB / 286.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.554e-05/0.03659, allocations: 19.97 kB / 286.6 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.03664, allocations: 19.98 kB / 286.6 MB, free: 2.699 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002531/0.03689, allocations: 233.1 kB / 286.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03689, allocations: 0 / 286.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004683/0.03736, allocations: 107.7 kB / 287 MB, free: 2.363 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.0001873/0.03755, allocations: 125.8 kB / 287.1 MB, free: 2.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008961/0.03844, allocations: 402.8 kB / 287.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.03845, allocations: 0 / 287.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.03875, allocations: 135.6 kB / 287.6 MB, free: 1.699 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.03951, allocations: 195.1 kB / 287.8 MB, free: 1.512 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.04145, allocations: 0.9675 MB / 288.8 MB, free: 0.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.04174, allocations: 240.2 kB / 289 MB, free: 256 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001899/0.04193, allocations: 38.95 kB / 289.1 MB, free: 216 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.04206, allocations: 40.48 kB / 289.1 MB, free: 176 kB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.04206, allocations: 0 / 289.1 MB, free: 176 kB / 266.7 MB Notification: Performance of Templates: time 0.1197/0.1617, allocations: 4.066 MB / 293.2 MB, free: 31.37 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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_4.0.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.707105186069384]