Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001473/0.001478, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.3 MB / 214.1 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 86.72 kB / 262.1 MB, free: 1.613 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.09723/0.09723, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.823e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3087, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.4698, allocations: 83.82 MB / 0.5011 GB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.4702, allocations: 67.97 kB / 0.5011 GB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03806/0.5083, allocations: 8.47 MB / 0.5094 GB, free: 5.902 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5083, allocations: 0 / 0.5094 GB, free: 5.902 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.5084, allocations: 12 kB / 0.5094 GB, free: 5.891 MB / 362.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.002123/0.5105, allocations: 0.7559 MB / 0.5102 GB, free: 5.074 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.5106, allocations: 12.03 kB / 0.5102 GB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.5108, allocations: 63.25 kB / 0.5102 GB, free: 5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.5119, allocations: 418.4 kB / 0.5106 GB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.5121, allocations: 80.72 kB / 0.5107 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.5123, allocations: 39.91 kB / 0.5107 GB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001213/0.5135, allocations: 370.6 kB / 0.5111 GB, free: 4.059 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.5157, allocations: 0.8569 MB / 0.5119 GB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.5157, allocations: 3.984 kB / 0.5119 GB, free: 3.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.87e-05/0.5158, allocations: 7.938 kB / 0.5119 GB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.5159, allocations: 12 kB / 0.512 GB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004194/0.5201, allocations: 1.636 MB / 0.5135 GB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.5224, allocations: 0.549 MB / 0.5141 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007537/0.5232, allocations: 232.5 kB / 0.5143 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.529e-05/0.5233, allocations: 20.52 kB / 0.5143 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004906/0.5238, allocations: 203 kB / 0.5145 GB, free: 372 kB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 6.462e-06/0.5238, allocations: 11.92 kB / 0.5145 GB, free: 360 kB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.3132/0.837, allocations: 423.3 kB / 0.5149 GB, free: 87.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.8372, allocations: 204 kB / 0.5151 GB, free: 86.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004094/0.8376, allocations: 212.6 kB / 0.5153 GB, free: 86.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.902e-05/0.8377, allocations: 28.61 kB / 0.5154 GB, free: 86.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.8379, allocations: 278 kB / 0.5156 GB, free: 86.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.8381, allocations: 131 kB / 0.5158 GB, free: 86.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.8381, allocations: 0 / 0.5158 GB, free: 86.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.8382, allocations: 341.7 kB / 0.5161 GB, free: 86.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.8386, allocations: 131.2 kB / 0.5162 GB, free: 86.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.8391, allocations: 412.2 kB / 0.5166 GB, free: 85.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.8396, allocations: 194 kB / 0.5168 GB, free: 85.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.8397, allocations: 2.469 kB / 0.5168 GB, free: 85.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001567/0.8413, allocations: 0.5207 MB / 0.5173 GB, free: 85.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.8413, allocations: 9.141 kB / 0.5173 GB, free: 85.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.8414, allocations: 8.781 kB / 0.5173 GB, free: 85.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-05/0.8414, allocations: 14.16 kB / 0.5173 GB, free: 85.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.8424, allocations: 146.7 kB / 0.5175 GB, free: 85.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.711e-05/0.8425, allocations: 19.2 kB / 0.5175 GB, free: 85.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005861/0.8431, allocations: 58.08 kB / 0.5175 GB, free: 85.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.8432, allocations: 33.64 kB / 0.5176 GB, free: 85.84 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002405/0.8434, allocations: 150.9 kB / 0.5177 GB, free: 85.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000639/0.8441, allocations: 236.6 kB / 0.5179 GB, free: 85.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007885/0.8449, allocations: 276 kB / 0.5182 GB, free: 85.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.8449, allocations: 10.62 kB / 0.5182 GB, free: 85.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.8449, allocations: 3.234 kB / 0.5182 GB, free: 85.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.845, allocations: 3.281 kB / 0.5182 GB, free: 85.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.8468, allocations: 0.8442 MB / 0.519 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.8468, allocations: 1.906 kB / 0.519 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.848, allocations: 117.4 kB / 0.5192 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-05/0.8481, allocations: 4.469 kB / 0.5192 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.566e-05/0.8481, allocations: 9.891 kB / 0.5192 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.8482, allocations: 3.438 kB / 0.5192 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/0.8482, allocations: 4.266 kB / 0.5192 GB, free: 85.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.8501, allocations: 0.8324 MB / 0.52 GB, free: 85.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001456/0.8503, allocations: 125.6 kB / 0.5201 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.8504, allocations: 6.953 kB / 0.5201 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005159/0.8509, allocations: 18.33 kB / 0.5201 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.8511, allocations: 25.83 kB / 0.5202 GB, free: 84.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.274e-05/0.8511, allocations: 22.11 kB / 0.5202 GB, free: 84.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002339/0.8514, allocations: 168.7 kB / 0.5203 GB, free: 84.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8514, allocations: 0 / 0.5203 GB, free: 84.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000963/0.8524, allocations: 108.8 kB / 0.5204 GB, free: 84.85 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002283/0.8526, allocations: 126.2 kB / 0.5206 GB, free: 84.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.8538, allocations: 417 kB / 0.521 GB, free: 84.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.8539, allocations: 5.125 kB / 0.521 GB, free: 84.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.8542, allocations: 125.3 kB / 0.5211 GB, free: 84.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008555/0.8551, allocations: 155.2 kB / 0.5212 GB, free: 84.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.8574, allocations: 0.758 MB / 0.522 GB, free: 84.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.858, allocations: 0.8682 MB / 0.5228 GB, free: 83.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.8584, allocations: 47.94 kB / 0.5229 GB, free: 83.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8584, allocations: 0 / 0.5229 GB, free: 83.57 MB / 362.7 MB Notification: Performance of Templates: time 0.0139/0.8723, allocations: 5.863 MB / 0.5286 GB, free: 82.96 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches