Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas") translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8741/0.8741, allocations: 110.8 MB / 118 MB, free: 14.59 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00182/0.00182, allocations: 164 kB / 143.7 MB, free: 4.91 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.482e-06/6.512e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05137/0.05139, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.263/1.315, allocations: 0.6642 GB / 0.8582 GB, free: 17.95 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/1.315, allocations: 61.16 kB / 0.8582 GB, free: 17.92 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.2631/1.578, allocations: 57.08 MB / 0.914 GB, free: 59.89 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.096e-05/1.578, allocations: 4 kB / 0.914 GB, free: 59.89 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0009608/1.579, allocations: 466.5 kB / 0.9144 GB, free: 59.38 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.579, allocations: 8.031 kB / 0.9144 GB, free: 59.38 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.865e-05/1.579, allocations: 23.81 kB / 0.9145 GB, free: 59.35 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/1.58, allocations: 210.9 kB / 0.9147 GB, free: 59.11 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/1.58, allocations: 4 kB / 0.9147 GB, free: 59.1 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.377e-05/1.58, allocations: 19.89 kB / 0.9147 GB, free: 59.08 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004659/1.58, allocations: 441.6 kB / 0.9151 GB, free: 58.65 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003798/1.58, allocations: 340.5 kB / 0.9154 GB, free: 58.3 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/1.58, allocations: 0 / 0.9154 GB, free: 58.3 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/1.581, allocations: 0 / 0.9154 GB, free: 58.3 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/1.581, allocations: 11.94 kB / 0.9154 GB, free: 58.29 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/1.582, allocations: 1.224 MB / 0.9166 GB, free: 56.98 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/1.582, allocations: 181.1 kB / 0.9168 GB, free: 56.78 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/1.583, allocations: 137.7 kB / 0.9169 GB, free: 56.64 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001229/1.584, allocations: 1.062 MB / 0.918 GB, free: 55.38 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.938e-05/1.584, allocations: 42.56 kB / 0.918 GB, free: 55.33 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 2.204e-06/1.584, allocations: 0 / 0.918 GB, free: 55.33 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.003407/1.587, allocations: 1.114 MB / 0.9191 GB, free: 54.21 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/1.587, allocations: 81.11 kB / 0.9192 GB, free: 54.11 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.932e-05/1.587, allocations: 132.8 kB / 0.9193 GB, free: 53.97 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/1.588, allocations: 25.7 kB / 0.9193 GB, free: 53.94 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.03e-05/1.588, allocations: 112.4 kB / 0.9194 GB, free: 53.83 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.496e-05/1.588, allocations: 102.5 kB / 0.9195 GB, free: 53.73 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/1.588, allocations: 4 kB / 0.9195 GB, free: 53.72 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.477e-05/1.588, allocations: 323.1 kB / 0.9199 GB, free: 53.4 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/1.588, allocations: 102.4 kB / 0.92 GB, free: 53.3 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/1.588, allocations: 212.8 kB / 0.9202 GB, free: 53.05 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/1.591, allocations: 0.9867 MB / 0.9211 GB, free: 52.06 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/1.591, allocations: 0 / 0.9211 GB, free: 52.06 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003285/1.594, allocations: 1.218 MB / 0.9223 GB, free: 50.83 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/1.594, allocations: 4.406 kB / 0.9223 GB, free: 50.83 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.594, allocations: 8 kB / 0.9223 GB, free: 50.82 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.838e-05/1.594, allocations: 4 kB / 0.9223 GB, free: 50.82 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/1.595, allocations: 67.91 kB / 0.9224 GB, free: 50.75 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/1.595, allocations: 11.92 kB / 0.9224 GB, free: 50.74 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/1.595, allocations: 27.75 kB / 0.9224 GB, free: 50.71 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/1.595, allocations: 23.98 kB / 0.9224 GB, free: 50.69 MB / 234.7 MB Warning: Assuming fixed start value for the following 8 variables: state.T:VARIABLE(min = 1.0 max = 10000.0 start = 200.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real state.p:VARIABLE(min = 0.0 max = 100000000.0 start = 100000.0 unit = "Pa" nominal = 1000000.0 ) "Absolute pressure of medium" type: Real medium2.X[4]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.4 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.X[3]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.3 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.X[2]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.1 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.X[1]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.2 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [4] medium2.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 300.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium2.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 200000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 1 * 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.0002777/1.595, allocations: 189.5 kB / 0.9226 GB, free: 50.5 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.638e-05/1.595, allocations: 11.91 kB / 0.9226 GB, free: 50.48 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/1.599, allocations: 1.254 MB / 0.9239 GB, free: 49.22 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/1.599, allocations: 7.984 kB / 0.9239 GB, free: 49.21 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/1.599, allocations: 0 / 0.9239 GB, free: 49.21 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/1.599, allocations: 4 kB / 0.9239 GB, free: 49.21 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/1.6, allocations: 289.7 kB / 0.9242 GB, free: 48.89 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/1.6, allocations: 3.938 kB / 0.9242 GB, free: 48.89 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/1.6, allocations: 51.91 kB / 0.9242 GB, free: 48.84 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/1.6, allocations: 4 kB / 0.9242 GB, free: 48.84 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/1.6, allocations: 19.98 kB / 0.9242 GB, free: 48.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/1.6, allocations: 0 / 0.9242 GB, free: 48.82 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.6, allocations: 0 / 0.9242 GB, free: 48.82 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003374/1.603, allocations: 1.39 MB / 0.9256 GB, free: 47.41 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/1.604, allocations: 144.8 kB / 0.9257 GB, free: 47.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/1.604, allocations: 8 kB / 0.9257 GB, free: 47.24 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/1.604, allocations: 7.984 kB / 0.9257 GB, free: 47.23 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/1.604, allocations: 15.98 kB / 0.9258 GB, free: 47.21 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/1.604, allocations: 31.88 kB / 0.9258 GB, free: 47.18 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.941e-05/1.604, allocations: 95.28 kB / 0.9259 GB, free: 47.09 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001053/1.605, allocations: 192 kB / 0.9261 GB, free: 46.9 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 1 * 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.002207/1.607, allocations: 0.9387 MB / 0.927 GB, free: 46.05 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005089/1.608, allocations: 330 kB / 0.9273 GB, free: 45.73 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.608, allocations: 0 / 0.9273 GB, free: 45.73 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/1.608, allocations: 151.9 kB / 0.9274 GB, free: 45.59 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/1.609, allocations: 88.5 kB / 0.9275 GB, free: 45.5 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/1.61, allocations: 0.7133 MB / 0.9282 GB, free: 44.76 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004101/1.61, allocations: 0.7868 MB / 0.929 GB, free: 43.95 MB / 234.7 MB Notification: Performance of SimCode: time 3.91e-07/1.61, allocations: 4 kB / 0.929 GB, free: 43.95 MB / 234.7 MB Notification: Performance of Templates: time 0.01598/1.626, allocations: 10.82 MB / 0.9396 GB, free: 33.14 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.sim & ./Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TestOnly.FlueGas.pipe 2>&1)