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.0009818/0.0009822, allocations: 94.53 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 204 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09372/0.09397, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003658/0.09768, allocations: 2.848 MB / 362.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.09915, allocations: 0.6931 MB / 363.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003552/0.09953, allocations: 8 kB / 363.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003482/0.09989, allocations: 59.48 kB / 363.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.1001, allocations: 51.56 kB / 363.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006509/0.1008, allocations: 259.7 kB / 363.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005986/0.1014, allocations: 0.5542 MB / 364.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004652/0.1019, allocations: 321.6 kB / 364.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.1021, allocations: 143.2 kB / 364.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.1024, allocations: 190.8 kB / 365 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.1024, allocations: 16 kB / 365 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.814e-05/0.1025, allocations: 20 kB / 365 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.1026, allocations: 75.61 kB / 365.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.1028, allocations: 232.4 kB / 365.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005063/0.1034, allocations: 0.6431 MB / 366 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1034, allocations: 0 / 366 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1034, allocations: 0 / 366 MB, free: 7.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.915e-05/0.1034, allocations: 0 / 366 MB, free: 7.191 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.001225/0.1046, allocations: 0.7155 MB / 366.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1047, allocations: 8.031 kB / 366.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.1048, allocations: 60.19 kB / 366.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.1053, allocations: 386.4 kB / 367.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.247e-05/0.1054, allocations: 71.58 kB / 367.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.908e-05/0.1055, allocations: 52.31 kB / 367.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1071, allocations: 0.8906 MB / 368.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1071, allocations: 3.938 kB / 368.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.108e-05/0.1072, allocations: 16 kB / 368.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1072, allocations: 15.94 kB / 368.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008038/0.108, allocations: 371.1 kB / 368.6 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.1103, allocations: 1.763 MB / 370.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.1117, allocations: 0.5392 MB / 370.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004545/0.1121, allocations: 255.2 kB / 371.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-05/0.1122, allocations: 16.75 kB / 371.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003845/0.1126, allocations: 218.6 kB / 371.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=57): time 2.935e-06/0.1126, allocations: 0 / 371.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.001313/0.1139, allocations: 0.6183 MB / 372 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.1141, allocations: 186.6 kB / 372.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.1144, allocations: 250.7 kB / 372.4 MB, free: 460 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.1145, allocations: 37.7 kB / 372.4 MB, free: 416 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.1147, allocations: 216.9 kB / 372.6 MB, free: 192 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.1148, allocations: 122.4 kB / 372.8 MB, free: 68 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.1149, allocations: 57.69 kB / 372.8 MB, free: 4 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1741/0.289, allocations: 343.9 kB / 373.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.2897, allocations: 160.2 kB / 373.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006595/0.2904, allocations: 419.4 kB / 373.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000943/0.2913, allocations: 0.5694 MB / 374.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.2914, allocations: 2.188 kB / 374.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001286/0.2926, allocations: 0.6042 MB / 374.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.2927, allocations: 17.58 kB / 374.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.2927, allocations: 8.5 kB / 374.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.571e-05/0.2928, allocations: 12.94 kB / 374.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005218/0.2933, allocations: 131.5 kB / 375.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.616e-05/0.2933, allocations: 22.83 kB / 375.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000371/0.2937, allocations: 55.78 kB / 375.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.576e-05/0.2938, allocations: 34.69 kB / 375.2 MB, free: 18.14 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.0004028/0.2942, allocations: 222.4 kB / 375.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005423/0.2947, allocations: 228.7 kB / 375.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007997/0.2956, allocations: 313.8 kB / 375.9 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.2956, allocations: 11.02 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2956, allocations: 1.438 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.2956, allocations: 4.531 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.297, allocations: 0.8945 MB / 376.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.297, allocations: 4 kB / 376.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.2975, allocations: 112.5 kB / 376.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.2976, allocations: 2.75 kB / 376.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.2976, allocations: 16.48 kB / 377 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.2976, allocations: 4.969 kB / 377 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2976, allocations: 0 / 377 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.2991, allocations: 0.8303 MB / 377.8 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.1e-05/0.2992, allocations: 123.3 kB / 377.9 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.2992, allocations: 19.17 kB / 377.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.2995, allocations: 23.94 kB / 377.9 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.2996, allocations: 25.92 kB / 378 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.2996, allocations: 17.39 kB / 378 MB, free: 17.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.2998, allocations: 181.5 kB / 378.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2998, allocations: 1.031 kB / 378.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005522/0.3004, allocations: 108.4 kB / 378.3 MB, free: 16.93 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.0001489/0.3005, allocations: 124.9 kB / 378.4 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009755/0.3015, allocations: 471.9 kB / 378.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3015, allocations: 0 / 378.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.3018, allocations: 141.5 kB / 379 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007495/0.3026, allocations: 182.9 kB / 379.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.3045, allocations: 1.318 MB / 380.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.3049, allocations: 0.8481 MB / 381.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.305, allocations: 43.09 kB / 381.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.305, allocations: 0 / 381.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Templates: time 0.01223/0.3173, allocations: 5.578 MB / 387 MB, free: 13.75 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 -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