Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009082/0.0009082, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008823/0.0008823, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.941/0.941, allocations: 177 MB / 204.9 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.21e-05/3.427e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.007657/0.007692, allocations: 3.183 MB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.009641, allocations: 0.763 MB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004384/0.01008, allocations: 11.94 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004571/0.01054, allocations: 67.2 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002855/0.01082, allocations: 83.11 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.01175, allocations: 291.4 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008824/0.01263, allocations: 0.6167 MB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000505/0.01313, allocations: 238.2 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005337/0.01367, allocations: 355.3 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.01411, allocations: 199.4 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.01426, allocations: 72 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.01437, allocations: 72 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.01456, allocations: 143.6 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.01481, allocations: 187.5 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007543/0.01557, allocations: 454.3 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.01557, allocations: 0 / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01557, allocations: 4 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.01559, allocations: 0 / 279.6 MB, free: 10.76 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.001489/0.01708, allocations: 0.8331 MB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.01713, allocations: 15.98 kB / 280.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.01733, allocations: 104.6 kB / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.01794, allocations: 347.1 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.01809, allocations: 105.3 kB / 281 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.0182, allocations: 60.33 kB / 281 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.01983, allocations: 0.734 MB / 281.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/0.01986, allocations: 192 / 281.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.01992, allocations: 20.38 kB / 281.8 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.01993, allocations: 16.12 kB / 281.8 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004923/0.02043, allocations: 192.4 kB / 282 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.02274, allocations: 1.708 MB / 283.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.02378, allocations: 424.9 kB / 284.1 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.02406, allocations: 155.1 kB / 284.3 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.02411, allocations: 16.23 kB / 284.3 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.02437, allocations: 194.1 kB / 284.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 3.176e-06/0.02437, allocations: 0 / 284.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008141/0.02518, allocations: 417 kB / 284.9 MB, free: 5.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.0253, allocations: 178.2 kB / 285 MB, free: 4.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.02556, allocations: 292.2 kB / 285.3 MB, free: 4.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.0256, allocations: 33.7 kB / 285.4 MB, free: 4.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.02574, allocations: 260.3 kB / 285.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.02584, allocations: 131.5 kB / 285.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.02596, allocations: 83.84 kB / 285.8 MB, free: 4.098 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.02612, allocations: 0.5118 MB / 286.3 MB, free: 3.574 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.02626, allocations: 52.97 kB / 286.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.02652, allocations: 272.6 kB / 286.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.02691, allocations: 318.1 kB / 287 MB, free: 2.781 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.02692, allocations: 3.938 kB / 287 MB, free: 2.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005746/0.02749, allocations: 332.4 kB / 287.3 MB, free: 2.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.02752, allocations: 11.94 kB / 287.3 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.02753, allocations: 4 kB / 287.3 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.02755, allocations: 4.469 kB / 287.3 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.0278, allocations: 99.83 kB / 287.4 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.02781, allocations: 4 kB / 287.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.02793, allocations: 47.72 kB / 287.5 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.02795, allocations: 19.94 kB / 287.5 MB, free: 2.262 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.0001459/0.0281, allocations: 188.5 kB / 287.7 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.02834, allocations: 203.2 kB / 287.9 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.02863, allocations: 220.7 kB / 288.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.02864, allocations: 8.031 kB / 288.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.02865, allocations: 7.938 kB / 288.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.02866, allocations: 4 kB / 288.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.0294, allocations: 0.6537 MB / 288.8 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.02941, allocations: 4 kB / 288.8 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.02967, allocations: 103.9 kB / 288.9 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.02968, allocations: 7.984 kB / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.0297, allocations: 12 kB / 288.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.02971, allocations: 0 / 288.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.02971, allocations: 4 kB / 288.9 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000735/0.03044, allocations: 0.6201 MB / 289.5 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.03049, allocations: 43.62 kB / 289.6 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.03054, allocations: 20 kB / 289.6 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.03064, allocations: 12 kB / 289.6 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/0.03071, allocations: 19.95 kB / 289.6 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.03073, allocations: 19.98 kB / 289.6 MB, free: 40 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001232/0.03086, allocations: 197.1 kB / 289.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03086, allocations: 0 / 289.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003294/0.03119, allocations: 107.7 kB / 289.9 MB, free: 15.73 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.0001267/0.03131, allocations: 125.2 kB / 290 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004122/0.03173, allocations: 251.6 kB / 290.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.03173, allocations: 0.9375 kB / 290.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.03184, allocations: 95.98 kB / 290.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.03235, allocations: 150 kB / 290.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.03381, allocations: 0.873 MB / 291.4 MB, free: 14.19 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.195e-05/0.03391, allocations: 129.7 kB / 291.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000127/0.03403, allocations: 38.97 kB / 291.6 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.656e-05/0.03413, allocations: 40.48 kB / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of SimCode: time 2.024e-06/0.03413, allocations: 0 / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of Templates: time 0.007312/0.04144, allocations: 4.179 MB / 295.8 MB, free: 9.832 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.849304312374443]