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.001994/0.001994, allocations: 92.62 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.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.001556/0.001556, allocations: 153.4 kB / 24.26 MB, free: 184 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.44/1.44, allocations: 173.4 MB / 200.8 MB, free: 9.301 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.704e-06/1.704e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.668e-05/2.838e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005415/0.005444, allocations: 3.026 MB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.00759, allocations: 0.7358 MB / 271.1 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004825/0.008072, allocations: 11.94 kB / 271.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004773/0.00855, allocations: 83.06 kB / 271.2 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.008877, allocations: 75.19 kB / 271.2 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.009741, allocations: 295.3 kB / 271.5 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009228/0.01066, allocations: 0.6244 MB / 272.1 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005101/0.01117, allocations: 226.2 kB / 272.4 MB, free: 1.637 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005585/0.01173, allocations: 347.4 kB / 272.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004129/0.01215, allocations: 199.4 kB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.01228, allocations: 68 kB / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.01239, allocations: 79.94 kB / 273 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.01258, allocations: 143.5 kB / 273.2 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002615/0.01284, allocations: 187.6 kB / 273.4 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.01395, allocations: 0.8839 MB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.01396, allocations: 0 / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01396, allocations: 0 / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.01398, allocations: 4 kB / 274.3 MB, free: 15.74 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.00185/0.01583, allocations: 0.7371 MB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.01588, allocations: 8.922 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.01611, allocations: 96.61 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006838/0.01679, allocations: 352.3 kB / 275.4 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.01692, allocations: 105.2 kB / 275.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.01702, allocations: 48.38 kB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/0.01889, allocations: 0.9085 MB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.01891, allocations: 4.125 kB / 276.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.01897, allocations: 20.38 kB / 276.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.01899, allocations: 16.12 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000892/0.01988, allocations: 359 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002873/0.02275, allocations: 1.494 MB / 278.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.02424, allocations: 0.502 MB / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005317/0.02477, allocations: 235.8 kB / 279.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.251e-05/0.02482, allocations: 19.97 kB / 279.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000423/0.02525, allocations: 223.6 kB / 279.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.394e-06/0.02525, allocations: 0 / 279.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.001549/0.0268, allocations: 0.6267 MB / 280 MB, free: 9.746 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/0.02697, allocations: 178.2 kB / 280.1 MB, free: 9.535 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.02729, allocations: 262 kB / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.02734, allocations: 37.7 kB / 280.4 MB, free: 9.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.02753, allocations: 209.4 kB / 280.6 MB, free: 9.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.02768, allocations: 119.5 kB / 280.8 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.02784, allocations: 86.14 kB / 280.8 MB, free: 8.816 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.02804, allocations: 338.8 kB / 281.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.02837, allocations: 124.9 kB / 281.3 MB, free: 8.352 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.02884, allocations: 286.9 kB / 281.6 MB, free: 8.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.02958, allocations: 390 kB / 282 MB, free: 7.578 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/0.02959, allocations: 3.938 kB / 282 MB, free: 7.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001004/0.0306, allocations: 476.8 kB / 282.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.03061, allocations: 4 kB / 282.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.03062, allocations: 4 kB / 282.4 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.03064, allocations: 11.94 kB / 282.5 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.03105, allocations: 95.83 kB / 282.5 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.03107, allocations: 8.422 kB / 282.6 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.03134, allocations: 47.77 kB / 282.6 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.03138, allocations: 20 kB / 282.6 MB, free: 6.914 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.0002841/0.03166, allocations: 189.7 kB / 282.8 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004976/0.03216, allocations: 253.3 kB / 283.1 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007121/0.03287, allocations: 297.9 kB / 283.3 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.03288, allocations: 8 kB / 283.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.03289, allocations: 0 / 283.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.0329, allocations: 8.016 kB / 283.4 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.0342, allocations: 0.721 MB / 284.1 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.03421, allocations: 4 kB / 284.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005331/0.03474, allocations: 99.88 kB / 284.2 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.03475, allocations: 4 kB / 284.2 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.697e-05/0.0348, allocations: 15.98 kB / 284.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.0348, allocations: 4 kB / 284.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.03481, allocations: 3.938 kB / 284.2 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.03675, allocations: 0.8302 MB / 285 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.161e-05/0.03684, allocations: 43.62 kB / 285.1 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.446e-05/0.03691, allocations: 16.06 kB / 285.1 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.03717, allocations: 15.98 kB / 285.1 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.03727, allocations: 23.97 kB / 285.1 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.03731, allocations: 15.98 kB / 285.2 MB, free: 4.297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002262/0.03754, allocations: 177.2 kB / 285.3 MB, free: 4.121 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03754, allocations: 0 / 285.3 MB, free: 4.121 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004914/0.03803, allocations: 103.8 kB / 285.4 MB, free: 4.02 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.0001864/0.03822, allocations: 129.9 kB / 285.6 MB, free: 3.887 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008964/0.03911, allocations: 375 kB / 285.9 MB, free: 3.523 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.03912, allocations: 4 kB / 285.9 MB, free: 3.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003037/0.03942, allocations: 123.8 kB / 286 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007576/0.04018, allocations: 189.2 kB / 286.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.04207, allocations: 0.953 MB / 287.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.04238, allocations: 232.2 kB / 287.4 MB, free: 1.969 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000179/0.04256, allocations: 38.97 kB / 287.4 MB, free: 1.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.04269, allocations: 36.48 kB / 287.5 MB, free: 1.895 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.04269, allocations: 4 kB / 287.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of Templates: time 0.1152/0.1579, allocations: 4.055 MB / 291.5 MB, free: 31.97 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] 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.470399818965234]