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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.041/1.041, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.964e-05, allocations: 4 kB / 148.2 MB, free: 6.117 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05591/0.05598, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.869/1.925, allocations: 0.6606 GB / 0.8299 GB, free: 14.68 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/1.925, allocations: 60.72 kB / 0.83 GB, free: 14.65 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3381/2.263, allocations: 42.04 MB / 0.871 GB, free: 70.91 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.776e-06/2.263, allocations: 0 / 0.871 GB, free: 70.91 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.518e-05/2.263, allocations: 3.875 kB / 0.871 GB, free: 70.91 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.001822/2.265, allocations: 0.5095 MB / 0.8715 GB, free: 70.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.058e-05/2.265, allocations: 7.844 kB / 0.8715 GB, free: 70.43 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/2.266, allocations: 20.58 kB / 0.8716 GB, free: 70.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/2.266, allocations: 230.4 kB / 0.8718 GB, free: 70.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/2.266, allocations: 11.81 kB / 0.8718 GB, free: 70.18 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/2.266, allocations: 11.75 kB / 0.8718 GB, free: 70.18 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001232/2.267, allocations: 425.1 kB / 0.8722 GB, free: 70 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/2.269, allocations: 309.2 kB / 0.8725 GB, free: 69.83 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/2.269, allocations: 0 / 0.8725 GB, free: 69.83 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.738e-05/2.269, allocations: 0 / 0.8725 GB, free: 69.83 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/2.269, allocations: 5.625 kB / 0.8725 GB, free: 69.83 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.004354/2.274, allocations: 1.146 MB / 0.8736 GB, free: 68.7 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/2.275, allocations: 281.2 kB / 0.8739 GB, free: 68.41 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/2.275, allocations: 109.7 kB / 0.874 GB, free: 68.29 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003632/2.278, allocations: 2.127 MB / 0.8761 GB, free: 65.85 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/2.278, allocations: 38.56 kB / 0.8761 GB, free: 65.8 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.466e-06/2.278, allocations: 4 kB / 0.8761 GB, free: 65.8 MB / 234.7 MB Notification: Performance of matching and sorting (n=29): time 0.003076/2.282, allocations: 0.545 MB / 0.8766 GB, free: 65.25 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/2.282, allocations: 85.11 kB / 0.8767 GB, free: 65.15 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/2.282, allocations: 112.8 kB / 0.8768 GB, free: 65.03 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/2.282, allocations: 25.7 kB / 0.8769 GB, free: 65 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.862e-05/2.282, allocations: 175 kB / 0.877 GB, free: 64.83 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.778e-05/2.282, allocations: 102.5 kB / 0.8771 GB, free: 64.73 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.611e-05/2.282, allocations: 0 / 0.8771 GB, free: 64.73 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/2.282, allocations: 330.8 kB / 0.8774 GB, free: 64.39 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/2.282, allocations: 68.59 kB / 0.8775 GB, free: 64.32 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/2.282, allocations: 159.1 kB / 0.8777 GB, free: 64.13 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/2.285, allocations: 423.5 kB / 0.8781 GB, free: 63.71 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/2.285, allocations: 0 / 0.8781 GB, free: 63.71 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.003016/2.288, allocations: 0.6106 MB / 0.8787 GB, free: 63.1 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/2.288, allocations: 11.94 kB / 0.8787 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/2.288, allocations: 0 / 0.8787 GB, free: 63.09 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/2.288, allocations: 11.98 kB / 0.8787 GB, free: 63.07 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/2.289, allocations: 79.83 kB / 0.8788 GB, free: 63 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/2.289, allocations: 4 kB / 0.8788 GB, free: 62.99 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/2.289, allocations: 24.06 kB / 0.8788 GB, free: 62.97 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/2.289, allocations: 23.94 kB / 0.8788 GB, free: 62.95 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.0003415/2.289, allocations: 178.5 kB / 0.879 GB, free: 62.77 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002914/2.292, allocations: 0.5481 MB / 0.8795 GB, free: 62.22 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.331e-05/2.292, allocations: 15.81 kB / 0.8795 GB, free: 62.2 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/2.296, allocations: 0.6425 MB / 0.8801 GB, free: 61.55 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/2.296, allocations: 7.938 kB / 0.8802 GB, free: 61.54 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/2.296, allocations: 3.953 kB / 0.8802 GB, free: 61.54 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/2.296, allocations: 0 / 0.8802 GB, free: 61.54 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000821/2.297, allocations: 265.8 kB / 0.8804 GB, free: 61.25 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/2.297, allocations: 0 / 0.8804 GB, free: 61.25 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/2.297, allocations: 59.95 kB / 0.8805 GB, free: 61.19 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/2.297, allocations: 4 kB / 0.8805 GB, free: 61.19 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/2.297, allocations: 4 kB / 0.8805 GB, free: 61.18 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/2.297, allocations: 4 kB / 0.8805 GB, free: 61.18 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/2.297, allocations: 7.875 kB / 0.8805 GB, free: 61.17 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00307/2.3, allocations: 0.8022 MB / 0.8813 GB, free: 60.35 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/2.301, allocations: 136.9 kB / 0.8814 GB, free: 60.2 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/2.301, allocations: 7.984 kB / 0.8814 GB, free: 60.19 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/2.301, allocations: 4 kB / 0.8814 GB, free: 60.18 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/2.301, allocations: 31.92 kB / 0.8814 GB, free: 60.15 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/2.301, allocations: 23.98 kB / 0.8815 GB, free: 60.13 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.774e-05/2.301, allocations: 83.27 kB / 0.8815 GB, free: 60.05 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.301, allocations: 0 / 0.8815 GB, free: 60.05 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001439/2.303, allocations: 255.7 kB / 0.8818 GB, free: 59.8 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.005563/2.308, allocations: 2.228 MB / 0.884 GB, free: 57.62 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005842/2.309, allocations: 223.8 kB / 0.8842 GB, free: 57.41 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/2.309, allocations: 0 / 0.8842 GB, free: 57.41 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002362/2.309, allocations: 115.9 kB / 0.8843 GB, free: 57.29 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/2.31, allocations: 80.42 kB / 0.8844 GB, free: 57.21 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/2.312, allocations: 0.7559 MB / 0.8851 GB, free: 56.41 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/2.313, allocations: 0.7404 MB / 0.8858 GB, free: 55.64 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002513/2.313, allocations: 71.41 kB / 0.8859 GB, free: 55.57 MB / 234.7 MB Notification: Performance of SimCode: time 1.373e-06/2.313, allocations: 0 / 0.8859 GB, free: 55.57 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.884/5.197, allocations: 10.12 MB / 0.8958 GB, free: 45.45 MB / 234.7 MB