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.001174/0.001174, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001778/0.002951, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001072/0.001072, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001658/0.00273, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9001/0.9001, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1377/1.038, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.7 MB " [Timeout remaining time 179] 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.673e-06/1.673e-06, allocations: 0 / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.798e-05, allocations: 2.312 kB / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003145/0.003163, allocations: 3.193 MB / 242.9 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.004243, allocations: 0.7773 MB / 243.7 MB, free: 2.41 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.004416, allocations: 15.88 kB / 243.7 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.004601, allocations: 79.83 kB / 243.8 MB, free: 2.316 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.004716, allocations: 80.09 kB / 243.9 MB, free: 2.238 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004795/0.005195, allocations: 289.1 kB / 244.1 MB, free: 1.953 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004221/0.005617, allocations: 0.6017 MB / 244.7 MB, free: 1.352 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.005881, allocations: 236.1 kB / 245 MB, free: 1.113 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.006172, allocations: 385.7 kB / 245.4 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.006408, allocations: 199.4 kB / 245.6 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.006472, allocations: 73.97 kB / 245.6 MB, free: 480 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.719e-05/0.00653, allocations: 72 kB / 245.7 MB, free: 408 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.006633, allocations: 107.7 kB / 245.8 MB, free: 300 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.006743, allocations: 159.7 kB / 246 MB, free: 140 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.007128, allocations: 406.5 kB / 246.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.007137, allocations: 5.406 kB / 246.4 MB, free: 15.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.007138, allocations: 0 / 246.4 MB, free: 15.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.007149, allocations: 0 / 246.4 MB, free: 15.73 MB / 250.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.0008301/0.007979, allocations: 0.8217 MB / 247.2 MB, free: 14.88 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.008007, allocations: 9.031 kB / 247.2 MB, free: 14.88 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.982e-05/0.008097, allocations: 80.88 kB / 247.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.008391, allocations: 262.2 kB / 247.5 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.104e-05/0.008462, allocations: 97.27 kB / 247.6 MB, free: 14.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.008518, allocations: 57.02 kB / 247.7 MB, free: 14.35 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000663/0.009181, allocations: 0.6839 MB / 248.4 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.009199, allocations: 12.11 kB / 248.4 MB, free: 13.62 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.009228, allocations: 21.19 kB / 248.4 MB, free: 13.6 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.009238, allocations: 16.12 kB / 248.4 MB, free: 13.58 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.009425, allocations: 132.7 kB / 248.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.01053, allocations: 1.231 MB / 249.8 MB, free: 12.17 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.01105, allocations: 345.5 kB / 250.1 MB, free: 11.8 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.01117, allocations: 119.8 kB / 250.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.0112, allocations: 23.98 kB / 250.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.01133, allocations: 165.4 kB / 250.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of pre-optimization done (n=57): time 1.562e-06/0.01133, allocations: 0 / 250.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.0003587/0.01169, allocations: 281.4 kB / 250.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.01182, allocations: 172.3 kB / 250.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.01194, allocations: 228.9 kB / 251.1 MB, free: 10.74 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.01196, allocations: 37.64 kB / 251.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.01204, allocations: 206 kB / 251.3 MB, free: 10.49 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.837e-05/0.0121, allocations: 119 kB / 251.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-05/0.01217, allocations: 82.14 kB / 251.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.01225, allocations: 346.7 kB / 251.8 MB, free: 9.938 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.971e-05/0.0123, allocations: 36.98 kB / 251.9 MB, free: 9.902 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.01241, allocations: 202.9 kB / 252.1 MB, free: 9.641 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.0126, allocations: 252 kB / 252.3 MB, free: 9.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.0126, allocations: 0 / 252.3 MB, free: 9.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002388/0.01284, allocations: 255.3 kB / 252.6 MB, free: 9.086 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.01285, allocations: 4 kB / 252.6 MB, free: 9.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.01286, allocations: 4 kB / 252.6 MB, free: 9.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.01288, allocations: 8.469 kB / 252.6 MB, free: 9.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.01311, allocations: 111.8 kB / 252.7 MB, free: 8.961 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.01311, allocations: 11.94 kB / 252.7 MB, free: 8.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.01322, allocations: 35.77 kB / 252.7 MB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.01323, allocations: 16 kB / 252.8 MB, free: 8.898 MB / 250.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.0001122/0.01335, allocations: 151.5 kB / 252.9 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.01349, allocations: 143.4 kB / 253 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.01368, allocations: 184.8 kB / 253.2 MB, free: 8.414 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01369, allocations: 4.031 kB / 253.2 MB, free: 8.41 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.01369, allocations: 11.94 kB / 253.2 MB, free: 8.398 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.0137, allocations: 0 / 253.2 MB, free: 8.398 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004245/0.01412, allocations: 462.8 kB / 253.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.01412, allocations: 4 kB / 253.7 MB, free: 7.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.0144, allocations: 119.9 kB / 253.8 MB, free: 7.801 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.01443, allocations: 39.64 kB / 253.9 MB, free: 7.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.01443, allocations: 11.88 kB / 253.9 MB, free: 7.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.01445, allocations: 12 kB / 253.9 MB, free: 7.738 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.01446, allocations: 3.984 kB / 253.9 MB, free: 7.734 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.01446, allocations: 11.94 kB / 253.9 MB, free: 7.723 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/0.0147, allocations: 294.8 kB / 254.2 MB, free: 7.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.01474, allocations: 16 kB / 254.2 MB, free: 7.395 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.01484, allocations: 23.92 kB / 254.2 MB, free: 7.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.01489, allocations: 19.91 kB / 254.2 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.0149, allocations: 15.98 kB / 254.3 MB, free: 7.336 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.475e-05/0.01496, allocations: 74.78 kB / 254.3 MB, free: 7.262 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01496, allocations: 0 / 254.3 MB, free: 7.262 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002352/0.01519, allocations: 99.78 kB / 254.4 MB, free: 7.164 MB / 250.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.0001031/0.0153, allocations: 114.3 kB / 254.5 MB, free: 7.043 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002366/0.01553, allocations: 206.5 kB / 254.7 MB, free: 6.836 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.01554, allocations: 4 kB / 254.7 MB, free: 6.832 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.928e-05/0.01563, allocations: 88.69 kB / 254.8 MB, free: 6.742 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003955/0.01603, allocations: 359.6 kB / 255.2 MB, free: 6.355 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.01855, allocations: 0.9036 MB / 256.1 MB, free: 5.414 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.892e-05/0.01863, allocations: 141.7 kB / 256.2 MB, free: 5.258 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.01875, allocations: 39.09 kB / 256.3 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.01889, allocations: 107.4 kB / 256.4 MB, free: 5.109 MB / 250.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01889, allocations: 0 / 256.4 MB, free: 5.109 MB / 250.7 MB Notification: Performance of Templates: time 0.006694/0.02559, allocations: 4.372 MB / 260.7 MB, free: 0.7969 MB / 250.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3666883232071996]