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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 0.9921/0.9921, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.561e-05/2.565e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1888, allocations: 25.15 MB / 179.5 MB, free: 0.832 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.874/2.063, allocations: 0.6649 GB / 0.8402 GB, free: 15.62 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/2.063, allocations: 67.91 kB / 0.8403 GB, free: 15.58 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.348/2.412, allocations: 57.81 MB / 0.8968 GB, free: 53.43 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.843e-06/2.412, allocations: 0 / 0.8968 GB, free: 53.43 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.298e-06/2.412, allocations: 0 / 0.8968 GB, free: 53.43 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.0008221/2.412, allocations: 470.6 kB / 0.8972 GB, free: 52.92 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/2.412, allocations: 8.031 kB / 0.8972 GB, free: 52.91 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/2.413, allocations: 54.55 kB / 0.8973 GB, free: 52.85 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.737e-05/2.413, allocations: 19.81 kB / 0.8973 GB, free: 52.83 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/2.413, allocations: 218.8 kB / 0.8975 GB, free: 52.58 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/2.413, allocations: 12.33 kB / 0.8975 GB, free: 52.57 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/2.413, allocations: 23.89 kB / 0.8975 GB, free: 52.54 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006218/2.414, allocations: 346.7 kB / 0.8979 GB, free: 52.19 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/2.414, allocations: 4 kB / 0.8979 GB, free: 52.19 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/2.414, allocations: 8 kB / 0.8979 GB, free: 52.18 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-05/2.414, allocations: 15.98 kB / 0.8979 GB, free: 52.16 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006767/2.414, allocations: 440.1 kB / 0.8983 GB, free: 51.73 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.002529/2.417, allocations: 1.177 MB / 0.8995 GB, free: 50.43 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004228/2.417, allocations: 214.5 kB / 0.8997 GB, free: 50.2 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/2.418, allocations: 140.4 kB / 0.8998 GB, free: 50.06 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001705/2.419, allocations: 1.063 MB / 0.9008 GB, free: 48.8 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/2.419, allocations: 34.56 kB / 0.9009 GB, free: 48.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=28): time 2.915e-06/2.419, allocations: 0 / 0.9009 GB, free: 48.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=28): time 0.0007788/2.42, allocations: 293.6 kB / 0.9012 GB, free: 48.46 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/2.42, allocations: 81.11 kB / 0.9012 GB, free: 48.36 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/2.42, allocations: 132.8 kB / 0.9014 GB, free: 48.23 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/2.421, allocations: 33.7 kB / 0.9014 GB, free: 48.19 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/2.421, allocations: 178.9 kB / 0.9016 GB, free: 48.01 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/2.421, allocations: 102.5 kB / 0.9017 GB, free: 47.91 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/2.421, allocations: 4 kB / 0.9017 GB, free: 47.91 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/2.421, allocations: 330.8 kB / 0.902 GB, free: 47.57 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/2.421, allocations: 99.97 kB / 0.9021 GB, free: 47.48 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/2.421, allocations: 209.6 kB / 0.9023 GB, free: 47.23 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/2.422, allocations: 140 kB / 0.9024 GB, free: 47.09 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/2.422, allocations: 4 kB / 0.9024 GB, free: 47.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008367/2.422, allocations: 398.2 kB / 0.9028 GB, free: 46.69 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/2.422, allocations: 7.953 kB / 0.9028 GB, free: 46.68 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/2.423, allocations: 4 kB / 0.9028 GB, free: 46.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/2.423, allocations: 8 kB / 0.9028 GB, free: 46.67 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/2.423, allocations: 68.31 kB / 0.9029 GB, free: 46.61 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/2.423, allocations: 15.98 kB / 0.9029 GB, free: 46.59 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/2.423, allocations: 31.69 kB / 0.9029 GB, free: 46.56 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/2.423, allocations: 27.98 kB / 0.9029 GB, free: 46.53 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.0003138/2.424, allocations: 194.3 kB / 0.9031 GB, free: 46.34 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/2.424, allocations: 19.81 kB / 0.9031 GB, free: 46.32 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/2.425, allocations: 381.7 kB / 0.9035 GB, free: 45.94 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/2.425, allocations: 4 kB / 0.9035 GB, free: 45.94 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/2.425, allocations: 0 / 0.9035 GB, free: 45.94 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/2.425, allocations: 7.984 kB / 0.9035 GB, free: 45.93 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009384/2.426, allocations: 333.3 kB / 0.9038 GB, free: 45.55 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/2.426, allocations: 0 / 0.9038 GB, free: 45.55 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004458/2.426, allocations: 55.91 kB / 0.9039 GB, free: 45.5 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/2.426, allocations: 7.938 kB / 0.9039 GB, free: 45.49 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/2.426, allocations: 15.98 kB / 0.9039 GB, free: 45.48 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/2.426, allocations: 4 kB / 0.9039 GB, free: 45.47 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.426, allocations: 0 / 0.9039 GB, free: 45.47 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008457/2.427, allocations: 0.5593 MB / 0.9045 GB, free: 44.89 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/2.427, allocations: 140.9 kB / 0.9046 GB, free: 44.73 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/2.428, allocations: 7.984 kB / 0.9046 GB, free: 44.73 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/2.428, allocations: 16.06 kB / 0.9046 GB, free: 44.71 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/2.428, allocations: 19.97 kB / 0.9046 GB, free: 44.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.012e-05/2.428, allocations: 23.98 kB / 0.9047 GB, free: 44.67 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.1e-05/2.428, allocations: 99.22 kB / 0.9048 GB, free: 44.57 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.41e-07/2.428, allocations: 0 / 0.9048 GB, free: 44.57 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001131/2.429, allocations: 215.7 kB / 0.905 GB, free: 44.36 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.002917/2.432, allocations: 1.891 MB / 0.9068 GB, free: 42.44 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007101/2.433, allocations: 335.7 kB / 0.9071 GB, free: 42.11 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/2.433, allocations: 0 / 0.9071 GB, free: 42.11 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/2.433, allocations: 155.9 kB / 0.9073 GB, free: 41.96 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000985/2.434, allocations: 87.52 kB / 0.9074 GB, free: 41.88 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/2.436, allocations: 0.9146 MB / 0.9083 GB, free: 40.91 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/2.437, allocations: 0.7407 MB / 0.909 GB, free: 40.15 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/2.437, allocations: 75.34 kB / 0.9091 GB, free: 40.07 MB / 234.7 MB Notification: Performance of SimCode: time 1.172e-06/2.437, allocations: 0 / 0.9091 GB, free: 40.07 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.762/5.199, allocations: 9.879 MB / 0.9187 GB, free: 30.21 MB / 234.7 MB