Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.061/1.061, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.855e-05/2.852e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05552/0.05558, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.562/4.617, allocations: 1.564 GB / 1.733 GB, free: 50.68 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03628/4.654, allocations: 12.34 MB / 1.745 GB, free: 44.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6652/5.319, allocations: 110.5 MB / 1.853 GB, free: 24.96 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.875e-06/5.319, allocations: 0 / 1.853 GB, free: 24.96 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.978e-05/5.319, allocations: 4 kB / 1.853 GB, free: 24.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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.006984/5.326, allocations: 1.147 MB / 1.854 GB, free: 23.84 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/5.326, allocations: 8.031 kB / 1.854 GB, free: 23.83 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/5.326, allocations: 27.72 kB / 1.854 GB, free: 23.8 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/5.327, allocations: 237.3 kB / 1.855 GB, free: 23.55 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.017e-05/5.327, allocations: 8 kB / 1.855 GB, free: 23.54 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.624e-05/5.327, allocations: 15.95 kB / 1.855 GB, free: 23.53 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00134/5.328, allocations: 0.5558 MB / 1.855 GB, free: 23.04 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008614/5.329, allocations: 358.9 kB / 1.855 GB, free: 22.72 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/5.329, allocations: 7.938 kB / 1.855 GB, free: 22.71 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.368e-05/5.329, allocations: 8 kB / 1.855 GB, free: 22.7 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/5.329, allocations: 4 kB / 1.855 GB, free: 22.7 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.002934/5.332, allocations: 1.495 MB / 1.857 GB, free: 21.21 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/5.333, allocations: 178.9 kB / 1.857 GB, free: 21.03 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003696/5.333, allocations: 145.2 kB / 1.857 GB, free: 20.89 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3901/5.723, allocations: 69.07 MB / 1.925 GB, free: 13 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/5.723, allocations: 37.17 kB / 1.925 GB, free: 12.96 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 4.338e-06/5.723, allocations: 3.594 kB / 1.925 GB, free: 12.96 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002951/5.726, allocations: 0.4982 MB / 1.925 GB, free: 12.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/5.726, allocations: 55.12 kB / 1.925 GB, free: 12.86 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/5.726, allocations: 110.8 kB / 1.925 GB, free: 12.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/5.727, allocations: 25.7 kB / 1.925 GB, free: 12.74 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/5.727, allocations: 193.4 kB / 1.926 GB, free: 12.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.671e-05/5.727, allocations: 105.6 kB / 1.926 GB, free: 12.52 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/5.727, allocations: 0 / 1.926 GB, free: 12.52 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/5.727, allocations: 324.6 kB / 1.926 GB, free: 12.21 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/5.727, allocations: 114.9 kB / 1.926 GB, free: 12.21 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/5.727, allocations: 181.6 kB / 1.926 GB, free: 12.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/5.73, allocations: 289.4 kB / 1.927 GB, free: 12.12 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/5.73, allocations: 0 / 1.927 GB, free: 12.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002597/5.732, allocations: 0.4999 MB / 1.927 GB, free: 12.08 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/5.732, allocations: 10.69 kB / 1.927 GB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/5.732, allocations: 3.781 kB / 1.927 GB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/5.732, allocations: 3.75 kB / 1.927 GB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005767/5.733, allocations: 92.5 kB / 1.927 GB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/5.733, allocations: 4.312 kB / 1.927 GB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/5.733, allocations: 31.77 kB / 1.927 GB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.528e-05/5.733, allocations: 25.09 kB / 1.927 GB, free: 12.07 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.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: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0002805/5.734, allocations: 144 kB / 1.927 GB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002552/5.736, allocations: 479.1 kB / 1.928 GB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.315e-05/5.736, allocations: 12.25 kB / 1.928 GB, free: 11.9 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/5.74, allocations: 0.9123 MB / 1.929 GB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/5.74, allocations: 10.17 kB / 1.929 GB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/5.74, allocations: 0 / 1.929 GB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/5.74, allocations: 6.906 kB / 1.929 GB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007904/5.741, allocations: 451.6 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/5.741, allocations: 0 / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/5.741, allocations: 81.61 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/5.741, allocations: 3.75 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/5.741, allocations: 8.344 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/5.741, allocations: 3.75 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/5.741, allocations: 2.422 kB / 1.929 GB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/5.745, allocations: 0.9563 MB / 1.93 GB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/5.745, allocations: 104.3 kB / 1.93 GB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/5.745, allocations: 2.875 kB / 1.93 GB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/5.745, allocations: 12.39 kB / 1.93 GB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/5.745, allocations: 34.36 kB / 1.93 GB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.273e-05/5.745, allocations: 15 kB / 1.93 GB, free: 11.37 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.197e-05/5.746, allocations: 90.59 kB / 1.93 GB, free: 11.3 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.01e-07/5.746, allocations: 4.062 kB / 1.93 GB, free: 11.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004982/5.751, allocations: 1.107 MB / 1.932 GB, free: 11.29 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 3 ($cse5.region3boundary,$cse6.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.01331/5.764, allocations: 2.853 MB / 1.934 GB, free: 10.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0008495/5.765, allocations: 380.8 kB / 1.935 GB, free: 10.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/5.765, allocations: 4.125 kB / 1.935 GB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/5.765, allocations: 253.1 kB / 1.935 GB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/5.766, allocations: 67.48 kB / 1.935 GB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/5.771, allocations: 1.018 MB / 1.936 GB, free: 9.957 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/5.771, allocations: 0.7639 MB / 1.937 GB, free: 9.262 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/5.772, allocations: 106.2 kB / 1.937 GB, free: 9.254 MB / 250.7 MB Notification: Performance of SimCode: time 1.283e-06/5.772, allocations: 4 kB / 1.937 GB, free: 9.25 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.619/9.39, allocations: 24.73 MB / 1.961 GB, free: 2.586 MB / 250.7 MB