Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.FlueGas.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.FlueGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.FlueGas") Notification: Performance of loadModel(Modelica): time 0.9914/0.9914, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.69e-05, allocations: 0 / 148.1 MB, free: 6.238 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04514/0.04518, allocations: 25.18 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.648/1.693, allocations: 0.6643 GB / 0.8335 GB, free: 32.52 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/1.693, allocations: 64.53 kB / 0.8336 GB, free: 32.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2955/1.989, allocations: 56.8 MB / 0.889 GB, free: 65.61 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.854e-06/1.989, allocations: 0 / 0.889 GB, free: 65.61 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.181e-06/1.989, allocations: 2.938 kB / 0.889 GB, free: 65.61 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.0007305/1.99, allocations: 474.3 kB / 0.8895 GB, free: 65.19 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/1.99, allocations: 11.84 kB / 0.8895 GB, free: 65.18 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.002e-05/1.99, allocations: 21.61 kB / 0.8895 GB, free: 65.17 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/1.99, allocations: 216.4 kB / 0.8897 GB, free: 64.95 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/1.99, allocations: 5.156 kB / 0.8897 GB, free: 64.95 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/1.99, allocations: 16.98 kB / 0.8898 GB, free: 64.95 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005664/1.991, allocations: 431.3 kB / 0.8902 GB, free: 64.83 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004879/1.991, allocations: 332.7 kB / 0.8905 GB, free: 64.69 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/1.991, allocations: 0 / 0.8905 GB, free: 64.69 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/1.991, allocations: 3.984 kB / 0.8905 GB, free: 64.69 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.57e-05/1.991, allocations: 18.2 kB / 0.8905 GB, free: 64.68 MB / 234.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/1.993, allocations: 1.135 MB / 0.8916 GB, free: 63.82 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/1.994, allocations: 201.5 kB / 0.8918 GB, free: 63.71 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/1.994, allocations: 133.1 kB / 0.8919 GB, free: 63.64 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/1.995, allocations: 1.066 MB / 0.893 GB, free: 62.57 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/1.995, allocations: 34.56 kB / 0.893 GB, free: 62.53 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 3.881e-06/1.995, allocations: 3.312 kB / 0.893 GB, free: 62.53 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.00438/2, allocations: 0.9779 MB / 0.894 GB, free: 62.27 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/2, allocations: 79.98 kB / 0.894 GB, free: 62.17 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/2, allocations: 115.3 kB / 0.8942 GB, free: 62.07 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/2, allocations: 25.7 kB / 0.8942 GB, free: 62.04 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.856e-05/2, allocations: 191.9 kB / 0.8944 GB, free: 61.87 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.914e-05/2, allocations: 96.14 kB / 0.8945 GB, free: 61.79 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/2, allocations: 3.938 kB / 0.8945 GB, free: 61.79 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.837e-05/2, allocations: 329.3 kB / 0.8948 GB, free: 61.46 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/2, allocations: 97.05 kB / 0.8949 GB, free: 61.43 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/2.001, allocations: 201.1 kB / 0.8951 GB, free: 61.26 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004025/2.005, allocations: 0.8299 MB / 0.8959 GB, free: 61.07 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.183e-06/2.005, allocations: 0 / 0.8959 GB, free: 61.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004689/2.009, allocations: 1.061 MB / 0.8969 GB, free: 60.78 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/2.009, allocations: 10.84 kB / 0.8969 GB, free: 60.77 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/2.009, allocations: 3.438 kB / 0.8969 GB, free: 60.77 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/2.009, allocations: 6.625 kB / 0.8969 GB, free: 60.77 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/2.01, allocations: 72.59 kB / 0.897 GB, free: 60.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.493e-06/2.01, allocations: 6 kB / 0.897 GB, free: 60.77 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/2.01, allocations: 30.69 kB / 0.897 GB, free: 60.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.24e-05/2.01, allocations: 27.11 kB / 0.8971 GB, free: 60.74 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.0002994/2.01, allocations: 186 kB / 0.8972 GB, free: 60.61 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/2.011, allocations: 25.06 kB / 0.8973 GB, free: 60.59 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/2.015, allocations: 1.06 MB / 0.8983 GB, free: 60.23 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/2.015, allocations: 11.81 kB / 0.8983 GB, free: 60.23 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.603e-06/2.015, allocations: 0 / 0.8983 GB, free: 60.23 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.53e-06/2.015, allocations: 0 / 0.8983 GB, free: 60.23 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008407/2.016, allocations: 293.4 kB / 0.8986 GB, free: 59.98 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/2.016, allocations: 0 / 0.8986 GB, free: 59.98 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/2.017, allocations: 55.56 kB / 0.8986 GB, free: 59.97 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.237e-06/2.017, allocations: 0 / 0.8986 GB, free: 59.97 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/2.017, allocations: 15.7 kB / 0.8986 GB, free: 59.96 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.593e-06/2.017, allocations: 0 / 0.8986 GB, free: 59.96 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.331e-06/2.017, allocations: 80 / 0.8986 GB, free: 59.96 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004683/2.021, allocations: 1.243 MB / 0.8999 GB, free: 59.22 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/2.021, allocations: 132.8 kB / 0.9 GB, free: 59.07 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.104e-05/2.022, allocations: 11.95 kB / 0.9 GB, free: 59.06 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000349/2.022, allocations: 7.984 kB / 0.9 GB, free: 59.05 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/2.022, allocations: 23.97 kB / 0.9 GB, free: 59.03 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.91e-05/2.022, allocations: 23.98 kB / 0.9001 GB, free: 59 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.266e-05/2.022, allocations: 95.7 kB / 0.9001 GB, free: 58.91 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.82e-07/2.022, allocations: 0 / 0.9001 GB, free: 58.91 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001123/2.023, allocations: 195.7 kB / 0.9003 GB, free: 58.72 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.00173/2.025, allocations: 0.8917 MB / 0.9012 GB, free: 57.91 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005178/2.026, allocations: 316.5 kB / 0.9015 GB, free: 57.61 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.895e-06/2.026, allocations: 4 kB / 0.9015 GB, free: 57.6 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/2.026, allocations: 155.8 kB / 0.9017 GB, free: 57.45 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006984/2.026, allocations: 95.73 kB / 0.9017 GB, free: 57.36 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/2.028, allocations: 0.7814 MB / 0.9025 GB, free: 56.54 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/2.028, allocations: 0.7446 MB / 0.9032 GB, free: 55.77 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/2.028, allocations: 39.42 kB / 0.9033 GB, free: 55.73 MB / 234.7 MB Notification: Performance of SimCode: time 1.78e-06/2.028, allocations: 0 / 0.9033 GB, free: 55.73 MB / 234.7 MB Notification: Performance of Templates: time 0.01383/2.042, allocations: 9.025 MB / 0.9121 GB, free: 46.72 MB / 234.7 MB