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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 116.2 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 183.1 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2887, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005075/0.2938, allocations: 3.191 MB / 404.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.2955, allocations: 0.7554 MB / 405.3 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.2958, allocations: 8 kB / 405.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003954/0.2962, allocations: 79.12 kB / 405.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.2964, allocations: 67.25 kB / 405.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006833/0.2971, allocations: 290.3 kB / 405.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000643/0.2978, allocations: 0.6206 MB / 406.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005065/0.2983, allocations: 333.6 kB / 406.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.2985, allocations: 231.3 kB / 406.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.2989, allocations: 270.8 kB / 407.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.936e-05/0.2991, allocations: 68 kB / 407.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.464e-05/0.2992, allocations: 76 kB / 407.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2993, allocations: 139.6 kB / 407.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000282/0.2996, allocations: 278.7 kB / 407.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009234/0.3006, allocations: 0.8421 MB / 408.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3006, allocations: 4 kB / 408.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3006, allocations: 4 kB / 408.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.3006, allocations: 0 / 408.6 MB, free: 1.617 MB / 318.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.001523/0.3021, allocations: 0.8196 MB / 409.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3022, allocations: 8.031 kB / 409.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.3023, allocations: 56.28 kB / 409.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.303, allocations: 398.4 kB / 409.9 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.824e-05/0.3031, allocations: 71.58 kB / 409.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.3031, allocations: 52.28 kB / 410 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.3048, allocations: 0.8716 MB / 410.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.3048, allocations: 3.938 kB / 410.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.275e-05/0.3049, allocations: 16 kB / 410.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3049, allocations: 12 kB / 410.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007728/0.3057, allocations: 359 kB / 411.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/0.3081, allocations: 1.751 MB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.3096, allocations: 0.5381 MB / 413.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004558/0.31, allocations: 256.1 kB / 413.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.505e-05/0.3101, allocations: 16.53 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003639/0.3105, allocations: 209.7 kB / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.375e-06/0.3105, allocations: 0 / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.001306/0.3118, allocations: 0.6079 MB / 414.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.3119, allocations: 178.6 kB / 414.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.3122, allocations: 254.6 kB / 415 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.3123, allocations: 37.7 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.3124, allocations: 209 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3125, allocations: 122.3 kB / 415.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.3127, allocations: 102.3 kB / 415.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3129, allocations: 354.9 kB / 415.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.3132, allocations: 153.2 kB / 416 MB, free: 9.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.3137, allocations: 410.8 kB / 416.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008222/0.3145, allocations: 0.5656 MB / 417 MB, free: 8.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.3146, allocations: 4 kB / 417 MB, free: 8.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001021/0.3156, allocations: 0.5937 MB / 417.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3156, allocations: 8 kB / 417.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.3156, allocations: 8 kB / 417.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.468e-05/0.3157, allocations: 16.03 kB / 417.6 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/0.3162, allocations: 131.8 kB / 417.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.3162, allocations: 15.94 kB / 417.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.3165, allocations: 55.52 kB / 417.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.3166, allocations: 32 kB / 417.8 MB, free: 7.785 MB / 334.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.0002836/0.3169, allocations: 220.4 kB / 418 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.3173, allocations: 237.1 kB / 418.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006549/0.318, allocations: 304.4 kB / 418.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.318, allocations: 8 kB / 418.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.318, allocations: 0 / 418.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.318, allocations: 7.984 kB / 418.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.3193, allocations: 0.8809 MB / 419.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3193, allocations: 4 kB / 419.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/0.3198, allocations: 99.88 kB / 419.6 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.3199, allocations: 4 kB / 419.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.3199, allocations: 15.98 kB / 419.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.3199, allocations: 4 kB / 419.6 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3199, allocations: 7.953 kB / 419.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.3214, allocations: 0.8168 MB / 420.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3215, allocations: 120.6 kB / 420.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.3216, allocations: 24.03 kB / 420.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3219, allocations: 23.98 kB / 420.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.324e-05/0.322, allocations: 19.98 kB / 420.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.322, allocations: 15.98 kB / 420.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001887/0.3222, allocations: 181.9 kB / 420.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3222, allocations: 0 / 420.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000522/0.3227, allocations: 107.8 kB / 420.9 MB, free: 4.582 MB / 334.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.0001977/0.3229, allocations: 141.2 kB / 421 MB, free: 4.438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009546/0.3239, allocations: 448.8 kB / 421.5 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3239, allocations: 4.625 kB / 421.5 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.3242, allocations: 131.9 kB / 421.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007396/0.325, allocations: 190 kB / 421.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.3269, allocations: 1.044 MB / 422.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.3274, allocations: 0.8397 MB / 423.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.3276, allocations: 43.42 kB / 423.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3276, allocations: 0 / 423.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of Templates: time 0.01004/0.3376, allocations: 5.729 MB / 429.4 MB, free: 11.97 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches