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: translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir") Notification: Performance of loadModel(Modelica): time 1.046/1.046, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002615, allocations: 8 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05485/0.05514, allocations: 25.16 MB / 184 MB, free: 6.035 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.009/2.064, allocations: 0.6613 GB / 0.841 GB, free: 65.56 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/2.064, allocations: 66.31 kB / 0.8411 GB, free: 65.56 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1574/2.222, allocations: 42.92 MB / 0.883 GB, free: 39.77 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.134e-06/2.222, allocations: 0 / 0.883 GB, free: 39.77 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/2.222, allocations: 4 kB / 0.883 GB, free: 39.76 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.001042/2.223, allocations: 0.5075 MB / 0.8835 GB, free: 39.2 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/2.223, allocations: 8.031 kB / 0.8835 GB, free: 39.2 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.643e-05/2.223, allocations: 23.77 kB / 0.8835 GB, free: 39.17 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/2.223, allocations: 214.9 kB / 0.8838 GB, free: 38.92 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/2.223, allocations: 16.38 kB / 0.8838 GB, free: 38.91 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/2.223, allocations: 35.83 kB / 0.8838 GB, free: 38.87 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/2.224, allocations: 341.5 kB / 0.8841 GB, free: 38.53 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/2.224, allocations: 0 / 0.8841 GB, free: 38.53 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/2.224, allocations: 12 kB / 0.8841 GB, free: 38.52 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/2.224, allocations: 4 kB / 0.8841 GB, free: 38.51 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006761/2.225, allocations: 451.6 kB / 0.8846 GB, free: 38.07 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.002463/2.227, allocations: 1.184 MB / 0.8857 GB, free: 36.76 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000801/2.228, allocations: 297.1 kB / 0.886 GB, free: 36.45 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003719/2.232, allocations: 2.139 MB / 0.8881 GB, free: 33.99 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/2.232, allocations: 38.56 kB / 0.8881 GB, free: 33.94 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.697e-06/2.232, allocations: 0 / 0.8881 GB, free: 33.94 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008726/2.233, allocations: 322.3 kB / 0.8884 GB, free: 33.62 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/2.233, allocations: 85.11 kB / 0.8885 GB, free: 33.52 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/2.233, allocations: 113.8 kB / 0.8886 GB, free: 33.4 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/2.233, allocations: 33.7 kB / 0.8887 GB, free: 33.36 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/2.233, allocations: 178.9 kB / 0.8888 GB, free: 33.18 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.203e-05/2.233, allocations: 110 kB / 0.8889 GB, free: 33.08 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/2.233, allocations: 4 kB / 0.8889 GB, free: 33.07 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.061e-05/2.233, allocations: 326.8 kB / 0.8893 GB, free: 32.75 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/2.234, allocations: 76.56 kB / 0.8893 GB, free: 32.66 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/2.234, allocations: 163.4 kB / 0.8895 GB, free: 32.47 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/2.234, allocations: 114 kB / 0.8896 GB, free: 32.36 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/2.234, allocations: 3.953 kB / 0.8896 GB, free: 32.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007414/2.235, allocations: 318 kB / 0.8899 GB, free: 32.04 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/2.235, allocations: 12.06 kB / 0.8899 GB, free: 32.03 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/2.235, allocations: 0 / 0.8899 GB, free: 32.03 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.941e-05/2.235, allocations: 8 kB / 0.8899 GB, free: 32.02 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000442/2.235, allocations: 79.83 kB / 0.89 GB, free: 31.94 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/2.235, allocations: 4 kB / 0.89 GB, free: 31.94 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/2.236, allocations: 23.75 kB / 0.89 GB, free: 31.91 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.609e-05/2.236, allocations: 23.98 kB / 0.89 GB, free: 31.89 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.0003758/2.236, allocations: 213.8 kB / 0.8903 GB, free: 31.68 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.331e-05/2.236, allocations: 19.77 kB / 0.8903 GB, free: 31.66 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/2.237, allocations: 350.1 kB / 0.8906 GB, free: 31.3 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/2.237, allocations: 0 / 0.8906 GB, free: 31.3 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/2.237, allocations: 4 kB / 0.8906 GB, free: 31.3 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/2.237, allocations: 3.984 kB / 0.8906 GB, free: 31.29 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008584/2.238, allocations: 313.3 kB / 0.8909 GB, free: 30.94 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/2.238, allocations: 3.953 kB / 0.8909 GB, free: 30.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/2.239, allocations: 59.91 kB / 0.891 GB, free: 30.88 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/2.239, allocations: 0 / 0.891 GB, free: 30.88 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/2.239, allocations: 15.98 kB / 0.891 GB, free: 30.86 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/2.239, allocations: 4 kB / 0.891 GB, free: 30.86 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/2.239, allocations: 320 / 0.891 GB, free: 30.86 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/2.24, allocations: 496.1 kB / 0.8915 GB, free: 30.36 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/2.24, allocations: 136.8 kB / 0.8916 GB, free: 30.2 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/2.24, allocations: 8 kB / 0.8916 GB, free: 30.2 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/2.24, allocations: 23.92 kB / 0.8916 GB, free: 30.17 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/2.24, allocations: 19.97 kB / 0.8916 GB, free: 30.15 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/2.241, allocations: 23.92 kB / 0.8917 GB, free: 30.13 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.229e-05/2.241, allocations: 95.25 kB / 0.8918 GB, free: 30.04 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.241, allocations: 0 / 0.8918 GB, free: 30.04 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00141/2.242, allocations: 279.6 kB / 0.892 GB, free: 29.76 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.002163/2.244, allocations: 0.8124 MB / 0.8928 GB, free: 28.94 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0006835/2.245, allocations: 251.6 kB / 0.8931 GB, free: 28.7 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/2.245, allocations: 4 kB / 0.8931 GB, free: 28.69 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/2.245, allocations: 123.8 kB / 0.8932 GB, free: 28.57 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009476/2.246, allocations: 88.42 kB / 0.8933 GB, free: 28.48 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/2.248, allocations: 0.9048 MB / 0.8941 GB, free: 27.54 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/2.248, allocations: 0.7365 MB / 0.8949 GB, free: 26.78 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/2.248, allocations: 47.41 kB / 0.8949 GB, free: 26.73 MB / 234.7 MB Notification: Performance of SimCode: time 1.293e-06/2.248, allocations: 0 / 0.8949 GB, free: 26.73 MB / 234.7 MB Notification: Performance of Templates: time 0.01958/2.268, allocations: 9.44 MB / 0.9041 GB, free: 17.29 MB / 234.7 MB