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.005262/0.005262, allocations: 93.11 kB / 15.91 MB, free: 6.273 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.001045/0.001045, allocations: 200.2 kB / 16.84 MB, free: 6.188 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.639/1.639, allocations: 205.1 MB / 222.7 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08455/0.08455, allocations: 12.58 MB / 282.6 MB, free: 8.852 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.001627/0.001627, allocations: 83.89 kB / 342.8 MB, free: 21.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1188, allocations: 49.4 MB / 392.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.005257/0.1241, allocations: 3.238 MB / 395.4 MB, free: 480 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.1257, allocations: 0.6931 MB / 396.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002971/0.1261, allocations: 11.94 kB / 396.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.1263, allocations: 51.5 kB / 396.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.1265, allocations: 43.62 kB / 396.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.1273, allocations: 291.7 kB / 396.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005692/0.1279, allocations: 0.6052 MB / 397.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005395/0.1284, allocations: 390.3 kB / 397.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.1287, allocations: 199.2 kB / 397.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.1289, allocations: 266.6 kB / 397.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.129, allocations: 32 kB / 398 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.752e-05/0.1291, allocations: 40 kB / 398 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1292, allocations: 111.6 kB / 398.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.1295, allocations: 262.5 kB / 398.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007278/0.1302, allocations: 0.8061 MB / 399.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1302, allocations: 3.938 kB / 399.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1303, allocations: 0 / 399.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.1303, allocations: 0 / 399.2 MB, free: 12.68 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: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.00164/0.1319, allocations: 0.8965 MB / 400.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.132, allocations: 8.031 kB / 400.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.1321, allocations: 64.19 kB / 400.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.1326, allocations: 414.2 kB / 400.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.1327, allocations: 101.3 kB / 400.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.936e-05/0.1328, allocations: 56.38 kB / 400.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.1346, allocations: 1.015 MB / 401.7 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1346, allocations: 3.938 kB / 401.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.1347, allocations: 24 kB / 401.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.1347, allocations: 15.94 kB / 401.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009059/0.1356, allocations: 411.7 kB / 402.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.1381, allocations: 1.708 MB / 403.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.1396, allocations: 0.6076 MB / 404.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/0.1401, allocations: 275.3 kB / 404.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.1402, allocations: 20.53 kB / 404.8 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004965/0.1407, allocations: 234.6 kB / 405 MB, free: 6.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=68): time 2.465e-06/0.1407, allocations: 0 / 405 MB, free: 6.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=68): time 0.001463/0.1422, allocations: 0.6695 MB / 405.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.1424, allocations: 215.8 kB / 405.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.1427, allocations: 274.9 kB / 406.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.1427, allocations: 37.7 kB / 406.2 MB, free: 5.285 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1429, allocations: 217.1 kB / 406.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.143, allocations: 138.2 kB / 406.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000184/0.1432, allocations: 122.7 kB / 406.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1434, allocations: 354.7 kB / 407 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.1437, allocations: 165.9 kB / 407.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.1443, allocations: 462.6 kB / 407.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/0.1452, allocations: 0.6118 MB / 408.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1452, allocations: 4 kB / 408.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001177/0.1464, allocations: 0.6539 MB / 408.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1464, allocations: 8 kB / 408.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.1464, allocations: 8 kB / 408.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.1465, allocations: 12 kB / 408.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004876/0.147, allocations: 147.8 kB / 409.1 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.195e-05/0.147, allocations: 19.92 kB / 409.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.1474, allocations: 63.42 kB / 409.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.1474, allocations: 36.09 kB / 409.2 MB, free: 2.012 MB / 302.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.0003118/0.1477, allocations: 245.5 kB / 409.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004859/0.1482, allocations: 265.8 kB / 409.7 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008138/0.1491, allocations: 340.8 kB / 410 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.1491, allocations: 8 kB / 410 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.1491, allocations: 3.938 kB / 410 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.1491, allocations: 3.984 kB / 410 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1505, allocations: 0.9702 MB / 411 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1505, allocations: 0 / 411 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005271/0.151, allocations: 119.8 kB / 411.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.28e-05/0.1511, allocations: 4.047 kB / 411.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.1511, allocations: 19.94 kB / 411.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1511, allocations: 11.88 kB / 411.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1511, allocations: 4 kB / 411.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.153, allocations: 0.9012 MB / 412 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.1531, allocations: 136.5 kB / 412.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.6e-05/0.1532, allocations: 16 kB / 412.2 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1535, allocations: 27.92 kB / 412.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.1536, allocations: 23.97 kB / 412.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.1536, allocations: 19.98 kB / 412.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.1539, allocations: 194 kB / 412.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1539, allocations: 0 / 412.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006056/0.1545, allocations: 119.7 kB / 412.6 MB, free: 14.5 MB / 318.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.0002099/0.1547, allocations: 127.1 kB / 412.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.1559, allocations: 0.493 MB / 413.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1559, allocations: 0 / 413.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.1562, allocations: 156.3 kB / 413.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007586/0.157, allocations: 201.2 kB / 413.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.159, allocations: 1.198 MB / 414.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.1595, allocations: 0.8639 MB / 415.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00025/0.1597, allocations: 51.41 kB / 415.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.1599, allocations: 43.36 kB / 415.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1599, allocations: 0 / 415.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of Templates: time 0.009623/0.1695, allocations: 4.362 MB / 420.1 MB, free: 6.934 MB / 318.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches