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.001493/0.001493, allocations: 104.1 kB / 16.45 MB, free: 6.438 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.001939/0.001939, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.0777/0.0777, allocations: 12.58 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.001848/0.001848, allocations: 85.67 kB / 394.1 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.122, allocations: 49.41 MB / 443.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.005563/0.1276, allocations: 3.215 MB / 446.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.1293, allocations: 0.7243 MB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004495/0.1298, allocations: 19.94 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002886/0.1301, allocations: 63.19 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.1304, allocations: 79.19 kB / 447.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009619/0.1314, allocations: 315.5 kB / 448 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007059/0.1321, allocations: 0.6757 MB / 448.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00061/0.1327, allocations: 414 kB / 449 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.133, allocations: 255.1 kB / 449.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.1333, allocations: 290.7 kB / 449.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.1334, allocations: 84 kB / 449.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.605e-05/0.1335, allocations: 80 kB / 449.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.1337, allocations: 155.6 kB / 449.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002793/0.134, allocations: 310.5 kB / 450.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008502/0.1348, allocations: 0.8682 MB / 451 MB, free: 8.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1348, allocations: 0 / 451 MB, free: 8.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1349, allocations: 4 kB / 451.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1349, allocations: 0 / 451.1 MB, free: 8.957 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.00152/0.1364, allocations: 0.8926 MB / 451.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.1365, allocations: 8.031 kB / 452 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.1366, allocations: 64.19 kB / 452 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006686/0.1373, allocations: 426.1 kB / 452.4 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.1374, allocations: 101.3 kB / 452.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.198e-05/0.1375, allocations: 60.38 kB / 452.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.1392, allocations: 1.006 MB / 453.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.1393, allocations: 7.938 kB / 453.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.856e-05/0.1394, allocations: 24 kB / 453.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.1394, allocations: 12 kB / 453.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009288/0.1403, allocations: 407.7 kB / 454 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.1429, allocations: 1.689 MB / 455.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.1445, allocations: 0.6154 MB / 456.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005071/0.145, allocations: 279.8 kB / 456.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.936e-05/0.1451, allocations: 16.53 kB / 456.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.1455, allocations: 242.6 kB / 456.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 2.615e-06/0.1455, allocations: 0 / 456.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.001483/0.147, allocations: 0.6804 MB / 457.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.1471, allocations: 215.8 kB / 457.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.1475, allocations: 274.9 kB / 458 MB, free: 1.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.594e-05/0.1475, allocations: 33.7 kB / 458.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1477, allocations: 216.9 kB / 458.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1478, allocations: 138.2 kB / 458.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.148, allocations: 122.8 kB / 458.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1481, allocations: 358.7 kB / 458.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.1485, allocations: 161.9 kB / 459 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005632/0.1491, allocations: 462.8 kB / 459.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008504/0.1499, allocations: 0.6176 MB / 460.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1499, allocations: 0 / 460.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001172/0.1511, allocations: 0.6524 MB / 460.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.1512, allocations: 8.875 kB / 460.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.1512, allocations: 8 kB / 460.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.135e-05/0.1512, allocations: 20 kB / 460.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.1518, allocations: 143.8 kB / 460.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.1518, allocations: 23.92 kB / 461 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.1521, allocations: 63.45 kB / 461 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.1522, allocations: 36 kB / 461.1 MB, free: 14.29 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.0003588/0.1526, allocations: 226.4 kB / 461.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/0.1531, allocations: 274.3 kB / 461.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006958/0.1538, allocations: 332.5 kB / 461.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1538, allocations: 8 kB / 461.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.1539, allocations: 0 / 461.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.1539, allocations: 7.984 kB / 461.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.1554, allocations: 0.9642 MB / 462.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.1554, allocations: 96 / 462.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005626/0.156, allocations: 123.7 kB / 463 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.156, allocations: 7.984 kB / 463 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.1561, allocations: 19.98 kB / 463 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.1561, allocations: 7.938 kB / 463 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1561, allocations: 4 kB / 463 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.1577, allocations: 0.8992 MB / 463.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1579, allocations: 136.4 kB / 464 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.18e-05/0.1579, allocations: 16 kB / 464.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.1582, allocations: 31.92 kB / 464.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.56e-05/0.1583, allocations: 23.97 kB / 464.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.1584, allocations: 19.98 kB / 464.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1586, allocations: 194 kB / 464.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1586, allocations: 0 / 464.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006097/0.1593, allocations: 119.7 kB / 464.4 MB, free: 10.78 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.000176/0.1594, allocations: 139.7 kB / 464.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.1606, allocations: 0.5053 MB / 465.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1606, allocations: 0 / 465.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.161, allocations: 151.9 kB / 465.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.1619, allocations: 184.8 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.00248/0.1644, allocations: 0.9958 MB / 466.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006666/0.1651, allocations: 0.8558 MB / 467.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.1654, allocations: 51.41 kB / 467.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.1655, allocations: 47.42 kB / 467.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1655, allocations: 0 / 467.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of Templates: time 0.01193/0.1775, allocations: 4.826 MB / 472.2 MB, free: 2.953 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