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.9383/0.9383, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.803e-05, allocations: 0 / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1346, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.123/3.257, allocations: 1.423 GB / 1.599 GB, free: 16.96 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/3.257, allocations: 62.72 kB / 1.599 GB, free: 16.9 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4844/3.742, allocations: 108.8 MB / 1.705 GB, free: 1.402 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.908e-06/3.742, allocations: 0 / 1.705 GB, free: 1.402 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/3.742, allocations: 0 / 1.705 GB, free: 1.402 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.006195/3.748, allocations: 1.141 MB / 1.706 GB, free: 220 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/3.748, allocations: 12.03 kB / 1.706 GB, free: 208 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.249e-05/3.748, allocations: 11.91 kB / 1.706 GB, free: 196 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1361/3.884, allocations: 208.3 kB / 1.706 GB, free: 22.21 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/3.884, allocations: 12.56 kB / 1.706 GB, free: 22.21 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.189e-05/3.885, allocations: 19.62 kB / 1.706 GB, free: 22.21 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/3.886, allocations: 316.2 kB / 1.707 GB, free: 22.12 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/3.886, allocations: 5.016 kB / 1.707 GB, free: 22.11 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-05/3.886, allocations: 8.531 kB / 1.707 GB, free: 22.11 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/3.886, allocations: 3.844 kB / 1.707 GB, free: 22.11 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/3.887, allocations: 262.1 kB / 1.707 GB, free: 22.11 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.001537/3.888, allocations: 1.299 MB / 1.708 GB, free: 21.01 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005309/3.889, allocations: 203.3 kB / 1.708 GB, free: 20.94 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/3.889, allocations: 85.3 kB / 1.708 GB, free: 20.92 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1499/4.039, allocations: 46.54 MB / 1.754 GB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/4.039, allocations: 45.78 kB / 1.754 GB, free: 24.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 3.053e-06/4.039, allocations: 0.8438 kB / 1.754 GB, free: 24.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.007034/4.046, allocations: 1.399 MB / 1.755 GB, free: 23.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/4.046, allocations: 110.2 kB / 1.755 GB, free: 23.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/4.047, allocations: 108.6 kB / 1.755 GB, free: 23.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/4.047, allocations: 33.08 kB / 1.755 GB, free: 23.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/4.047, allocations: 164.9 kB / 1.756 GB, free: 23.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/4.047, allocations: 123.6 kB / 1.756 GB, free: 23.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/4.047, allocations: 6.375 kB / 1.756 GB, free: 23.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/4.047, allocations: 331.5 kB / 1.756 GB, free: 23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/4.047, allocations: 103.2 kB / 1.756 GB, free: 23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/4.048, allocations: 168.1 kB / 1.756 GB, free: 22.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/4.048, allocations: 131 kB / 1.756 GB, free: 22.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-06/4.048, allocations: 0 / 1.756 GB, free: 22.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009476/4.049, allocations: 370.3 kB / 1.757 GB, free: 22.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/4.049, allocations: 3.969 kB / 1.757 GB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/4.049, allocations: 3.938 kB / 1.757 GB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002764/4.049, allocations: 35.05 kB / 1.757 GB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/4.05, allocations: 91.53 kB / 1.757 GB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000504/4.05, allocations: 0.5579 MB / 1.757 GB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/4.051, allocations: 22.89 kB / 1.757 GB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-05/4.051, allocations: 19.28 kB / 1.757 GB, free: 22.33 MB / 266.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" 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" 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 () * 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.0002487/4.051, allocations: 146 kB / 1.758 GB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/4.051, allocations: 15.59 kB / 1.758 GB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/4.053, allocations: 1.155 MB / 1.759 GB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/4.053, allocations: 22.61 kB / 1.759 GB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/4.053, allocations: 0 / 1.759 GB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.42e-06/4.053, allocations: 0 / 1.759 GB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/4.056, allocations: 1.606 MB / 1.76 GB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/4.056, allocations: 128 / 1.76 GB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/4.057, allocations: 85.28 kB / 1.76 GB, free: 21.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004138/4.057, allocations: 73.3 kB / 1.761 GB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/4.057, allocations: 17.67 kB / 1.761 GB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004906/4.058, allocations: 0.5821 MB / 1.761 GB, free: 21.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.727e-06/4.058, allocations: 8.953 kB / 1.761 GB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/4.06, allocations: 1.511 MB / 1.763 GB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/4.06, allocations: 117.2 kB / 1.763 GB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.945e-05/4.06, allocations: 17.38 kB / 1.763 GB, free: 20.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005111/4.06, allocations: 25.33 kB / 1.763 GB, free: 20.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.573e-05/4.06, allocations: 40.14 kB / 1.763 GB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.717e-05/4.06, allocations: 18.59 kB / 1.763 GB, free: 20.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.326e-05/4.06, allocations: 86.47 kB / 1.763 GB, free: 20.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-07/4.061, allocations: 4 kB / 1.763 GB, free: 20.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003868/4.064, allocations: 1.027 MB / 1.764 GB, free: 20.48 MB / 266.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 () * 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.006872/4.071, allocations: 1.33 MB / 1.765 GB, free: 20.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001199/4.073, allocations: 0.5194 MB / 1.766 GB, free: 20.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.307e-06/4.073, allocations: 3.969 kB / 1.766 GB, free: 20.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000824/4.073, allocations: 442.2 kB / 1.766 GB, free: 20.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007678/4.074, allocations: 70.73 kB / 1.766 GB, free: 20.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/4.076, allocations: 0.9629 MB / 1.767 GB, free: 19.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/4.077, allocations: 0.7982 MB / 1.768 GB, free: 18.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/4.077, allocations: 42.3 kB / 1.768 GB, free: 18.92 MB / 266.7 MB Notification: Performance of SimCode: time 1.862e-06/4.077, allocations: 3.938 kB / 1.768 GB, free: 18.92 MB / 266.7 MB Notification: Performance of Templates: time 0.0417/4.119, allocations: 23.56 MB / 1.791 GB, free: 15.86 MB / 266.7 MB