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.001072/0.001072, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001009/0.001009, allocations: 174.3 kB / 24.91 MB, free: 8.766 MB / 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.027/1.027, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.383e-06/1.383e-06, allocations: 0 / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.542e-05, allocations: 2.312 kB / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004429/0.004454, allocations: 3.189 MB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.005948, allocations: 0.7743 MB / 277.4 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.006185, allocations: 19.88 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.006497, allocations: 71.25 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.006653, allocations: 87.11 kB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.007255, allocations: 283.4 kB / 277.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005046/0.007759, allocations: 0.6244 MB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003348/0.008094, allocations: 236.1 kB / 278.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/0.008429, allocations: 359.3 kB / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003671/0.008796, allocations: 195.4 kB / 279.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.021e-05/0.008886, allocations: 72 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.941e-05/0.008956, allocations: 72 kB / 279.4 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.00909, allocations: 143.6 kB / 279.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.009246, allocations: 187.5 kB / 279.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005144/0.009761, allocations: 454.3 kB / 280.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.009764, allocations: 0 / 280.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.009765, allocations: 0 / 280.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.009771, allocations: 0 / 280.2 MB, free: 10.54 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.0009543/0.01073, allocations: 0.724 MB / 280.9 MB, free: 9.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.01076, allocations: 8.031 kB / 280.9 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.01087, allocations: 80.88 kB / 281 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.01124, allocations: 268.4 kB / 281.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.614e-05/0.01133, allocations: 97.22 kB / 281.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.01139, allocations: 48.38 kB / 281.4 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008543/0.01225, allocations: 0.6865 MB / 282.1 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.01227, allocations: 8.141 kB / 282.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.0123, allocations: 16.38 kB / 282.1 MB, free: 8.488 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.01232, allocations: 16.12 kB / 282.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.01259, allocations: 142.5 kB / 282.3 MB, free: 8.332 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.01403, allocations: 1.224 MB / 283.5 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006511/0.01469, allocations: 336.1 kB / 283.8 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.01485, allocations: 116.7 kB / 283.9 MB, free: 6.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.01488, allocations: 12.23 kB / 283.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.01506, allocations: 179.9 kB / 284.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of pre-optimization done (n=57): time 2.755e-06/0.01506, allocations: 4 kB / 284.1 MB, free: 6.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=57): time 0.0004582/0.01552, allocations: 279 kB / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.0156, allocations: 186.1 kB / 284.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.01577, allocations: 233 kB / 284.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.01579, allocations: 33.7 kB / 284.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.98e-05/0.01588, allocations: 197.7 kB / 285 MB, free: 5.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.927e-05/0.01596, allocations: 127 kB / 285.1 MB, free: 5.254 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.01607, allocations: 90.36 kB / 285.2 MB, free: 5.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.01617, allocations: 346.7 kB / 285.6 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.426e-05/0.01624, allocations: 36.98 kB / 285.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.01639, allocations: 195 kB / 285.8 MB, free: 4.523 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.01668, allocations: 252.9 kB / 286 MB, free: 4.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.01669, allocations: 0 / 286 MB, free: 4.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003314/0.01702, allocations: 253 kB / 286.3 MB, free: 3.969 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.01703, allocations: 8 kB / 286.3 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.01704, allocations: 4 kB / 286.3 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.01706, allocations: 4 kB / 286.3 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.01737, allocations: 101.5 kB / 286.4 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.01738, allocations: 16.34 kB / 286.4 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.01753, allocations: 47.77 kB / 286.5 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.01755, allocations: 16 kB / 286.5 MB, free: 3.777 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,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.0001418/0.01769, allocations: 148.5 kB / 286.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.01788, allocations: 137.8 kB / 286.8 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.01812, allocations: 172.5 kB / 286.9 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.01813, allocations: 8 kB / 286.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.01813, allocations: 3.938 kB / 286.9 MB, free: 3.297 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.01814, allocations: 12.02 kB / 287 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/0.01871, allocations: 462.7 kB / 287.4 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.01871, allocations: 0 / 287.4 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.01907, allocations: 107.9 kB / 287.5 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.01907, allocations: 4 kB / 287.5 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.0191, allocations: 11.98 kB / 287.5 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.01911, allocations: 7.938 kB / 287.5 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.01911, allocations: 4 kB / 287.5 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.01945, allocations: 311.8 kB / 287.8 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.01948, allocations: 43.69 kB / 287.9 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.01953, allocations: 16 kB / 287.9 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.01967, allocations: 19.94 kB / 287.9 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.01973, allocations: 19.95 kB / 287.9 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.01976, allocations: 15.98 kB / 288 MB, free: 2.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.625e-05/0.01983, allocations: 74.78 kB / 288 MB, free: 2.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01983, allocations: 0 / 288 MB, free: 2.152 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003783/0.02021, allocations: 107.7 kB / 288.1 MB, free: 2.047 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.0001349/0.02035, allocations: 114 kB / 288.2 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.02067, allocations: 204 kB / 288.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.02068, allocations: 4 kB / 288.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.942e-05/0.02078, allocations: 72.75 kB / 288.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.02122, allocations: 130.7 kB / 288.7 MB, free: 1.531 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.02236, allocations: 0.8684 MB / 289.5 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.453e-05/0.02245, allocations: 141.7 kB / 289.7 MB, free: 468 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.0226, allocations: 34.97 kB / 289.7 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.02278, allocations: 111.3 kB / 289.8 MB, free: 324 kB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02278, allocations: 0 / 289.8 MB, free: 324 kB / 266.7 MB Notification: Performance of Templates: time 0.008195/0.03097, allocations: 4.338 MB / 294.1 MB, free: 12.03 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 -s gbode -gbm=radauIIA3 -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","",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.80348740471527]