Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.FlueGas,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.033/1.033, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.789e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05675/0.05683, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.817/1.873, allocations: 0.6643 GB / 0.8336 GB, free: 18.76 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/1.874, allocations: 60.16 kB / 0.8337 GB, free: 18.73 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3498/2.224, allocations: 56.8 MB / 0.8891 GB, free: 60.54 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.953e-06/2.224, allocations: 0 / 0.8891 GB, free: 60.54 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/2.224, allocations: 0 / 0.8891 GB, free: 60.54 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.001055/2.225, allocations: 472.9 kB / 0.8896 GB, free: 60.04 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/2.225, allocations: 8.031 kB / 0.8896 GB, free: 60.03 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/2.225, allocations: 23.77 kB / 0.8896 GB, free: 60 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008001/2.233, allocations: 222.7 kB / 0.8898 GB, free: 59.75 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/2.233, allocations: 8 kB / 0.8898 GB, free: 59.74 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/2.233, allocations: 12 kB / 0.8899 GB, free: 59.73 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009264/2.234, allocations: 436.3 kB / 0.8903 GB, free: 59.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/2.235, allocations: 330 kB / 0.8906 GB, free: 58.96 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/2.235, allocations: 0 / 0.8906 GB, free: 58.96 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/2.235, allocations: 3.984 kB / 0.8906 GB, free: 58.96 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-05/2.235, allocations: 15.95 kB / 0.8906 GB, free: 58.95 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.007566/2.242, allocations: 1.142 MB / 0.8917 GB, free: 57.7 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/2.243, allocations: 197 kB / 0.8919 GB, free: 57.49 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/2.243, allocations: 133.7 kB / 0.892 GB, free: 57.35 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005979/2.249, allocations: 1.059 MB / 0.8931 GB, free: 56.09 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/2.249, allocations: 38.56 kB / 0.8931 GB, free: 56.04 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 4.538e-06/2.249, allocations: 0 / 0.8931 GB, free: 56.04 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.007425/2.257, allocations: 0.978 MB / 0.8941 GB, free: 55.06 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/2.257, allocations: 81.11 kB / 0.8941 GB, free: 54.96 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/2.257, allocations: 113 kB / 0.8942 GB, free: 54.85 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.73e-05/2.266, allocations: 33.7 kB / 0.8943 GB, free: 54.81 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.488e-05/2.266, allocations: 182.9 kB / 0.8944 GB, free: 54.63 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/2.266, allocations: 102.5 kB / 0.8945 GB, free: 54.53 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/2.266, allocations: 0 / 0.8945 GB, free: 54.53 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.61e-05/2.266, allocations: 326.8 kB / 0.8949 GB, free: 54.2 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/2.266, allocations: 95.97 kB / 0.895 GB, free: 54.11 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/2.267, allocations: 200.8 kB / 0.8951 GB, free: 53.86 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/2.277, allocations: 0.8425 MB / 0.896 GB, free: 53.02 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/2.277, allocations: 0 / 0.896 GB, free: 53.02 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00778/2.285, allocations: 1.059 MB / 0.897 GB, free: 51.96 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/2.285, allocations: 8 kB / 0.897 GB, free: 51.95 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/2.285, allocations: 4 kB / 0.897 GB, free: 51.95 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/2.285, allocations: 4 kB / 0.897 GB, free: 51.94 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005901/2.286, allocations: 79.83 kB / 0.8971 GB, free: 51.86 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/2.286, allocations: 4 kB / 0.8971 GB, free: 51.86 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/2.286, allocations: 35.95 kB / 0.8971 GB, free: 51.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.822e-05/2.286, allocations: 24 kB / 0.8972 GB, free: 51.8 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.0004084/2.287, allocations: 189.8 kB / 0.8973 GB, free: 51.61 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00591/2.293, allocations: 0.9847 MB / 0.8983 GB, free: 50.62 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.541e-05/2.293, allocations: 11.91 kB / 0.8983 GB, free: 50.61 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005623/2.299, allocations: 1.057 MB / 0.8993 GB, free: 49.55 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/2.299, allocations: 15.88 kB / 0.8994 GB, free: 49.54 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/2.299, allocations: 4 kB / 0.8994 GB, free: 49.53 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/2.299, allocations: 0 / 0.8994 GB, free: 49.53 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/2.3, allocations: 289.9 kB / 0.8996 GB, free: 49.22 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/2.3, allocations: 0 / 0.8996 GB, free: 49.22 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/2.3, allocations: 43.97 kB / 0.8997 GB, free: 49.18 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.996e-06/2.3, allocations: 4 kB / 0.8997 GB, free: 49.17 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/2.3, allocations: 15.98 kB / 0.8997 GB, free: 49.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/2.3, allocations: 4 kB / 0.8997 GB, free: 49.15 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.3, allocations: 0 / 0.8997 GB, free: 49.15 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005392/2.306, allocations: 1.242 MB / 0.9009 GB, free: 47.89 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/2.306, allocations: 140.8 kB / 0.901 GB, free: 47.73 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.42e-05/2.306, allocations: 4 kB / 0.901 GB, free: 47.73 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004112/2.306, allocations: 11.98 kB / 0.9011 GB, free: 47.71 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/2.307, allocations: 27.92 kB / 0.9011 GB, free: 47.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.481e-05/2.307, allocations: 19.98 kB / 0.9011 GB, free: 47.67 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.503e-05/2.307, allocations: 103.2 kB / 0.9012 GB, free: 47.57 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.307, allocations: 0 / 0.9012 GB, free: 47.57 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001188/2.308, allocations: 187.8 kB / 0.9014 GB, free: 47.38 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.00774/2.316, allocations: 2.697 MB / 0.904 GB, free: 44.75 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006997/2.316, allocations: 308.5 kB / 0.9043 GB, free: 44.45 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/2.316, allocations: 4 kB / 0.9043 GB, free: 44.45 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/2.317, allocations: 156 kB / 0.9045 GB, free: 44.29 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/2.318, allocations: 75.91 kB / 0.9045 GB, free: 44.22 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/2.32, allocations: 0.8814 MB / 0.9054 GB, free: 43.29 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/2.32, allocations: 0.7408 MB / 0.9061 GB, free: 42.52 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/2.32, allocations: 67.41 kB / 0.9062 GB, free: 42.46 MB / 234.7 MB Notification: Performance of SimCode: time 1.383e-06/2.32, allocations: 4 kB / 0.9062 GB, free: 42.45 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.78/5.1, allocations: 9.822 MB / 0.9158 GB, free: 32.64 MB / 234.7 MB