Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 117.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 208.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.373/1.373, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 359.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2117, allocations: 50.54 MB / 410.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004874/0.2165, allocations: 3.22 MB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2179, allocations: 0.7516 MB / 414.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.2181, allocations: 15.94 kB / 414.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.2184, allocations: 71.19 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.2185, allocations: 83.23 kB / 414.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.2191, allocations: 279.5 kB / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006474/0.2197, allocations: 0.6167 MB / 415.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004032/0.2201, allocations: 249.8 kB / 415.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.2204, allocations: 227.3 kB / 415.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.2207, allocations: 266.8 kB / 415.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-05/0.2208, allocations: 72 kB / 416 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.521e-05/0.2209, allocations: 72 kB / 416.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.221, allocations: 147.6 kB / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.2213, allocations: 278.7 kB / 416.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008292/0.2221, allocations: 0.8443 MB / 417.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2221, allocations: 3.938 kB / 417.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2221, allocations: 3.938 kB / 417.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.2221, allocations: 0 / 417.3 MB, free: 10.27 MB / 334.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.00141/0.2236, allocations: 0.828 MB / 418.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2236, allocations: 8.031 kB / 418.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.2237, allocations: 64.56 kB / 418.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.2242, allocations: 390.6 kB / 418.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.868e-05/0.2243, allocations: 71.58 kB / 418.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.186e-05/0.2244, allocations: 56.33 kB / 418.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.226, allocations: 0.8675 MB / 419.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/0.226, allocations: 7.922 kB / 419.6 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.092e-05/0.226, allocations: 16 kB / 419.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.226, allocations: 16 kB / 419.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007875/0.2268, allocations: 359 kB / 420 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.2292, allocations: 1.752 MB / 421.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.2305, allocations: 0.5029 MB / 422.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004637/0.231, allocations: 251.7 kB / 422.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.231, allocations: 12.77 kB / 422.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.2314, allocations: 214.6 kB / 422.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 1.924e-06/0.2314, allocations: 0 / 422.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00129/0.2327, allocations: 0.6004 MB / 423.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.2328, allocations: 178.4 kB / 423.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.2331, allocations: 262.7 kB / 423.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.2331, allocations: 37.7 kB / 423.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.2333, allocations: 213.3 kB / 424 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.2334, allocations: 131 kB / 424.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.2336, allocations: 102.3 kB / 424.2 MB, free: 3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2337, allocations: 346.8 kB / 424.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003272/0.234, allocations: 153.2 kB / 424.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.2346, allocations: 407 kB / 425.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008451/0.2354, allocations: 0.5649 MB / 425.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.2354, allocations: 7.938 kB / 425.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001053/0.2365, allocations: 0.5946 MB / 426.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.2365, allocations: 8 kB / 426.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2365, allocations: 12 kB / 426.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.2365, allocations: 12 kB / 426.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.237, allocations: 131.8 kB / 426.4 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.237, allocations: 20.36 kB / 426.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.2373, allocations: 59.67 kB / 426.5 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.2374, allocations: 31.98 kB / 426.6 MB, free: 448 kB / 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.0002586/0.2376, allocations: 217.1 kB / 426.8 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.2381, allocations: 229.5 kB / 427 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006426/0.2387, allocations: 312.3 kB / 427.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2387, allocations: 12.03 kB / 427.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2387, allocations: 0 / 427.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.2387, allocations: 7.984 kB / 427.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.2399, allocations: 0.8854 MB / 428.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.2399, allocations: 4 kB / 428.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.2404, allocations: 95.88 kB / 428.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/0.2404, allocations: 8 kB / 428.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.2405, allocations: 15.98 kB / 428.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.2405, allocations: 4 kB / 428.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2405, allocations: 0 / 428.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.2419, allocations: 0.8162 MB / 429.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.508e-05/0.242, allocations: 120.8 kB / 429.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.607e-05/0.2421, allocations: 19.98 kB / 429.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.2423, allocations: 19.98 kB / 429.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/0.2424, allocations: 23.97 kB / 429.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.2424, allocations: 12.12 kB / 429.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.2426, allocations: 189.9 kB / 429.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2426, allocations: 0 / 429.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004676/0.2431, allocations: 111.8 kB / 429.6 MB, free: 13.24 MB / 350.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.0001424/0.2432, allocations: 133.4 kB / 429.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008755/0.2441, allocations: 444.1 kB / 430.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2441, allocations: 0 / 430.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.2444, allocations: 121.3 kB / 430.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.245, allocations: 175.6 kB / 430.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.2467, allocations: 1.041 MB / 431.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.2472, allocations: 0.8436 MB / 432.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.2474, allocations: 43.27 kB / 432.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2475, allocations: 39.42 kB / 432.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2475, allocations: 0 / 432.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of Templates: time 0.00924/0.2568, allocations: 4.37 MB / 436.8 MB, free: 6.004 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches