Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9529/0.9529, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002713, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04629/0.04659, allocations: 25.16 MB / 183.5 MB, free: 5.984 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.499/1.545, allocations: 0.6613 GB / 0.8405 GB, free: 2.465 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/1.546, allocations: 59.97 kB / 0.8406 GB, free: 2.406 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2941/1.84, allocations: 42.93 MB / 0.8825 GB, free: 57.13 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.168e-06/1.84, allocations: 0 / 0.8825 GB, free: 57.13 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/1.84, allocations: 4 kB / 0.8825 GB, free: 57.12 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.0007759/1.84, allocations: 0.5075 MB / 0.883 GB, free: 56.57 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/1.841, allocations: 12.03 kB / 0.883 GB, free: 56.55 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/1.841, allocations: 23.77 kB / 0.883 GB, free: 56.53 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/1.841, allocations: 218.9 kB / 0.8832 GB, free: 56.28 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/1.841, allocations: 16.38 kB / 0.8833 GB, free: 56.26 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/1.841, allocations: 19.91 kB / 0.8833 GB, free: 56.24 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/1.841, allocations: 341.6 kB / 0.8836 GB, free: 55.9 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/1.842, allocations: 3.984 kB / 0.8836 GB, free: 55.89 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/1.842, allocations: 8 kB / 0.8836 GB, free: 55.89 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.771e-06/1.842, allocations: 7.938 kB / 0.8836 GB, free: 55.88 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005556/1.842, allocations: 455.6 kB / 0.8841 GB, free: 55.43 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.001753/1.844, allocations: 1.176 MB / 0.8852 GB, free: 54.13 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/1.845, allocations: 301.1 kB / 0.8855 GB, free: 53.82 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003031/1.848, allocations: 2.139 MB / 0.8876 GB, free: 51.36 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/1.848, allocations: 38.5 kB / 0.8876 GB, free: 51.31 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.742e-06/1.848, allocations: 0 / 0.8876 GB, free: 51.31 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007151/1.848, allocations: 326.4 kB / 0.8879 GB, free: 50.98 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/1.848, allocations: 81.11 kB / 0.888 GB, free: 50.89 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.238e-05/1.848, allocations: 112.9 kB / 0.8881 GB, free: 50.77 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/1.849, allocations: 37.7 kB / 0.8882 GB, free: 50.73 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.954e-05/1.849, allocations: 178.9 kB / 0.8883 GB, free: 50.55 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.796e-05/1.849, allocations: 102.4 kB / 0.8884 GB, free: 50.45 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/1.849, allocations: 4 kB / 0.8884 GB, free: 50.45 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.714e-05/1.849, allocations: 326.8 kB / 0.8887 GB, free: 50.12 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/1.849, allocations: 76.56 kB / 0.8888 GB, free: 50.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/1.849, allocations: 163.4 kB / 0.889 GB, free: 49.84 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/1.849, allocations: 108.9 kB / 0.8891 GB, free: 49.73 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.053e-06/1.849, allocations: 0 / 0.8891 GB, free: 49.73 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006009/1.85, allocations: 322.5 kB / 0.8894 GB, free: 49.41 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/1.85, allocations: 4 kB / 0.8894 GB, free: 49.41 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.774e-06/1.85, allocations: 4 kB / 0.8894 GB, free: 49.41 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/1.85, allocations: 8.312 kB / 0.8894 GB, free: 49.4 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/1.85, allocations: 75.89 kB / 0.8895 GB, free: 49.32 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/1.85, allocations: 4 kB / 0.8895 GB, free: 49.32 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/1.851, allocations: 31.69 kB / 0.8895 GB, free: 49.29 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/1.851, allocations: 23.98 kB / 0.8895 GB, free: 49.27 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.0002972/1.851, allocations: 191.7 kB / 0.8897 GB, free: 49.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.413e-05/1.851, allocations: 19.77 kB / 0.8897 GB, free: 49.05 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007844/1.852, allocations: 358 kB / 0.8901 GB, free: 48.69 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.262e-06/1.852, allocations: 12 kB / 0.8901 GB, free: 48.68 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.214e-06/1.852, allocations: 0 / 0.8901 GB, free: 48.68 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.404e-06/1.852, allocations: 0 / 0.8901 GB, free: 48.68 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006191/1.853, allocations: 313.3 kB / 0.8904 GB, free: 48.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.474e-06/1.853, allocations: 0 / 0.8904 GB, free: 48.32 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/1.853, allocations: 67.84 kB / 0.8904 GB, free: 48.25 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.862e-06/1.853, allocations: 0 / 0.8904 GB, free: 48.25 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/1.853, allocations: 12 kB / 0.8904 GB, free: 48.24 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.695e-06/1.853, allocations: 3.984 kB / 0.8905 GB, free: 48.24 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.427e-06/1.853, allocations: 320 / 0.8905 GB, free: 48.24 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/1.854, allocations: 0.5014 MB / 0.8909 GB, free: 47.72 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/1.854, allocations: 140.8 kB / 0.8911 GB, free: 47.56 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/1.854, allocations: 8 kB / 0.8911 GB, free: 47.55 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/1.854, allocations: 11.98 kB / 0.8911 GB, free: 47.54 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/1.854, allocations: 27.91 kB / 0.8911 GB, free: 47.52 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.415e-05/1.854, allocations: 27.98 kB / 0.8912 GB, free: 47.49 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.586e-05/1.854, allocations: 83.27 kB / 0.8912 GB, free: 47.41 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.55e-07/1.854, allocations: 3.938 kB / 0.8912 GB, free: 47.4 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001171/1.855, allocations: 283.6 kB / 0.8915 GB, free: 47.12 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.001681/1.857, allocations: 0.8241 MB / 0.8923 GB, free: 46.29 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004809/1.858, allocations: 247.7 kB / 0.8925 GB, free: 46.05 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.867e-06/1.858, allocations: 4 kB / 0.8925 GB, free: 46.05 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/1.858, allocations: 119.9 kB / 0.8927 GB, free: 45.93 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006603/1.859, allocations: 85.12 kB / 0.8927 GB, free: 45.85 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/1.86, allocations: 0.9082 MB / 0.8936 GB, free: 44.9 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/1.86, allocations: 0.7365 MB / 0.8944 GB, free: 44.14 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/1.86, allocations: 43.36 kB / 0.8944 GB, free: 44.09 MB / 234.7 MB Notification: Performance of SimCode: time 1.489e-06/1.86, allocations: 0 / 0.8944 GB, free: 44.09 MB / 234.7 MB Notification: Performance of Templates: time 0.01378/1.874, allocations: 9.445 MB / 0.9036 GB, free: 34.65 MB / 234.7 MB