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.9942/0.9942, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.682e-05, allocations: 0 / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1407, allocations: 25.15 MB / 179.4 MB, free: 0.7812 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.499/1.64, allocations: 0.6612 GB / 0.8365 GB, free: 26.2 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/1.64, allocations: 63.09 kB / 0.8365 GB, free: 26.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2643/1.904, allocations: 42.8 MB / 0.8783 GB, free: 66.79 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.718e-06/1.904, allocations: 2.656 kB / 0.8783 GB, free: 66.79 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/1.904, allocations: 3.375 kB / 0.8783 GB, free: 66.79 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.0007897/1.905, allocations: 0.4969 MB / 0.8788 GB, free: 66.38 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/1.905, allocations: 10.47 kB / 0.8788 GB, free: 66.38 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.145e-05/1.905, allocations: 22.75 kB / 0.8788 GB, free: 66.38 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/1.905, allocations: 224.6 kB / 0.879 GB, free: 66.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/1.906, allocations: 9.125 kB / 0.8791 GB, free: 66.18 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/1.906, allocations: 21.5 kB / 0.8791 GB, free: 66.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/1.906, allocations: 341.2 kB / 0.8794 GB, free: 66.12 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/1.906, allocations: 0 / 0.8794 GB, free: 66.12 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/1.906, allocations: 9.688 kB / 0.8794 GB, free: 66.12 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.067e-06/1.906, allocations: 5.875 kB / 0.8794 GB, free: 66.12 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/1.907, allocations: 446.5 kB / 0.8798 GB, free: 66.12 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.001814/1.909, allocations: 1.198 MB / 0.881 GB, free: 65.38 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/1.909, allocations: 292.8 kB / 0.8813 GB, free: 65.32 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/1.909, allocations: 116.5 kB / 0.8814 GB, free: 65.3 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002784/1.912, allocations: 2.141 MB / 0.8835 GB, free: 63.38 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/1.912, allocations: 38.31 kB / 0.8835 GB, free: 63.34 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.521e-06/1.912, allocations: 0 / 0.8835 GB, free: 63.34 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005815/1.913, allocations: 240.6 kB / 0.8838 GB, free: 63.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/1.913, allocations: 83.64 kB / 0.8838 GB, free: 63.2 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.395e-05/1.913, allocations: 112.3 kB / 0.8839 GB, free: 63.11 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/1.913, allocations: 41.8 kB / 0.884 GB, free: 63.07 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.81e-05/1.913, allocations: 179.6 kB / 0.8842 GB, free: 62.91 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.009e-05/1.913, allocations: 103 kB / 0.8843 GB, free: 62.86 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.599e-05/1.913, allocations: 3.312 kB / 0.8843 GB, free: 62.86 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.499e-05/1.913, allocations: 320.5 kB / 0.8846 GB, free: 62.55 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/1.913, allocations: 80.5 kB / 0.8846 GB, free: 62.54 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/1.914, allocations: 152.8 kB / 0.8848 GB, free: 62.45 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/1.914, allocations: 107.1 kB / 0.8849 GB, free: 62.45 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.455e-06/1.914, allocations: 3.219 kB / 0.8849 GB, free: 62.45 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005886/1.914, allocations: 321 kB / 0.8852 GB, free: 62.41 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.914, allocations: 12.16 kB / 0.8852 GB, free: 62.4 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.715e-06/1.915, allocations: 7.312 kB / 0.8852 GB, free: 62.4 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/1.915, allocations: 8.375 kB / 0.8852 GB, free: 62.4 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/1.915, allocations: 72.06 kB / 0.8853 GB, free: 62.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/1.915, allocations: 6.953 kB / 0.8853 GB, free: 62.39 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/1.915, allocations: 29.03 kB / 0.8853 GB, free: 62.39 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/1.915, allocations: 26.55 kB / 0.8853 GB, free: 62.39 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.0002272/1.915, allocations: 175.6 kB / 0.8855 GB, free: 62.27 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/1.916, allocations: 16.55 kB / 0.8855 GB, free: 62.27 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000797/1.916, allocations: 351 kB / 0.8859 GB, free: 62.19 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.917e-06/1.916, allocations: 3.688 kB / 0.8859 GB, free: 62.19 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.399e-06/1.916, allocations: 4 kB / 0.8859 GB, free: 62.18 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.221e-06/1.916, allocations: 7.75 kB / 0.8859 GB, free: 62.18 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006893/1.917, allocations: 309 kB / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-06/1.917, allocations: 0 / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/1.918, allocations: 60.05 kB / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.32e-06/1.918, allocations: 0 / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.471e-05/1.918, allocations: 12.05 kB / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.026e-06/1.918, allocations: 3.406 kB / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.053e-06/1.918, allocations: 0 / 0.8862 GB, free: 61.98 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006805/1.918, allocations: 0.5002 MB / 0.8867 GB, free: 61.74 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/1.918, allocations: 133.1 kB / 0.8869 GB, free: 61.64 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/1.919, allocations: 9.719 kB / 0.8869 GB, free: 61.64 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/1.919, allocations: 16.78 kB / 0.8869 GB, free: 61.64 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/1.919, allocations: 26.53 kB / 0.8869 GB, free: 61.64 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/1.919, allocations: 19.06 kB / 0.8869 GB, free: 61.64 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.772e-05/1.919, allocations: 97.8 kB / 0.887 GB, free: 61.56 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.76e-07/1.919, allocations: 0 / 0.887 GB, free: 61.56 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001163/1.92, allocations: 275.9 kB / 0.8873 GB, free: 61.51 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.001624/1.922, allocations: 0.8119 MB / 0.8881 GB, free: 61.25 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004756/1.922, allocations: 241 kB / 0.8883 GB, free: 61.25 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/1.922, allocations: 0 / 0.8883 GB, free: 61.25 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/1.923, allocations: 127 kB / 0.8884 GB, free: 61.25 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000642/1.923, allocations: 78.7 kB / 0.8885 GB, free: 61.24 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/1.924, allocations: 0.632 MB / 0.8891 GB, free: 60.85 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/1.924, allocations: 0.7419 MB / 0.8898 GB, free: 60.15 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/1.925, allocations: 42.28 kB / 0.8899 GB, free: 60.14 MB / 234.7 MB Notification: Performance of SimCode: time 1.789e-06/1.925, allocations: 0 / 0.8899 GB, free: 60.14 MB / 234.7 MB Notification: Performance of Templates: time 0.0145/1.939, allocations: 9.419 MB / 0.8991 GB, free: 54.73 MB / 234.7 MB