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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 171.7 kB / 16.8 MB, free: 4.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.4 MB / 223 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00076/0.00076, allocations: 82.38 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06792/0.06792, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 12 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08271/0.08308, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.002794/0.08591, allocations: 2.837 MB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009551/0.08689, allocations: 0.6815 MB / 447.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.08712, allocations: 15.88 kB / 447.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.08727, allocations: 43.52 kB / 447.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.08741, allocations: 43.62 kB / 447.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.08801, allocations: 291.7 kB / 447.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.08841, allocations: 0.6091 MB / 448.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004136/0.08883, allocations: 378.3 kB / 448.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.08896, allocations: 163.2 kB / 448.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.08917, allocations: 206.7 kB / 448.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.08922, allocations: 16 kB / 448.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.493e-05/0.08927, allocations: 16 kB / 449 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.471e-05/0.08934, allocations: 83.61 kB / 449 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.08951, allocations: 256.2 kB / 449.3 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000387/0.0899, allocations: 0.6467 MB / 449.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.08992, allocations: 4 kB / 449.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.08992, allocations: 0 / 449.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.08994, allocations: 0 / 449.9 MB, free: 9.125 MB / 298.7 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.001134/0.09108, allocations: 0.7795 MB / 450.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.09112, allocations: 16.02 kB / 450.7 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.126e-05/0.09122, allocations: 60.28 kB / 450.8 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.09161, allocations: 410.2 kB / 451.2 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.121e-05/0.0917, allocations: 101.3 kB / 451.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.801e-05/0.09178, allocations: 60.38 kB / 451.4 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.09321, allocations: 1.026 MB / 452.4 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.09324, allocations: 3.938 kB / 452.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-05/0.0933, allocations: 24 kB / 452.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.09332, allocations: 16 kB / 452.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007498/0.09407, allocations: 415.7 kB / 452.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.09598, allocations: 1.708 MB / 454.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.09729, allocations: 0.6154 MB / 455.2 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.09775, allocations: 288.7 kB / 455.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.09781, allocations: 16.52 kB / 455.4 MB, free: 3.328 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.09817, allocations: 234.6 kB / 455.7 MB, free: 3.074 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 2.535e-06/0.09819, allocations: 4 kB / 455.7 MB, free: 3.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001338/0.09953, allocations: 0.6968 MB / 456.4 MB, free: 2.367 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.422e-05/0.09964, allocations: 216.5 kB / 456.6 MB, free: 2.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.0999, allocations: 278.9 kB / 456.9 MB, free: 1.828 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.09994, allocations: 33.7 kB / 456.9 MB, free: 1.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1001, allocations: 213 kB / 457.1 MB, free: 1.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.207e-05/0.1001, allocations: 138.2 kB / 457.2 MB, free: 1.438 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/0.1002, allocations: 16 kB / 457.3 MB, free: 1.422 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.1003, allocations: 354.7 kB / 457.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.1006, allocations: 177.9 kB / 457.8 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.101, allocations: 466.6 kB / 458.2 MB, free: 312 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008225/0.1018, allocations: 0.6312 MB / 458.9 MB, free: 15.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.1018, allocations: 4 kB / 458.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001094/0.1029, allocations: 0.6567 MB / 459.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.103, allocations: 8 kB / 459.5 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.103, allocations: 12 kB / 459.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.103, allocations: 12.09 kB / 459.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.1036, allocations: 160.3 kB / 459.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.1036, allocations: 19.94 kB / 459.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.1039, allocations: 67.52 kB / 459.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.593e-05/0.104, allocations: 39.92 kB / 459.8 MB, free: 14.57 MB / 314.7 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,rotationalClock.rotationalClock.changed.u,$CLKPRE.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,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.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,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * 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.0003046/0.1043, allocations: 225.5 kB / 460.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.1048, allocations: 277 kB / 460.3 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006577/0.1054, allocations: 344.8 kB / 460.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.1055, allocations: 8 kB / 460.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1055, allocations: 0 / 460.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.1055, allocations: 7.984 kB / 460.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.1068, allocations: 0.9779 MB / 461.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1068, allocations: 0 / 461.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.1074, allocations: 127.8 kB / 461.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.1074, allocations: 4 kB / 461.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.1075, allocations: 15.98 kB / 461.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.1075, allocations: 7.938 kB / 461.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1075, allocations: 0 / 461.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.109, allocations: 0.9294 MB / 462.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.41e-05/0.1091, allocations: 128.5 kB / 462.9 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.452e-05/0.1091, allocations: 15.94 kB / 462.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.1094, allocations: 31.92 kB / 462.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.1095, allocations: 27.95 kB / 462.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.1096, allocations: 24.11 kB / 463 MB, free: 11.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001832/0.1098, allocations: 186 kB / 463.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1098, allocations: 4 kB / 463.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005116/0.1103, allocations: 119.7 kB / 463.3 MB, free: 11.02 MB / 314.7 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.0001608/0.1105, allocations: 135.1 kB / 463.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.1115, allocations: 0.5014 MB / 463.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.1115, allocations: 4.562 kB / 463.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.1118, allocations: 160.3 kB / 464.1 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007435/0.1125, allocations: 205.3 kB / 464.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.1144, allocations: 1.283 MB / 465.5 MB, free: 8.688 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1148, allocations: 0.8561 MB / 466.4 MB, free: 7.809 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.115, allocations: 47.42 kB / 466.4 MB, free: 7.762 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.115, allocations: 4 kB / 466.4 MB, free: 7.758 MB / 314.7 MB Notification: Performance of Templates: time 0.008352/0.1234, allocations: 6.116 MB / 472.6 MB, free: 1.625 MB / 314.7 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/jenkins1/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