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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001571/0.00157, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001946/0.001946, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 64.39 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08782/0.08895, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004591/0.09358, allocations: 3.203 MB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.0949, allocations: 0.7477 MB / 362.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.09512, allocations: 15.94 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003425/0.09548, allocations: 71.19 kB / 362.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.09564, allocations: 75.23 kB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005888/0.09623, allocations: 283.5 kB / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005712/0.09681, allocations: 0.6206 MB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/0.09726, allocations: 337.6 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.09747, allocations: 235.2 kB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.0978, allocations: 254.8 kB / 364.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.973e-05/0.0979, allocations: 72 kB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.504e-05/0.09798, allocations: 72 kB / 364.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.09814, allocations: 147.6 kB / 365 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.09838, allocations: 282.7 kB / 365.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006656/0.09905, allocations: 0.8371 MB / 366.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.09906, allocations: 0 / 366.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09907, allocations: 0 / 366.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.09909, allocations: 4 kB / 366.1 MB, free: 6.074 MB / 302.1 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.001275/0.1004, allocations: 0.8206 MB / 366.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1004, allocations: 12.03 kB / 366.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1005, allocations: 60.19 kB / 367 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.101, allocations: 394.4 kB / 367.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.981e-05/0.1011, allocations: 67.58 kB / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.751e-05/0.1012, allocations: 52.38 kB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1026, allocations: 0.8943 MB / 368.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1027, allocations: 3.938 kB / 368.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/0.1027, allocations: 20 kB / 368.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.1027, allocations: 12 kB / 368.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007406/0.1035, allocations: 364.7 kB / 368.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.1057, allocations: 1.736 MB / 370.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.107, allocations: 0.5352 MB / 371.1 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004328/0.1074, allocations: 251.8 kB / 371.3 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.765e-05/0.1075, allocations: 12.77 kB / 371.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003978/0.1079, allocations: 222.6 kB / 371.5 MB, free: 356 kB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.194e-06/0.1079, allocations: 0 / 371.5 MB, free: 356 kB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.15/0.2578, allocations: 0.5866 MB / 372.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.258, allocations: 185 kB / 372.3 MB, free: 20.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.2583, allocations: 254.4 kB / 372.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.2584, allocations: 35.3 kB / 372.6 MB, free: 19.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2585, allocations: 213 kB / 372.8 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.236e-05/0.2586, allocations: 129 kB / 372.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.2588, allocations: 107.1 kB / 373 MB, free: 19.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.2589, allocations: 349.2 kB / 373.4 MB, free: 19.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.2592, allocations: 152.9 kB / 373.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.2597, allocations: 407.4 kB / 373.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007447/0.2604, allocations: 0.5682 MB / 374.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.2605, allocations: 1.969 kB / 374.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009676/0.2614, allocations: 0.5919 MB / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.2615, allocations: 12.7 kB / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.2615, allocations: 8.5 kB / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.2615, allocations: 12.06 kB / 375.1 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004734/0.262, allocations: 130.5 kB / 375.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/0.262, allocations: 18.36 kB / 375.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.2623, allocations: 59.88 kB / 375.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/0.2624, allocations: 29.42 kB / 375.3 MB, free: 18.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,$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 (76): * Single equations (assignments): 76 * 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.0002321/0.2626, allocations: 211.5 kB / 375.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/0.263, allocations: 236.6 kB / 375.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005619/0.2636, allocations: 306.9 kB / 376.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.2636, allocations: 7.734 kB / 376.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.2636, allocations: 10.2 kB / 376.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.2636, allocations: 3.672 kB / 376.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.2647, allocations: 0.8823 MB / 377 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2647, allocations: 1.406 kB / 377 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.2652, allocations: 104.9 kB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.2652, allocations: 5.812 kB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/0.2652, allocations: 17.25 kB / 377.1 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2653, allocations: 2.75 kB / 377.1 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2653, allocations: 1.375 kB / 377.1 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2664, allocations: 0.8183 MB / 377.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.652e-05/0.2665, allocations: 117.1 kB / 378 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.2666, allocations: 20.59 kB / 378.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.2668, allocations: 21.36 kB / 378.1 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.2669, allocations: 21.66 kB / 378.1 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.267, allocations: 18.92 kB / 378.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.2671, allocations: 181 kB / 378.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2671, allocations: 3.938 kB / 378.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004632/0.2676, allocations: 104.5 kB / 378.4 MB, free: 16.76 MB / 302.1 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.0001167/0.2677, allocations: 140.2 kB / 378.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007782/0.2685, allocations: 452.6 kB / 379 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2685, allocations: 0 / 379 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.2687, allocations: 139.2 kB / 379.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.2694, allocations: 171.5 kB / 379.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.2708, allocations: 1.021 MB / 380.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.2711, allocations: 0.8392 MB / 381.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.2713, allocations: 43.12 kB / 381.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2714, allocations: 39.83 kB / 381.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2714, allocations: 0 / 381.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Templates: time 0.008473/0.2799, allocations: 4.228 MB / 385.5 MB, free: 14.7 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches