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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 121 kB / 18.41 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 190.9 kB / 21.35 MB, free: 1.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 222.9 MB / 247.1 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] 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=5146,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=5146,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 47.92 kB / 358.6 MB, free: 8.352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1105, allocations: 49.44 MB / 408.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005421/0.116, allocations: 3.2 MB / 411.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.1177, allocations: 0.7515 MB / 412 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002682/0.118, allocations: 15.94 kB / 412 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003928/0.1184, allocations: 79.12 kB / 412.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.1186, allocations: 71.23 kB / 412.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.1193, allocations: 287.6 kB / 412.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007911/0.1201, allocations: 0.6205 MB / 413.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000563/0.1207, allocations: 333.7 kB / 413.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.121, allocations: 223.3 kB / 413.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003854/0.1214, allocations: 266.8 kB / 413.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.1215, allocations: 72 kB / 414 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.951e-05/0.1216, allocations: 72 kB / 414 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.1218, allocations: 147.6 kB / 414.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002792/0.1221, allocations: 278.7 kB / 414.5 MB, free: 472 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009889/0.1231, allocations: 0.8522 MB / 415.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1231, allocations: 0 / 415.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1231, allocations: 0 / 415.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.1231, allocations: 0 / 415.3 MB, free: 15.61 MB / 350.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.001586/0.1247, allocations: 0.8319 MB / 416.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1248, allocations: 11.97 kB / 416.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.1249, allocations: 56.61 kB / 416.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/0.1256, allocations: 402.5 kB / 416.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.978e-05/0.1257, allocations: 63.58 kB / 416.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.793e-05/0.1258, allocations: 60.38 kB / 416.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.1274, allocations: 0.8599 MB / 417.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.1274, allocations: 7.938 kB / 417.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.079e-05/0.1275, allocations: 24 kB / 417.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1275, allocations: 12 kB / 417.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008113/0.1283, allocations: 359 kB / 418 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.1309, allocations: 1.748 MB / 419.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.1323, allocations: 0.529 MB / 420.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.1328, allocations: 262.8 kB / 420.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.713e-05/0.1329, allocations: 16.5 kB / 420.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004027/0.1333, allocations: 210.8 kB / 420.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.415e-06/0.1333, allocations: 0 / 420.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001383/0.1347, allocations: 0.5964 MB / 421.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.1349, allocations: 186.3 kB / 421.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/0.1352, allocations: 262.7 kB / 421.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.1353, allocations: 33.7 kB / 421.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.1354, allocations: 209.4 kB / 422 MB, free: 8.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.1356, allocations: 135 kB / 422.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.1358, allocations: 106.3 kB / 422.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.136, allocations: 346.8 kB / 422.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.1363, allocations: 153.2 kB / 422.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.1369, allocations: 414.8 kB / 423.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008926/0.1378, allocations: 0.5656 MB / 423.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1378, allocations: 0 / 423.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001105/0.1389, allocations: 0.5962 MB / 424.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1389, allocations: 12 kB / 424.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.139, allocations: 11.98 kB / 424.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.139, allocations: 12 kB / 424.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.1395, allocations: 127.8 kB / 424.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1395, allocations: 16.41 kB / 424.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.1399, allocations: 71.61 kB / 424.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-05/0.1399, allocations: 28 kB / 424.6 MB, free: 5.734 MB / 350.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.0003324/0.1403, allocations: 224.4 kB / 424.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004342/0.1407, allocations: 233.6 kB / 425 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006678/0.1414, allocations: 304.4 kB / 425.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.1414, allocations: 12.03 kB / 425.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1414, allocations: 0 / 425.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1414, allocations: 0 / 425.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.1428, allocations: 0.8849 MB / 426.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1428, allocations: 0 / 426.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005035/0.1433, allocations: 103.9 kB / 426.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.1433, allocations: 8 kB / 426.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.1434, allocations: 12 kB / 426.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1434, allocations: 3.984 kB / 426.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1434, allocations: 4 kB / 426.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.1448, allocations: 0.8091 MB / 427.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1449, allocations: 120.8 kB / 427.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.961e-05/0.145, allocations: 20.12 kB / 427.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.1453, allocations: 19.98 kB / 427.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.139e-05/0.1454, allocations: 19.97 kB / 427.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.1454, allocations: 19.98 kB / 427.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.1456, allocations: 189.9 kB / 427.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1456, allocations: 0 / 427.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.1461, allocations: 103.8 kB / 427.6 MB, free: 2.543 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.0002548/0.1464, allocations: 133.3 kB / 427.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009966/0.1474, allocations: 459.4 kB / 428.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1474, allocations: 0 / 428.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.1477, allocations: 137.2 kB / 428.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.1484, allocations: 184.2 kB / 428.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.1504, allocations: 1.058 MB / 429.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2228/0.3732, allocations: 0.8422 MB / 430.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.3735, allocations: 40.95 kB / 430.5 MB, free: 21.79 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3735, allocations: 1.297 kB / 430.5 MB, free: 21.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01227/0.3858, allocations: 5.723 MB / 436.2 MB, free: 21.36 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.691642404999584]