Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 103.7 kB / 16.45 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001956/0.001957, allocations: 192.5 kB / 17.39 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.088/0.088, allocations: 12.59 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 90.08 kB / 394.1 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1352, allocations: 49.4 MB / 443.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.005733/0.141, allocations: 3.215 MB / 446.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1427, allocations: 0.736 MB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.143, allocations: 15.94 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002467/0.1433, allocations: 63.2 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.1435, allocations: 75.19 kB / 447.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009253/0.1444, allocations: 311.5 kB / 447.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007968/0.1452, allocations: 0.6835 MB / 448.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006075/0.1458, allocations: 402 kB / 449 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.1461, allocations: 255.1 kB / 449.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.1465, allocations: 294.7 kB / 449.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.1466, allocations: 80 kB / 449.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.1467, allocations: 84 kB / 449.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.1469, allocations: 155.6 kB / 449.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003102/0.1472, allocations: 306.5 kB / 450.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008511/0.1481, allocations: 0.8721 MB / 451 MB, free: 8.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1481, allocations: 0 / 451 MB, free: 8.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1481, allocations: 4 kB / 451 MB, free: 8.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1481, allocations: 0 / 451 MB, free: 8.961 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: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001692/0.1498, allocations: 0.8848 MB / 451.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.1499, allocations: 12.03 kB / 451.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.15, allocations: 68.19 kB / 452 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007272/0.1508, allocations: 426.1 kB / 452.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.1509, allocations: 101.3 kB / 452.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.151, allocations: 60.38 kB / 452.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.1531, allocations: 1.014 MB / 453.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.1532, allocations: 3.938 kB / 453.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.766e-05/0.1532, allocations: 23.98 kB / 453.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.1533, allocations: 16 kB / 453.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009744/0.1542, allocations: 403.7 kB / 454 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002943/0.1572, allocations: 1.693 MB / 455.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.1589, allocations: 0.6039 MB / 456.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005346/0.1594, allocations: 279.8 kB / 456.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-05/0.1595, allocations: 20.45 kB / 456.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004025/0.1599, allocations: 242.6 kB / 456.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 1.983e-06/0.1599, allocations: 0 / 456.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.001545/0.1615, allocations: 0.6842 MB / 457.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.1616, allocations: 215.8 kB / 457.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.162, allocations: 270.9 kB / 458 MB, free: 1.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.1621, allocations: 37.7 kB / 458.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1623, allocations: 220.9 kB / 458.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.1625, allocations: 138.2 kB / 458.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.1627, allocations: 118.8 kB / 458.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1629, allocations: 354.7 kB / 458.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.1632, allocations: 165.9 kB / 459 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000582/0.1638, allocations: 458.8 kB / 459.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009179/0.1648, allocations: 0.6176 MB / 460.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1648, allocations: 4 kB / 460.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001116/0.1659, allocations: 0.6485 MB / 460.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.1659, allocations: 12.91 kB / 460.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.166, allocations: 8 kB / 460.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.503e-05/0.166, allocations: 20 kB / 460.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.1665, allocations: 151.7 kB / 460.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.1666, allocations: 15.94 kB / 461 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.1669, allocations: 63.45 kB / 461 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.688e-05/0.1669, allocations: 39.98 kB / 461.1 MB, free: 14.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,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,$whenCondition2,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y) * Number of discrete states: 0 () * Number of clocked states: 6 (rotationalClock.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des,engine.inductionToPowerDelay.m_a_sampled,engine.crankshaftPositionEvent.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0003386/0.1673, allocations: 227 kB / 461.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005865/0.1679, allocations: 278.3 kB / 461.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/0.1686, allocations: 328.5 kB / 461.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001282/0.1688, allocations: 8 kB / 461.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.1688, allocations: 4 kB / 461.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.1688, allocations: 3.984 kB / 461.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.1703, allocations: 0.9681 MB / 462.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1703, allocations: 0 / 462.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006347/0.1709, allocations: 119.8 kB / 463 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.1709, allocations: 7.938 kB / 463 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.171, allocations: 19.98 kB / 463 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.171, allocations: 7.938 kB / 463 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.171, allocations: 0 / 463 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.1727, allocations: 0.8991 MB / 463.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.1728, allocations: 128.5 kB / 464 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.897e-05/0.1729, allocations: 20 kB / 464 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.1732, allocations: 31.92 kB / 464.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.1733, allocations: 23.95 kB / 464.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.1733, allocations: 28.06 kB / 464.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.1736, allocations: 194 kB / 464.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1736, allocations: 0 / 464.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.1741, allocations: 119.7 kB / 464.4 MB, free: 10.77 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.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (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,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.m_a_sampled,speedControl.N_des,speedControl.N,speedControl.x_d,rotationalClock.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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.0001715/0.1743, allocations: 131.2 kB / 464.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009912/0.1753, allocations: 0.5053 MB / 465.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1753, allocations: 128 / 465.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.1756, allocations: 151.8 kB / 465.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.1763, allocations: 188.9 kB / 465.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1784, allocations: 0.9877 MB / 466.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.179, allocations: 0.8597 MB / 467.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000273/0.1793, allocations: 51.41 kB / 467.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1794, allocations: 43.42 kB / 467.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1794, allocations: 0 / 467.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Templates: time 0.01078/0.1902, allocations: 4.951 MB / 472.3 MB, free: 2.836 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.EngineThrottleControl.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches