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 1.047/1.047, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002639, allocations: 8 kB / 158.4 MB, free: 15.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05669/0.05699, allocations: 25.17 MB / 183.6 MB, free: 5.891 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.003/2.06, allocations: 0.6613 GB / 0.8406 GB, free: 63.41 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/2.06, allocations: 66.23 kB / 0.8407 GB, free: 63.41 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1502/2.211, allocations: 42.93 MB / 0.8826 GB, free: 28.73 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.344e-06/2.211, allocations: 0 / 0.8826 GB, free: 28.73 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/2.211, allocations: 0 / 0.8826 GB, free: 28.73 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.001028/2.212, allocations: 0.5152 MB / 0.8831 GB, free: 28.17 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/2.212, allocations: 12.02 kB / 0.8831 GB, free: 28.16 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/2.212, allocations: 54.55 kB / 0.8832 GB, free: 28.09 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/2.212, allocations: 23.77 kB / 0.8832 GB, free: 28.07 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/2.212, allocations: 214.9 kB / 0.8834 GB, free: 27.82 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/2.212, allocations: 20.38 kB / 0.8834 GB, free: 27.8 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/2.212, allocations: 27.83 kB / 0.8834 GB, free: 27.77 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006481/2.213, allocations: 333.6 kB / 0.8838 GB, free: 27.44 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/2.213, allocations: 0 / 0.8838 GB, free: 27.44 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/2.213, allocations: 12 kB / 0.8838 GB, free: 27.43 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/2.213, allocations: 4 kB / 0.8838 GB, free: 27.42 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006542/2.214, allocations: 451.6 kB / 0.8842 GB, free: 26.98 MB / 234.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002296/2.216, allocations: 1.188 MB / 0.8854 GB, free: 25.66 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007293/2.217, allocations: 297.2 kB / 0.8856 GB, free: 25.36 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003441/2.22, allocations: 2.127 MB / 0.8877 GB, free: 22.91 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/2.22, allocations: 38.56 kB / 0.8878 GB, free: 22.86 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 2.605e-06/2.22, allocations: 0 / 0.8878 GB, free: 22.86 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008481/2.221, allocations: 331.3 kB / 0.8881 GB, free: 22.53 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/2.221, allocations: 81.11 kB / 0.8881 GB, free: 22.43 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.464e-05/2.221, allocations: 112.9 kB / 0.8883 GB, free: 22.32 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/2.221, allocations: 33.7 kB / 0.8883 GB, free: 22.28 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/2.221, allocations: 178.9 kB / 0.8885 GB, free: 22.1 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.138e-05/2.222, allocations: 106.4 kB / 0.8886 GB, free: 22 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/2.222, allocations: 4 kB / 0.8886 GB, free: 21.99 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.534e-05/2.222, allocations: 326.8 kB / 0.8889 GB, free: 21.66 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/2.222, allocations: 88.44 kB / 0.889 GB, free: 21.57 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/2.222, allocations: 159 kB / 0.8891 GB, free: 21.38 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/2.222, allocations: 104.6 kB / 0.8892 GB, free: 21.28 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/2.222, allocations: 7.953 kB / 0.8892 GB, free: 21.27 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007262/2.223, allocations: 329.2 kB / 0.8895 GB, free: 20.95 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/2.223, allocations: 8 kB / 0.8895 GB, free: 20.94 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/2.223, allocations: 4 kB / 0.8895 GB, free: 20.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/2.223, allocations: 4 kB / 0.8895 GB, free: 20.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/2.224, allocations: 75.89 kB / 0.8896 GB, free: 20.86 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/2.224, allocations: 7.938 kB / 0.8896 GB, free: 20.85 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/2.224, allocations: 23.84 kB / 0.8897 GB, free: 20.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-05/2.224, allocations: 28.14 kB / 0.8897 GB, free: 20.8 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" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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" fixed = true 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 () * Number of clocked 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.0003503/2.224, allocations: 194.1 kB / 0.8899 GB, free: 20.6 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/2.224, allocations: 19.77 kB / 0.8899 GB, free: 20.58 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009882/2.225, allocations: 350.5 kB / 0.8902 GB, free: 20.23 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/2.225, allocations: 4 kB / 0.8902 GB, free: 20.22 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/2.225, allocations: 0 / 0.8902 GB, free: 20.22 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/2.225, allocations: 3.938 kB / 0.8902 GB, free: 20.22 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/2.226, allocations: 313.2 kB / 0.8905 GB, free: 19.86 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.226, allocations: 7.953 kB / 0.8905 GB, free: 19.86 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/2.227, allocations: 59.89 kB / 0.8906 GB, free: 19.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/2.227, allocations: 8 kB / 0.8906 GB, free: 19.79 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/2.227, allocations: 8 kB / 0.8906 GB, free: 19.78 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/2.227, allocations: 7.984 kB / 0.8906 GB, free: 19.77 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/2.227, allocations: 0 / 0.8906 GB, free: 19.77 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008105/2.228, allocations: 0.4939 MB / 0.8911 GB, free: 19.26 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/2.228, allocations: 136.9 kB / 0.8912 GB, free: 19.11 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.514e-05/2.228, allocations: 8 kB / 0.8912 GB, free: 19.1 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/2.228, allocations: 23.86 kB / 0.8913 GB, free: 19.07 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/2.228, allocations: 23.97 kB / 0.8913 GB, free: 19.05 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/2.228, allocations: 19.98 kB / 0.8913 GB, free: 19.03 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.78e-05/2.228, allocations: 87.28 kB / 0.8914 GB, free: 18.95 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.228, allocations: 0 / 0.8914 GB, free: 18.95 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001338/2.23, allocations: 279.6 kB / 0.8916 GB, free: 18.67 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 () * Number of clocked 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.002976/2.233, allocations: 1.853 MB / 0.8935 GB, free: 16.79 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006037/2.233, allocations: 239.7 kB / 0.8937 GB, free: 16.55 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/2.233, allocations: 4 kB / 0.8937 GB, free: 16.55 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002225/2.234, allocations: 132.6 kB / 0.8938 GB, free: 16.42 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008967/2.234, allocations: 72.55 kB / 0.8939 GB, free: 16.35 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/2.238, allocations: 3.296 MB / 0.8971 GB, free: 12.95 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/2.238, allocations: 0.7326 MB / 0.8978 GB, free: 12.18 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/2.238, allocations: 79.33 kB / 0.8979 GB, free: 12.11 MB / 234.7 MB Notification: Performance of SimCode: time 1.362e-06/2.238, allocations: 0 / 0.8979 GB, free: 12.11 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.833/5.072, allocations: 10.12 MB / 0.9078 GB, free: 1.984 MB / 234.7 MB