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.MixIdealGasAir.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.MixIdealGasAir,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9998/0.9998, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.477e-05/2.484e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1695, allocations: 25.16 MB / 179.5 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.879/2.049, allocations: 0.6612 GB / 0.8365 GB, free: 18.56 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/2.049, allocations: 67.03 kB / 0.8366 GB, free: 18.52 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3082/2.357, allocations: 42.79 MB / 0.8784 GB, free: 69.68 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.974e-06/2.357, allocations: 0 / 0.8784 GB, free: 69.68 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.031e-05/2.357, allocations: 2.75 kB / 0.8784 GB, free: 69.68 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001084/2.358, allocations: 0.5093 MB / 0.8789 GB, free: 69.26 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/2.358, allocations: 13.47 kB / 0.8789 GB, free: 69.25 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/2.358, allocations: 52.16 kB / 0.879 GB, free: 69.21 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.645e-05/2.358, allocations: 23.75 kB / 0.879 GB, free: 69.21 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/2.359, allocations: 225 kB / 0.8792 GB, free: 69 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/2.359, allocations: 15.69 kB / 0.8792 GB, free: 68.99 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/2.359, allocations: 25.58 kB / 0.8792 GB, free: 68.98 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006535/2.36, allocations: 337.7 kB / 0.8796 GB, free: 68.93 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/2.36, allocations: 0 / 0.8796 GB, free: 68.93 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/2.36, allocations: 7.75 kB / 0.8796 GB, free: 68.93 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/2.36, allocations: 8 kB / 0.8796 GB, free: 68.92 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006787/2.36, allocations: 445.8 kB / 0.88 GB, free: 68.64 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.002522/2.363, allocations: 1.19 MB / 0.8812 GB, free: 67.46 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007646/2.364, allocations: 291.9 kB / 0.8814 GB, free: 67.19 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/2.364, allocations: 114.6 kB / 0.8815 GB, free: 67.07 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003693/2.368, allocations: 2.14 MB / 0.8836 GB, free: 64.76 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/2.368, allocations: 38.56 kB / 0.8837 GB, free: 64.71 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 2.524e-06/2.368, allocations: 0 / 0.8837 GB, free: 64.71 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006941/2.368, allocations: 254 kB / 0.8839 GB, free: 64.48 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/2.368, allocations: 81.11 kB / 0.884 GB, free: 64.39 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/2.369, allocations: 112.7 kB / 0.8841 GB, free: 64.27 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/2.369, allocations: 29.7 kB / 0.8841 GB, free: 64.24 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/2.369, allocations: 182.9 kB / 0.8843 GB, free: 64.06 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/2.369, allocations: 106.2 kB / 0.8844 GB, free: 63.96 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/2.369, allocations: 12 kB / 0.8844 GB, free: 63.95 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/2.369, allocations: 321.8 kB / 0.8847 GB, free: 63.63 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/2.369, allocations: 70.52 kB / 0.8848 GB, free: 63.56 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/2.369, allocations: 165.6 kB / 0.885 GB, free: 63.37 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/2.37, allocations: 99.42 kB / 0.885 GB, free: 63.29 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/2.37, allocations: 3.938 kB / 0.885 GB, free: 63.29 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007056/2.37, allocations: 323.8 kB / 0.8854 GB, free: 62.99 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/2.37, allocations: 4.312 kB / 0.8854 GB, free: 62.99 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/2.37, allocations: 8 kB / 0.8854 GB, free: 62.98 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/2.37, allocations: 4 kB / 0.8854 GB, free: 62.98 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/2.371, allocations: 71.56 kB / 0.8854 GB, free: 62.92 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/2.371, allocations: 7.953 kB / 0.8854 GB, free: 62.91 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/2.371, allocations: 27.75 kB / 0.8855 GB, free: 62.88 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.307e-05/2.371, allocations: 23.84 kB / 0.8855 GB, free: 62.86 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: medium2.X[2]:VARIABLE(min = max(0.0, max(0.0, 0.0)) max = min(1.0, min(1.0, 1.0)) start = 0.8 unit = "kg/kg" nominal = 0.1 ) "Mass fractions (= (component mass)/total mass m_i/m)" type: Real [2] 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 [2] 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 medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = 200.0 unit = "K" nominal = 500.0 ) "Temperature of medium" type: Real medium.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.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: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * 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.0003149/2.372, allocations: 188.9 kB / 0.8857 GB, free: 62.7 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.566e-05/2.372, allocations: 11.91 kB / 0.8857 GB, free: 62.68 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/2.373, allocations: 345.3 kB / 0.886 GB, free: 62.38 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/2.373, allocations: 4 kB / 0.886 GB, free: 62.38 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/2.373, allocations: 7.953 kB / 0.886 GB, free: 62.37 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/2.373, allocations: 3.609 kB / 0.886 GB, free: 62.37 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008436/2.374, allocations: 306.1 kB / 0.8863 GB, free: 62.06 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/2.374, allocations: 0 / 0.8863 GB, free: 62.06 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/2.374, allocations: 61.78 kB / 0.8864 GB, free: 62.01 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/2.374, allocations: 0 / 0.8864 GB, free: 62.01 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/2.374, allocations: 15.19 kB / 0.8864 GB, free: 62 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/2.374, allocations: 0 / 0.8864 GB, free: 62 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/2.374, allocations: 0 / 0.8864 GB, free: 62 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008258/2.375, allocations: 0.4971 MB / 0.8869 GB, free: 61.51 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/2.375, allocations: 128.4 kB / 0.887 GB, free: 61.38 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/2.375, allocations: 11.75 kB / 0.887 GB, free: 61.37 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/2.376, allocations: 23.8 kB / 0.887 GB, free: 61.35 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/2.376, allocations: 27.33 kB / 0.8871 GB, free: 61.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/2.376, allocations: 27.78 kB / 0.8871 GB, free: 61.31 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.257e-05/2.376, allocations: 87.28 kB / 0.8872 GB, free: 61.22 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.3e-07/2.376, allocations: 0 / 0.8872 GB, free: 61.22 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001337/2.377, allocations: 282 kB / 0.8874 GB, free: 60.96 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * Array equations: 0 * 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.003123/2.38, allocations: 1.826 MB / 0.8892 GB, free: 59.15 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006397/2.381, allocations: 247.8 kB / 0.8895 GB, free: 58.91 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/2.381, allocations: 0.625 kB / 0.8895 GB, free: 58.91 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002235/2.381, allocations: 129.7 kB / 0.8896 GB, free: 58.79 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000908/2.382, allocations: 79.86 kB / 0.8897 GB, free: 58.71 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/2.384, allocations: 0.7807 MB / 0.8904 GB, free: 57.89 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/2.385, allocations: 0.7443 MB / 0.8912 GB, free: 57.12 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/2.385, allocations: 71.41 kB / 0.8912 GB, free: 57.05 MB / 234.7 MB Notification: Performance of SimCode: time 2.715e-06/2.385, allocations: 0 / 0.8912 GB, free: 57.05 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.8/5.185, allocations: 10.1 MB / 0.9011 GB, free: 46.94 MB / 234.7 MB