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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00207/0.00207, allocations: 81.27 kB / 20.49 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002815/0.002815, allocations: 168 kB / 23.75 MB, free: 4.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 177.1 MB / 203.9 MB, free: 9.242 MB / 190.1 MB " [Timeout remaining time 178] 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=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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 66.22 kB / 324.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1474, allocations: 53.38 MB / 378.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.005787/0.1532, allocations: 3.034 MB / 381.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1552, allocations: 0.7398 MB / 381.9 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003208/0.1555, allocations: 11.94 kB / 381.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004211/0.1559, allocations: 79.12 kB / 382 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.1561, allocations: 79.23 kB / 382.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008149/0.1569, allocations: 295.5 kB / 382.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007452/0.1577, allocations: 0.6129 MB / 383 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004832/0.1582, allocations: 226.1 kB / 383.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.1586, allocations: 375.1 kB / 383.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.159, allocations: 230.8 kB / 383.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1591, allocations: 72 kB / 383.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.721e-05/0.1592, allocations: 72 kB / 383.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002175/0.1594, allocations: 143.6 kB / 384.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002796/0.1597, allocations: 227 kB / 384.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.1608, allocations: 0.8484 MB / 385.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1608, allocations: 0 / 385.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1608, allocations: 0 / 385.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.1609, allocations: 4 kB / 385.1 MB, free: 8.742 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.001637/0.1625, allocations: 0.7488 MB / 385.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.1625, allocations: 11.98 kB / 385.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.1627, allocations: 60.56 kB / 386 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007483/0.1634, allocations: 337.1 kB / 386.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.1636, allocations: 101.3 kB / 386.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.1637, allocations: 52.33 kB / 386.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.1654, allocations: 0.9085 MB / 387.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.1655, allocations: 7.938 kB / 387.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.1655, allocations: 19.98 kB / 387.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1655, allocations: 12 kB / 387.4 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008044/0.1664, allocations: 363 kB / 387.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.169, allocations: 1.478 MB / 389.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.1703, allocations: 0.4996 MB / 389.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004712/0.1708, allocations: 235.8 kB / 389.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.233e-05/0.1709, allocations: 12.23 kB / 390 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004125/0.1713, allocations: 243.9 kB / 390.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.244e-06/0.1713, allocations: 0 / 390.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001403/0.1727, allocations: 0.5924 MB / 390.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.1729, allocations: 194.6 kB / 391 MB, free: 2.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.1732, allocations: 245.9 kB / 391.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/0.1733, allocations: 33.7 kB / 391.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.1735, allocations: 217.3 kB / 391.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/0.1736, allocations: 123 kB / 391.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.1738, allocations: 106.3 kB / 391.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002298/0.1741, allocations: 350.8 kB / 392 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.1744, allocations: 161.4 kB / 392.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005798/0.175, allocations: 428.8 kB / 392.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008388/0.1758, allocations: 0.57 MB / 393.2 MB, free: 120 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.1758, allocations: 4 kB / 393.2 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001106/0.1769, allocations: 0.5988 MB / 393.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.177, allocations: 16.16 kB / 393.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.177, allocations: 8 kB / 393.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.177, allocations: 12 kB / 393.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.1775, allocations: 131.8 kB / 393.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.219e-05/0.1775, allocations: 15.94 kB / 394 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.1778, allocations: 55.66 kB / 394 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/0.1779, allocations: 28 kB / 394 MB, free: 15.25 MB / 366.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.0003595/0.1783, allocations: 217.1 kB / 394.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00054/0.1788, allocations: 245.3 kB / 394.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008134/0.1796, allocations: 304.5 kB / 394.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.1796, allocations: 8 kB / 394.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1796, allocations: 0 / 394.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.1796, allocations: 12.02 kB / 394.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.1812, allocations: 0.7168 MB / 395.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1812, allocations: 8.031 kB / 395.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.1819, allocations: 99.88 kB / 395.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.1819, allocations: 4 kB / 395.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.587e-05/0.182, allocations: 15.98 kB / 395.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/0.182, allocations: 4 kB / 395.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.182, allocations: 0 / 395.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.1839, allocations: 0.8152 MB / 396.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.1839, allocations: 43.64 kB / 396.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.184, allocations: 16.06 kB / 396.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.1843, allocations: 23.98 kB / 396.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.26e-05/0.1844, allocations: 23.95 kB / 396.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.1844, allocations: 15.98 kB / 396.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.1847, allocations: 169.2 kB / 396.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1847, allocations: 0 / 396.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006404/0.1853, allocations: 119.7 kB / 396.9 MB, free: 12.34 MB / 366.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.0002157/0.1855, allocations: 124.5 kB / 397 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.1866, allocations: 440.9 kB / 397.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1866, allocations: 3.938 kB / 397.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.1868, allocations: 127.9 kB / 397.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007291/0.1876, allocations: 164.4 kB / 397.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.1899, allocations: 1.03 MB / 398.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.1903, allocations: 232.9 kB / 399 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.1905, allocations: 51.27 kB / 399 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.1907, allocations: 44.48 kB / 399.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1907, allocations: 0 / 399.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of Templates: time 0.01204/0.2027, allocations: 4.281 MB / 403.3 MB, free: 5.848 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.25155558437109]