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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.951/0.951, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.185e-05/2.225e-05, allocations: 0 / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 25.15 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.482/1.622, allocations: 0.6649 GB / 0.8402 GB, free: 42.23 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/1.622, allocations: 62.88 kB / 0.8402 GB, free: 42.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3036/1.926, allocations: 57.8 MB / 0.8967 GB, free: 59.77 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.009e-06/1.926, allocations: 0 / 0.8967 GB, free: 59.77 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.726e-06/1.926, allocations: 5.375 kB / 0.8967 GB, free: 59.77 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.0006615/1.927, allocations: 463.9 kB / 0.8971 GB, free: 59.39 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/1.927, allocations: 10.97 kB / 0.8971 GB, free: 59.39 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/1.927, allocations: 25.36 kB / 0.8971 GB, free: 59.38 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/1.927, allocations: 210.2 kB / 0.8973 GB, free: 59.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/1.927, allocations: 17.42 kB / 0.8974 GB, free: 59.18 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/1.927, allocations: 21.22 kB / 0.8974 GB, free: 59.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/1.928, allocations: 347.6 kB / 0.8977 GB, free: 59.12 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/1.928, allocations: 0 / 0.8977 GB, free: 59.12 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/1.928, allocations: 10.28 kB / 0.8977 GB, free: 59.12 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/1.928, allocations: 7.156 kB / 0.8977 GB, free: 59.12 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005412/1.928, allocations: 450 kB / 0.8982 GB, free: 59.12 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.002055/1.93, allocations: 1.186 MB / 0.8993 GB, free: 58.37 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/1.931, allocations: 208.7 kB / 0.8995 GB, free: 58.32 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/1.931, allocations: 137.7 kB / 0.8996 GB, free: 58.3 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001444/1.932, allocations: 1.063 MB / 0.9007 GB, free: 57.27 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/1.932, allocations: 37.69 kB / 0.9007 GB, free: 57.23 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 3.574e-06/1.932, allocations: 0 / 0.9007 GB, free: 57.23 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.0006338/1.933, allocations: 299.3 kB / 0.901 GB, free: 57.19 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/1.933, allocations: 81.02 kB / 0.9011 GB, free: 57.1 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/1.933, allocations: 122 kB / 0.9012 GB, free: 57.01 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/1.933, allocations: 29.2 kB / 0.9012 GB, free: 56.98 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.506e-05/1.933, allocations: 191 kB / 0.9014 GB, free: 56.81 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/1.933, allocations: 101 kB / 0.9015 GB, free: 56.76 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/1.933, allocations: 2.562 kB / 0.9015 GB, free: 56.76 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.762e-05/1.934, allocations: 327.8 kB / 0.9018 GB, free: 56.45 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/1.934, allocations: 101.5 kB / 0.9019 GB, free: 56.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/1.934, allocations: 206 kB / 0.9021 GB, free: 56.33 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/1.934, allocations: 140.4 kB / 0.9022 GB, free: 56.32 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.914e-06/1.934, allocations: 2.562 kB / 0.9023 GB, free: 56.32 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007485/1.935, allocations: 401.6 kB / 0.9026 GB, free: 56.28 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/1.935, allocations: 9.781 kB / 0.9026 GB, free: 56.28 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.731e-06/1.935, allocations: 3.625 kB / 0.9026 GB, free: 56.28 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/1.935, allocations: 6.156 kB / 0.9027 GB, free: 56.28 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/1.935, allocations: 72.67 kB / 0.9027 GB, free: 56.28 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/1.935, allocations: 4.062 kB / 0.9027 GB, free: 56.28 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/1.936, allocations: 36.55 kB / 0.9028 GB, free: 56.27 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/1.936, allocations: 28.38 kB / 0.9028 GB, free: 56.27 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.0002557/1.936, allocations: 205.2 kB / 0.903 GB, free: 56.15 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.422e-05/1.936, allocations: 15.31 kB / 0.903 GB, free: 56.14 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008426/1.937, allocations: 390.3 kB / 0.9034 GB, free: 56.08 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/1.937, allocations: 11.41 kB / 0.9034 GB, free: 56.08 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.498e-06/1.937, allocations: 0 / 0.9034 GB, free: 56.08 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.57e-06/1.937, allocations: 0 / 0.9034 GB, free: 56.08 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008282/1.938, allocations: 327.2 kB / 0.9037 GB, free: 55.89 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-06/1.938, allocations: 0 / 0.9037 GB, free: 55.89 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/1.938, allocations: 53.23 kB / 0.9037 GB, free: 55.89 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.681e-06/1.938, allocations: 7.766 kB / 0.9038 GB, free: 55.88 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/1.938, allocations: 13.73 kB / 0.9038 GB, free: 55.88 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.712e-06/1.938, allocations: 2.938 kB / 0.9038 GB, free: 55.88 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.634e-06/1.938, allocations: 4.5 kB / 0.9038 GB, free: 55.88 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007421/1.939, allocations: 0.5556 MB / 0.9043 GB, free: 55.64 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/1.939, allocations: 142.7 kB / 0.9045 GB, free: 55.54 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/1.939, allocations: 7.906 kB / 0.9045 GB, free: 55.54 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003397/1.94, allocations: 11.53 kB / 0.9045 GB, free: 55.54 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/1.94, allocations: 24.81 kB / 0.9045 GB, free: 55.54 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.809e-05/1.94, allocations: 24.33 kB / 0.9045 GB, free: 55.54 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.438e-05/1.94, allocations: 98.58 kB / 0.9046 GB, free: 55.46 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.787e-06/1.94, allocations: 0 / 0.9046 GB, free: 55.46 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001069/1.941, allocations: 217.3 kB / 0.9048 GB, free: 55.44 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.00156/1.943, allocations: 0.799 MB / 0.9056 GB, free: 55.22 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005572/1.943, allocations: 324.6 kB / 0.9059 GB, free: 55.21 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.923e-06/1.943, allocations: 4.25 kB / 0.9059 GB, free: 55.21 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/1.943, allocations: 161.2 kB / 0.9061 GB, free: 55.2 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007449/1.944, allocations: 86.86 kB / 0.9061 GB, free: 55.19 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/1.945, allocations: 0.7906 MB / 0.9069 GB, free: 54.72 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/1.946, allocations: 0.7373 MB / 0.9076 GB, free: 54.02 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/1.946, allocations: 48.31 kB / 0.9077 GB, free: 54.01 MB / 234.7 MB Notification: Performance of SimCode: time 1.497e-06/1.946, allocations: 0 / 0.9077 GB, free: 54.01 MB / 234.7 MB Notification: Performance of Templates: time 0.01393/1.96, allocations: 9.079 MB / 0.9166 GB, free: 52.1 MB / 234.7 MB