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.001809/0.001809, allocations: 111.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.761/1.761, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3922, allocations: 50.54 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004831/0.3971, allocations: 3.206 MB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.3987, allocations: 0.7477 MB / 413.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.3991, allocations: 11.94 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004158/0.3996, allocations: 75.19 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.3999, allocations: 71.23 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007646/0.4007, allocations: 291.5 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007763/0.4014, allocations: 0.6205 MB / 414.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005554/0.402, allocations: 337.6 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003102/0.4023, allocations: 227.3 kB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.4028, allocations: 258.8 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.4029, allocations: 72 kB / 415.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.403, allocations: 72 kB / 415.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.4032, allocations: 147.6 kB / 416 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002844/0.4035, allocations: 278.7 kB / 416.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008603/0.4044, allocations: 0.8498 MB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4044, allocations: 0 / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4044, allocations: 0 / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.4044, allocations: 0 / 417.1 MB, free: 10.37 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.001635/0.4061, allocations: 0.8091 MB / 417.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4061, allocations: 12.03 kB / 417.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.4063, allocations: 56.28 kB / 418 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.407, allocations: 402.3 kB / 418.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-05/0.4071, allocations: 67.58 kB / 418.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.794e-05/0.4072, allocations: 56.22 kB / 418.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.4088, allocations: 0.8754 MB / 419.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.4088, allocations: 3.938 kB / 419.4 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.4089, allocations: 23.94 kB / 419.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.4089, allocations: 12 kB / 419.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008089/0.4097, allocations: 355.1 kB / 419.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.4122, allocations: 1.747 MB / 421.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.4136, allocations: 0.5292 MB / 422.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/0.4141, allocations: 262.9 kB / 422.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.4142, allocations: 16.75 kB / 422.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.4146, allocations: 210.7 kB / 422.5 MB, free: 4.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=57): time 2.715e-06/0.4146, allocations: 3.938 kB / 422.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00134/0.4159, allocations: 0.6079 MB / 423.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.4161, allocations: 178.2 kB / 423.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.4164, allocations: 258.6 kB / 423.6 MB, free: 3.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.4164, allocations: 33.7 kB / 423.6 MB, free: 3.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.4166, allocations: 213 kB / 423.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.4167, allocations: 126.5 kB / 423.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.4169, allocations: 110.3 kB / 424 MB, free: 3.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.417, allocations: 350.8 kB / 424.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.4174, allocations: 153.2 kB / 424.5 MB, free: 2.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.4179, allocations: 407 kB / 424.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008547/0.4188, allocations: 0.554 MB / 425.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.4188, allocations: 4 kB / 425.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00109/0.4199, allocations: 0.5937 MB / 426.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.4199, allocations: 12.19 kB / 426.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.4199, allocations: 8 kB / 426.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.42, allocations: 12 kB / 426.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.4205, allocations: 131.8 kB / 426.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.061e-05/0.4205, allocations: 19.92 kB / 426.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.4209, allocations: 55.58 kB / 426.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.607e-05/0.4209, allocations: 28 kB / 426.3 MB, free: 0.5352 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.0002951/0.4212, allocations: 228.4 kB / 426.6 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004016/0.4216, allocations: 229.1 kB / 426.8 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.4223, allocations: 296.5 kB / 427.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.4223, allocations: 11.98 kB / 427.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.4223, allocations: 3.938 kB / 427.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.4223, allocations: 7.938 kB / 427.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.4237, allocations: 0.8855 MB / 428 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4237, allocations: 0 / 428 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.4242, allocations: 103.8 kB / 428.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.4242, allocations: 7.984 kB / 428.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.357e-05/0.4243, allocations: 12 kB / 428.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.4243, allocations: 4 kB / 428.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4243, allocations: 0 / 428.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.4258, allocations: 0.8237 MB / 428.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.4259, allocations: 112.7 kB / 429.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/0.4259, allocations: 16.06 kB / 429.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.4262, allocations: 23.98 kB / 429.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.4263, allocations: 23.97 kB / 429.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.4263, allocations: 19.98 kB / 429.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.4265, allocations: 181.8 kB / 429.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4266, allocations: 0 / 429.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005273/0.4271, allocations: 111.7 kB / 429.4 MB, free: 13.34 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.0001658/0.4273, allocations: 129.5 kB / 429.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009422/0.4282, allocations: 453.3 kB / 430 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4282, allocations: 4.125 kB / 430 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002795/0.4285, allocations: 135.8 kB / 430.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.4292, allocations: 172 kB / 430.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.4312, allocations: 1.051 MB / 431.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.4317, allocations: 0.8474 MB / 432.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.4318, allocations: 35.44 kB / 432.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4318, allocations: 0 / 432.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Templates: time 0.0101/0.442, allocations: 5.782 MB / 438 MB, free: 4.68 MB / 350.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 -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