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/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.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.031/1.031, allocations: 111.2 MB / 119.1 MB, free: 15.59 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.297e-05/1.31e-05, allocations: 0 / 148.1 MB, free: 2.613 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1443, allocations: 25.16 MB / 173.3 MB, free: 2.805 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.235/3.379, allocations: 1.423 GB / 1.592 GB, free: 55.47 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001782/3.379, allocations: 53.64 kB / 1.592 GB, free: 55.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4641/3.843, allocations: 107 MB / 1.696 GB, free: 34.95 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.956e-06/3.843, allocations: 0 / 1.696 GB, free: 34.95 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.787e-05/3.843, allocations: 3.562 kB / 1.696 GB, free: 34.95 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.005926/3.849, allocations: 1.14 MB / 1.698 GB, free: 34.3 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/3.849, allocations: 8.5 kB / 1.698 GB, free: 34.3 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.827e-05/3.85, allocations: 15.06 kB / 1.698 GB, free: 34.3 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/3.85, allocations: 222.7 kB / 1.698 GB, free: 34.08 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/3.85, allocations: 7.969 kB / 1.698 GB, free: 34.08 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/3.85, allocations: 15.45 kB / 1.698 GB, free: 34.07 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000465/3.85, allocations: 208.9 kB / 1.698 GB, free: 34 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/3.851, allocations: 215.1 kB / 1.698 GB, free: 33.85 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/3.851, allocations: 0 / 1.698 GB, free: 33.85 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/3.851, allocations: 4.594 kB / 1.698 GB, free: 33.85 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.426e-06/3.851, allocations: 3.75 kB / 1.698 GB, free: 33.85 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.001363/3.852, allocations: 1.252 MB / 1.699 GB, free: 32.67 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/3.853, allocations: 157.7 kB / 1.7 GB, free: 32.56 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/3.853, allocations: 79.7 kB / 1.7 GB, free: 32.51 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2303/4.083, allocations: 46.54 MB / 1.745 GB, free: 27.73 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/4.083, allocations: 46.73 kB / 1.745 GB, free: 27.7 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 3.195e-06/4.083, allocations: 0 / 1.745 GB, free: 27.7 MB / 234.7 MB Notification: Performance of matching and sorting (n=33): time 0.006834/4.09, allocations: 1.231 MB / 1.746 GB, free: 27.43 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/4.09, allocations: 109.4 kB / 1.747 GB, free: 27.3 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/4.09, allocations: 111.6 kB / 1.747 GB, free: 27.21 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/4.09, allocations: 30.08 kB / 1.747 GB, free: 27.18 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/4.09, allocations: 170.9 kB / 1.747 GB, free: 27.02 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.626e-05/4.09, allocations: 115.5 kB / 1.747 GB, free: 26.96 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/4.09, allocations: 3.062 kB / 1.747 GB, free: 26.96 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.697e-05/4.09, allocations: 324 kB / 1.747 GB, free: 26.64 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/4.091, allocations: 98.61 kB / 1.747 GB, free: 26.64 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/4.091, allocations: 173.4 kB / 1.747 GB, free: 26.58 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/4.092, allocations: 184.1 kB / 1.748 GB, free: 26.58 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.449e-06/4.092, allocations: 0 / 1.748 GB, free: 26.58 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001726/4.094, allocations: 418 kB / 1.748 GB, free: 26.53 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/4.094, allocations: 7.484 kB / 1.748 GB, free: 26.52 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.809e-06/4.094, allocations: 4.594 kB / 1.748 GB, free: 26.52 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002012/4.094, allocations: 32.59 kB / 1.748 GB, free: 26.52 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000537/4.095, allocations: 91.84 kB / 1.748 GB, free: 26.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003631/4.095, allocations: 0.5495 MB / 1.749 GB, free: 26 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/4.095, allocations: 29.69 kB / 1.749 GB, free: 26 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/4.095, allocations: 16.64 kB / 1.749 GB, free: 26 MB / 234.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.0002112/4.096, allocations: 127.8 kB / 1.749 GB, free: 25.89 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/4.096, allocations: 14.5 kB / 1.749 GB, free: 25.88 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/4.098, allocations: 1.16 MB / 1.75 GB, free: 25.76 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/4.098, allocations: 17.28 kB / 1.75 GB, free: 25.76 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.096e-06/4.098, allocations: 0 / 1.75 GB, free: 25.76 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/4.098, allocations: 10.23 kB / 1.75 GB, free: 25.76 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/4.101, allocations: 1.539 MB / 1.752 GB, free: 25.42 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.68e-06/4.102, allocations: 3.031 kB / 1.752 GB, free: 25.42 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006006/4.102, allocations: 88.5 kB / 1.752 GB, free: 25.42 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002955/4.102, allocations: 65.56 kB / 1.752 GB, free: 25.41 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/4.103, allocations: 12.59 kB / 1.752 GB, free: 25.41 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003859/4.103, allocations: 0.616 MB / 1.752 GB, free: 24.88 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.317e-06/4.103, allocations: 1.781 kB / 1.752 GB, free: 24.88 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/4.105, allocations: 1.535 MB / 1.754 GB, free: 24.4 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/4.106, allocations: 118.1 kB / 1.754 GB, free: 24.29 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.961e-05/4.106, allocations: 3.875 kB / 1.754 GB, free: 24.29 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/4.106, allocations: 29.22 kB / 1.754 GB, free: 24.29 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/4.106, allocations: 34.22 kB / 1.754 GB, free: 24.29 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.201e-05/4.106, allocations: 16.05 kB / 1.754 GB, free: 24.29 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.088e-05/4.106, allocations: 87.03 kB / 1.754 GB, free: 24.21 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.99e-07/4.106, allocations: 0.9375 kB / 1.754 GB, free: 24.21 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.003961/4.11, allocations: 1.015 MB / 1.755 GB, free: 24.21 MB / 234.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.00701/4.117, allocations: 1.344 MB / 1.756 GB, free: 24 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/4.119, allocations: 0.4964 MB / 1.757 GB, free: 23.98 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.866e-06/4.119, allocations: 0 / 1.757 GB, free: 23.98 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007168/4.119, allocations: 443.8 kB / 1.757 GB, free: 23.97 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007086/4.12, allocations: 63.55 kB / 1.757 GB, free: 23.97 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/4.122, allocations: 0.9304 MB / 1.758 GB, free: 23.73 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/4.122, allocations: 0.8009 MB / 1.759 GB, free: 23.03 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/4.122, allocations: 44.56 kB / 1.759 GB, free: 23.02 MB / 234.7 MB Notification: Performance of SimCode: time 1.823e-06/4.122, allocations: 3.609 kB / 1.759 GB, free: 23.02 MB / 234.7 MB Notification: Performance of Templates: time 0.03746/4.16, allocations: 24.33 MB / 1.783 GB, free: 20.48 MB / 234.7 MB