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.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 0.9498/0.9498, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002788, allocations: 4 kB / 158.3 MB, free: 15.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04647/0.04677, allocations: 25.17 MB / 183.5 MB, free: 5.996 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.568/3.615, allocations: 1.423 GB / 1.603 GB, free: 37.6 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/3.615, allocations: 56.66 kB / 1.603 GB, free: 37.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4872/4.102, allocations: 109 MB / 1.709 GB, free: 19.33 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.018e-06/4.102, allocations: 0 / 1.709 GB, free: 19.33 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/4.102, allocations: 4 kB / 1.709 GB, free: 19.33 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.005966/4.108, allocations: 1.151 MB / 1.71 GB, free: 18.29 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/4.108, allocations: 8.031 kB / 1.71 GB, free: 18.29 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.928e-05/4.108, allocations: 15.81 kB / 1.71 GB, free: 18.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/4.109, allocations: 219.3 kB / 1.71 GB, free: 18.05 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/4.109, allocations: 11.66 kB / 1.711 GB, free: 18.04 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/4.109, allocations: 22.58 kB / 1.711 GB, free: 18.03 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/4.111, allocations: 351.5 kB / 1.711 GB, free: 17.8 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/4.111, allocations: 0 / 1.711 GB, free: 17.8 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/4.111, allocations: 7.062 kB / 1.711 GB, free: 17.8 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.914e-06/4.111, allocations: 4 kB / 1.711 GB, free: 17.8 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/4.112, allocations: 328.5 kB / 1.711 GB, free: 17.62 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.001463/4.114, allocations: 1.3 MB / 1.712 GB, free: 16.36 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006889/4.114, allocations: 231.8 kB / 1.713 GB, free: 16.19 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2398/4.354, allocations: 46.37 MB / 1.758 GB, free: 18.91 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/4.354, allocations: 36.81 kB / 1.758 GB, free: 18.87 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.873e-06/4.354, allocations: 0 / 1.758 GB, free: 18.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.008783/4.363, allocations: 1.596 MB / 1.76 GB, free: 18.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/4.363, allocations: 111.7 kB / 1.76 GB, free: 18.45 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/4.363, allocations: 114.1 kB / 1.76 GB, free: 18.36 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/4.363, allocations: 28.58 kB / 1.76 GB, free: 18.33 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/4.363, allocations: 178.7 kB / 1.76 GB, free: 18.17 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/4.364, allocations: 119.9 kB / 1.76 GB, free: 18.11 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/4.364, allocations: 7.188 kB / 1.76 GB, free: 18.11 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/4.364, allocations: 324.5 kB / 1.76 GB, free: 17.8 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004916/4.364, allocations: 139.6 kB / 1.761 GB, free: 17.8 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004708/4.365, allocations: 202.8 kB / 1.761 GB, free: 17.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/4.365, allocations: 161.5 kB / 1.761 GB, free: 17.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.044e-06/4.365, allocations: 0 / 1.761 GB, free: 17.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001454/4.367, allocations: 438 kB / 1.761 GB, free: 17.67 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/4.367, allocations: 6.625 kB / 1.761 GB, free: 17.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.556e-06/4.367, allocations: 7.188 kB / 1.761 GB, free: 17.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003111/4.367, allocations: 43.39 kB / 1.761 GB, free: 17.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005393/4.368, allocations: 88.5 kB / 1.761 GB, free: 17.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005464/4.368, allocations: 0.5514 MB / 1.762 GB, free: 17.14 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/4.369, allocations: 26.02 kB / 1.762 GB, free: 17.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/4.369, allocations: 17.53 kB / 1.762 GB, free: 17.14 MB / 250.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" fixed = true ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" fixed = true nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003169/4.369, allocations: 161.2 kB / 1.762 GB, free: 17.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/4.369, allocations: 19.89 kB / 1.762 GB, free: 17.02 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/4.372, allocations: 1.215 MB / 1.763 GB, free: 16.89 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/4.372, allocations: 20.19 kB / 1.763 GB, free: 16.89 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.02e-06/4.372, allocations: 3.25 kB / 1.763 GB, free: 16.89 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.966e-06/4.372, allocations: 0 / 1.763 GB, free: 16.89 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/4.375, allocations: 1.656 MB / 1.765 GB, free: 16.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.083e-06/4.375, allocations: 3.906 kB / 1.765 GB, free: 16.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005665/4.376, allocations: 82.41 kB / 1.765 GB, free: 16.51 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005006/4.376, allocations: 82.8 kB / 1.765 GB, free: 16.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/4.376, allocations: 13.28 kB / 1.765 GB, free: 16.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005143/4.377, allocations: 0.5913 MB / 1.766 GB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.443e-06/4.377, allocations: 3.938 kB / 1.766 GB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/4.379, allocations: 1.615 MB / 1.767 GB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/4.379, allocations: 122.7 kB / 1.767 GB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/4.38, allocations: 9.75 kB / 1.767 GB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004903/4.38, allocations: 28.95 kB / 1.767 GB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.003e-05/4.38, allocations: 33.98 kB / 1.768 GB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/4.38, allocations: 18.64 kB / 1.768 GB, free: 15.4 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.522e-05/4.38, allocations: 89.83 kB / 1.768 GB, free: 15.32 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.97e-07/4.38, allocations: 0 / 1.768 GB, free: 15.32 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004128/4.384, allocations: 1.02 MB / 1.769 GB, free: 15.32 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007546/4.392, allocations: 1.338 MB / 1.77 GB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001582/4.394, allocations: 0.5721 MB / 1.77 GB, free: 15.09 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.041e-06/4.394, allocations: 0 / 1.77 GB, free: 15.09 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009427/4.395, allocations: 480.5 kB / 1.771 GB, free: 15.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007578/4.395, allocations: 72 kB / 1.771 GB, free: 15.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/4.398, allocations: 1.401 MB / 1.772 GB, free: 14.54 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/4.398, allocations: 0.7975 MB / 1.773 GB, free: 13.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/4.399, allocations: 44.28 kB / 1.773 GB, free: 13.83 MB / 250.7 MB Notification: Performance of SimCode: time 1.642e-06/4.399, allocations: 0 / 1.773 GB, free: 13.83 MB / 250.7 MB Notification: Performance of Templates: time 0.03853/4.437, allocations: 23.81 MB / 1.796 GB, free: 11.09 MB / 250.7 MB