Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.095/1.095, allocations: 111.2 MB / 127.3 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003559, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05958/0.05997, allocations: 25.16 MB / 184 MB, free: 6.031 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.31/4.37, allocations: 1.423 GB / 1.603 GB, free: 21.18 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/4.37, allocations: 61.59 kB / 1.603 GB, free: 21.15 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6418/5.012, allocations: 109 MB / 1.71 GB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.035e-06/5.012, allocations: 0 / 1.71 GB, free: 7.227 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.63e-05/5.012, allocations: 7.938 kB / 1.71 GB, free: 7.219 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.008547/5.021, allocations: 1.152 MB / 1.711 GB, free: 6.121 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/5.021, allocations: 8.031 kB / 1.711 GB, free: 6.113 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/5.021, allocations: 15.81 kB / 1.711 GB, free: 6.098 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/5.021, allocations: 214.9 kB / 1.711 GB, free: 5.848 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/5.021, allocations: 12.28 kB / 1.711 GB, free: 5.836 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.066e-05/5.022, allocations: 15.95 kB / 1.711 GB, free: 5.82 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/5.023, allocations: 346.1 kB / 1.711 GB, free: 5.453 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/5.023, allocations: 3.938 kB / 1.711 GB, free: 5.449 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/5.023, allocations: 8 kB / 1.711 GB, free: 5.441 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/5.023, allocations: 11.12 kB / 1.711 GB, free: 5.434 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/5.025, allocations: 327.6 kB / 1.712 GB, free: 5.113 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.001915/5.027, allocations: 1.305 MB / 1.713 GB, free: 3.684 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008071/5.028, allocations: 216.3 kB / 1.713 GB, free: 3.445 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3235/5.352, allocations: 46.38 MB / 1.758 GB, free: 24.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/5.352, allocations: 37.58 kB / 1.759 GB, free: 24.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.966e-06/5.352, allocations: 0 / 1.759 GB, free: 24.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.01173/5.363, allocations: 1.599 MB / 1.76 GB, free: 24.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/5.364, allocations: 114.6 kB / 1.76 GB, free: 24.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/5.364, allocations: 117.9 kB / 1.76 GB, free: 24.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.991e-05/5.364, allocations: 28.7 kB / 1.76 GB, free: 24.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/5.364, allocations: 174.9 kB / 1.76 GB, free: 23.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/5.364, allocations: 121.1 kB / 1.761 GB, free: 23.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/5.364, allocations: 7.938 kB / 1.761 GB, free: 23.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/5.364, allocations: 328 kB / 1.761 GB, free: 23.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006713/5.365, allocations: 136.5 kB / 1.761 GB, free: 23.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006999/5.366, allocations: 203.7 kB / 1.761 GB, free: 23.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007002/5.366, allocations: 151.3 kB / 1.761 GB, free: 23.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/5.366, allocations: 3.656 kB / 1.761 GB, free: 23.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001861/5.368, allocations: 442.6 kB / 1.762 GB, free: 23.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/5.368, allocations: 3.625 kB / 1.762 GB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/5.368, allocations: 8 kB / 1.762 GB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/5.369, allocations: 44.11 kB / 1.762 GB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/5.37, allocations: 85.41 kB / 1.762 GB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005592/5.37, allocations: 0.5589 MB / 1.763 GB, free: 22.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/5.371, allocations: 22.2 kB / 1.763 GB, free: 22.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/5.371, allocations: 21.33 kB / 1.763 GB, free: 22.9 MB / 266.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.0003894/5.371, allocations: 158.6 kB / 1.763 GB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/5.371, allocations: 18.75 kB / 1.763 GB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/5.374, allocations: 1.212 MB / 1.764 GB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/5.375, allocations: 21.66 kB / 1.764 GB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/5.375, allocations: 0 / 1.764 GB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/5.375, allocations: 7.766 kB / 1.764 GB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/5.378, allocations: 1.661 MB / 1.766 GB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/5.378, allocations: 3.625 kB / 1.766 GB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/5.379, allocations: 80.48 kB / 1.766 GB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005505/5.38, allocations: 82.41 kB / 1.766 GB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/5.38, allocations: 18.81 kB / 1.766 GB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004841/5.38, allocations: 0.5833 MB / 1.766 GB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/5.38, allocations: 4.094 kB / 1.766 GB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/5.384, allocations: 1.55 MB / 1.768 GB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/5.384, allocations: 114.9 kB / 1.768 GB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.888e-05/5.384, allocations: 16.31 kB / 1.768 GB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005811/5.384, allocations: 22.27 kB / 1.768 GB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-05/5.385, allocations: 35 kB / 1.768 GB, free: 21.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.547e-05/5.385, allocations: 21.17 kB / 1.768 GB, free: 21.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.955e-05/5.385, allocations: 89.08 kB / 1.768 GB, free: 21.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.21e-07/5.385, allocations: 0 / 1.768 GB, free: 21.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00543/5.39, allocations: 1.034 MB / 1.769 GB, free: 21.12 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 () * 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.009986/5.4, allocations: 1.33 MB / 1.77 GB, free: 20.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001996/5.402, allocations: 0.5697 MB / 1.771 GB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/5.402, allocations: 3.281 kB / 1.771 GB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/5.403, allocations: 475.2 kB / 1.771 GB, free: 20.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/5.404, allocations: 71.55 kB / 1.771 GB, free: 20.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/5.408, allocations: 1.407 MB / 1.773 GB, free: 20.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/5.408, allocations: 0.8016 MB / 1.774 GB, free: 19.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/5.409, allocations: 39.3 kB / 1.774 GB, free: 19.45 MB / 266.7 MB Notification: Performance of SimCode: time 1.383e-06/5.409, allocations: 0 / 1.774 GB, free: 19.45 MB / 266.7 MB Notification: Performance of Templates: time 0.0506/5.459, allocations: 23.81 MB / 1.797 GB, free: 16.46 MB / 266.7 MB