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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.942/0.942, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.36e-05/1.369e-05, allocations: 0 / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04552/0.04555, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.569/1.614, allocations: 0.6606 GB / 0.8298 GB, free: 21.35 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/1.614, allocations: 61.09 kB / 0.8299 GB, free: 21.32 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2697/1.884, allocations: 42.03 MB / 0.8709 GB, free: 68.21 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.88e-06/1.884, allocations: 0 / 0.8709 GB, free: 68.21 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/1.884, allocations: 5.156 kB / 0.8709 GB, free: 68.21 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.0007856/1.885, allocations: 0.5044 MB / 0.8714 GB, free: 67.8 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/1.885, allocations: 12.47 kB / 0.8714 GB, free: 67.8 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.464e-05/1.885, allocations: 23.75 kB / 0.8715 GB, free: 67.79 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/1.885, allocations: 221.3 kB / 0.8717 GB, free: 67.6 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/1.885, allocations: 7.031 kB / 0.8717 GB, free: 67.6 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/1.886, allocations: 10.28 kB / 0.8717 GB, free: 67.6 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006034/1.886, allocations: 434.1 kB / 0.8721 GB, free: 67.59 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004508/1.887, allocations: 303.9 kB / 0.8724 GB, free: 67.55 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.887, allocations: 0 / 0.8724 GB, free: 67.55 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/1.887, allocations: 7.938 kB / 0.8724 GB, free: 67.54 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.643e-06/1.887, allocations: 3.062 kB / 0.8724 GB, free: 67.54 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.001813/1.889, allocations: 1.137 MB / 0.8735 GB, free: 66.84 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000566/1.889, allocations: 283.6 kB / 0.8738 GB, free: 66.78 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/1.889, allocations: 106.7 kB / 0.8739 GB, free: 66.77 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002666/1.892, allocations: 2.137 MB / 0.876 GB, free: 64.82 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/1.892, allocations: 40.81 kB / 0.876 GB, free: 64.78 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 2.885e-06/1.892, allocations: 0 / 0.876 GB, free: 64.78 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.002494/1.895, allocations: 0.5549 MB / 0.8765 GB, free: 64.73 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/1.895, allocations: 80.02 kB / 0.8766 GB, free: 64.64 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.14e-05/1.895, allocations: 107 kB / 0.8767 GB, free: 64.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/1.895, allocations: 25.7 kB / 0.8767 GB, free: 64.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/1.895, allocations: 187.8 kB / 0.8769 GB, free: 64.34 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/1.895, allocations: 98.83 kB / 0.877 GB, free: 64.27 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/1.895, allocations: 0 / 0.877 GB, free: 64.27 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.628e-05/1.895, allocations: 329.2 kB / 0.8773 GB, free: 63.96 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/1.895, allocations: 69.89 kB / 0.8774 GB, free: 63.95 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/1.895, allocations: 153.5 kB / 0.8775 GB, free: 63.85 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/1.897, allocations: 441.5 kB / 0.878 GB, free: 63.83 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.57e-06/1.897, allocations: 0 / 0.878 GB, free: 63.83 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.002581/1.9, allocations: 0.6088 MB / 0.8786 GB, free: 63.68 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/1.9, allocations: 3.875 kB / 0.8786 GB, free: 63.68 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.559e-06/1.9, allocations: 3.906 kB / 0.8786 GB, free: 63.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/1.9, allocations: 3.906 kB / 0.8786 GB, free: 63.68 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/1.9, allocations: 74.55 kB / 0.8786 GB, free: 63.67 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/1.9, allocations: 10.84 kB / 0.8787 GB, free: 63.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/1.901, allocations: 31.48 kB / 0.8787 GB, free: 63.65 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.986e-05/1.901, allocations: 18.28 kB / 0.8787 GB, free: 63.65 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.0002482/1.901, allocations: 173.6 kB / 0.8789 GB, free: 63.52 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.988e-05/1.901, allocations: 17.53 kB / 0.8789 GB, free: 63.51 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002664/1.904, allocations: 0.6393 MB / 0.8795 GB, free: 63.3 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.302e-06/1.904, allocations: 2.688 kB / 0.8795 GB, free: 63.3 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.847e-06/1.904, allocations: 2.188 kB / 0.8795 GB, free: 63.3 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.503e-06/1.904, allocations: 6.766 kB / 0.8795 GB, free: 63.3 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006301/1.904, allocations: 270.8 kB / 0.8798 GB, free: 63.1 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/1.904, allocations: 3.594 kB / 0.8798 GB, free: 63.1 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003134/1.905, allocations: 55.56 kB / 0.8798 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.197e-06/1.905, allocations: 0 / 0.8798 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/1.905, allocations: 13.19 kB / 0.8798 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.087e-06/1.905, allocations: 2.094 kB / 0.8798 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.619e-06/1.905, allocations: 320 / 0.8798 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/1.907, allocations: 0.809 MB / 0.8806 GB, free: 62.7 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/1.908, allocations: 134 kB / 0.8808 GB, free: 62.59 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.177e-05/1.908, allocations: 2.812 kB / 0.8808 GB, free: 62.59 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003352/1.908, allocations: 6.781 kB / 0.8808 GB, free: 62.59 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/1.908, allocations: 24.14 kB / 0.8808 GB, free: 62.58 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.818e-05/1.908, allocations: 18.05 kB / 0.8808 GB, free: 62.58 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.698e-05/1.908, allocations: 92.33 kB / 0.8809 GB, free: 62.5 MB / 234.7 MB Notification: Performance of sort global known variables: time 9e-07/1.908, allocations: 4 kB / 0.8809 GB, free: 62.5 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001141/1.909, allocations: 261.6 kB / 0.8812 GB, free: 62.41 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.001723/1.911, allocations: 0.8897 MB / 0.882 GB, free: 62.14 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004298/1.912, allocations: 234.3 kB / 0.8822 GB, free: 62.06 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/1.912, allocations: 4.062 kB / 0.8823 GB, free: 62.05 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/1.912, allocations: 117.2 kB / 0.8824 GB, free: 62.02 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/1.912, allocations: 75.31 kB / 0.8824 GB, free: 62 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009924/1.913, allocations: 0.6124 MB / 0.883 GB, free: 61.55 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/1.914, allocations: 0.7419 MB / 0.8838 GB, free: 60.84 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/1.914, allocations: 45.73 kB / 0.8838 GB, free: 60.83 MB / 234.7 MB Notification: Performance of SimCode: time 1.904e-06/1.914, allocations: 0 / 0.8838 GB, free: 60.83 MB / 234.7 MB Notification: Performance of Templates: time 0.01492/1.929, allocations: 9.414 MB / 0.893 GB, free: 53.8 MB / 234.7 MB