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.00124/0.00124, allocations: 119.9 kB / 18.42 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.77 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004869/0.1167, allocations: 3.211 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.1181, allocations: 0.7476 MB / 362.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.1183, allocations: 11.94 kB / 362.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003376/0.1186, allocations: 79.12 kB / 362.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.1188, allocations: 75.3 kB / 363 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.1194, allocations: 283.5 kB / 363.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005692/0.1199, allocations: 0.6205 MB / 363.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.1204, allocations: 345.6 kB / 364.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.1206, allocations: 227.3 kB / 364.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.121, allocations: 250.9 kB / 364.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.334e-05/0.121, allocations: 72 kB / 364.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.222e-05/0.1211, allocations: 72 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.1213, allocations: 151.6 kB / 365 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002342/0.1215, allocations: 282.6 kB / 365.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007064/0.1222, allocations: 0.8409 MB / 366.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.1223, allocations: 3.984 kB / 366.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1223, allocations: 0 / 366.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.1223, allocations: 0 / 366.1 MB, free: 6.105 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.001364/0.1236, allocations: 0.8091 MB / 366.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1237, allocations: 12.03 kB / 366.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.1238, allocations: 64.19 kB / 367 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.1244, allocations: 394.3 kB / 367.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.962e-05/0.1245, allocations: 67.58 kB / 367.5 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.064e-05/0.1246, allocations: 52.38 kB / 367.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.126, allocations: 0.8866 MB / 368.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.1261, allocations: 11.81 kB / 368.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.959e-05/0.1261, allocations: 20 kB / 368.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1261, allocations: 12 kB / 368.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007426/0.1269, allocations: 360.7 kB / 368.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.1291, allocations: 1.736 MB / 370.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.1305, allocations: 0.5236 MB / 371.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004344/0.1309, allocations: 259.7 kB / 371.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.131, allocations: 20.75 kB / 371.3 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.1313, allocations: 214.6 kB / 371.5 MB, free: 404 kB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 1.893e-06/0.1313, allocations: 0 / 371.5 MB, free: 404 kB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1864/0.3177, allocations: 0.5912 MB / 372.1 MB, free: 20.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.3179, allocations: 183.3 kB / 372.3 MB, free: 20 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.3182, allocations: 251.8 kB / 372.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.304e-05/0.3183, allocations: 37.3 kB / 372.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.3184, allocations: 210.8 kB / 372.8 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.3186, allocations: 128 kB / 372.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.3187, allocations: 107.6 kB / 373 MB, free: 19.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.3188, allocations: 348.6 kB / 373.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.3192, allocations: 156.1 kB / 373.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.3196, allocations: 403.4 kB / 373.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007365/0.3204, allocations: 0.5642 MB / 374.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3204, allocations: 2.469 kB / 374.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001022/0.3214, allocations: 0.597 MB / 375.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3215, allocations: 13.27 kB / 375.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3215, allocations: 12.61 kB / 375.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.224e-05/0.3215, allocations: 11.84 kB / 375.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/0.322, allocations: 126.4 kB / 375.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.487e-05/0.322, allocations: 19.17 kB / 375.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3223, allocations: 66.89 kB / 375.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.3224, allocations: 29.86 kB / 375.3 MB, free: 18.52 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.0002535/0.3227, allocations: 221.7 kB / 375.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004485/0.3231, allocations: 231.8 kB / 375.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.3237, allocations: 302.3 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/0.3237, allocations: 6.875 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3237, allocations: 1.375 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3238, allocations: 7.062 kB / 376.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.3249, allocations: 0.8894 MB / 377 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.325, allocations: 1.344 kB / 377 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.3254, allocations: 101.6 kB / 377.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.3255, allocations: 5.062 kB / 377.1 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.3255, allocations: 14.83 kB / 377.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.3255, allocations: 8.047 kB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3255, allocations: 1.219 kB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.3268, allocations: 0.8095 MB / 377.9 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.899e-05/0.3268, allocations: 122.7 kB / 378.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.359e-05/0.3269, allocations: 24.36 kB / 378.1 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.3272, allocations: 25 kB / 378.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.3272, allocations: 25.17 kB / 378.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.3273, allocations: 17.86 kB / 378.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.3275, allocations: 177.4 kB / 378.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3275, allocations: 0 / 378.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.328, allocations: 108.7 kB / 378.4 MB, free: 16.78 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.0001347/0.3281, allocations: 130.5 kB / 378.5 MB, free: 16.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008551/0.329, allocations: 462.8 kB / 379 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.329, allocations: 1.219 kB / 379 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.3292, allocations: 129.1 kB / 379.1 MB, free: 16.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006757/0.3299, allocations: 177.1 kB / 379.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.3316, allocations: 1.017 MB / 380.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.3319, allocations: 0.8346 MB / 381.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001954/0.3321, allocations: 49.95 kB / 381.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3322, allocations: 39.58 kB / 381.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3322, allocations: 1.469 kB / 381.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Templates: time 0.009222/0.3414, allocations: 4.221 MB / 385.5 MB, free: 14.74 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 cvode -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