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/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: "" <> 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.195/1.195, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002761, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05807/0.05838, allocations: 25.17 MB / 183.6 MB, free: 5.863 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.719/4.777, allocations: 1.565 GB / 1.744 GB, free: 44.18 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.05039/4.828, allocations: 12.56 MB / 1.756 GB, free: 43.33 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.705/5.533, allocations: 112.8 MB / 1.866 GB, free: 42.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.874e-06/5.533, allocations: 0 / 1.866 GB, free: 42.47 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.531e-05/5.533, allocations: 0 / 1.866 GB, free: 42.47 MB / 250.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.005593/5.539, allocations: 1.16 MB / 1.868 GB, free: 41.72 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/5.539, allocations: 11.81 kB / 1.868 GB, free: 41.72 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.088e-05/5.539, allocations: 58.89 kB / 1.868 GB, free: 41.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/5.539, allocations: 21.5 kB / 1.868 GB, free: 41.67 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/5.539, allocations: 234.4 kB / 1.868 GB, free: 41.47 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/5.539, allocations: 15.31 kB / 1.868 GB, free: 41.47 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.077e-05/5.539, allocations: 26.05 kB / 1.868 GB, free: 41.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/5.54, allocations: 450.7 kB / 1.868 GB, free: 41.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/5.54, allocations: 0 / 1.868 GB, free: 41.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/5.54, allocations: 7.906 kB / 1.868 GB, free: 41.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/5.54, allocations: 3.844 kB / 1.868 GB, free: 41.39 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/5.542, allocations: 0.6463 MB / 1.869 GB, free: 41.39 MB / 250.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.002184/5.544, allocations: 1.545 MB / 1.87 GB, free: 40.29 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006909/5.545, allocations: 237.3 kB / 1.871 GB, free: 40.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3952/5.94, allocations: 68.81 MB / 1.938 GB, free: 24.94 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/5.94, allocations: 38.53 kB / 1.938 GB, free: 24.9 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.156e-06/5.94, allocations: 0 / 1.938 GB, free: 24.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002057/5.942, allocations: 0.5591 MB / 1.938 GB, free: 24.87 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/5.942, allocations: 55.31 kB / 1.938 GB, free: 24.8 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/5.942, allocations: 117.3 kB / 1.939 GB, free: 24.71 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/5.942, allocations: 28.95 kB / 1.939 GB, free: 24.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/5.942, allocations: 187.6 kB / 1.939 GB, free: 24.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/5.943, allocations: 114.6 kB / 1.939 GB, free: 24.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/5.943, allocations: 7.5 kB / 1.939 GB, free: 24.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.34e-05/5.943, allocations: 328 kB / 1.939 GB, free: 24.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/5.943, allocations: 142.2 kB / 1.939 GB, free: 24.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/5.944, allocations: 209.2 kB / 1.94 GB, free: 24.08 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004537/5.944, allocations: 157.8 kB / 1.94 GB, free: 24.07 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/5.944, allocations: 0 / 1.94 GB, free: 24.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001186/5.945, allocations: 437.1 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/5.945, allocations: 4.625 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/5.945, allocations: 3.875 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.582e-05/5.945, allocations: 3.812 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/5.946, allocations: 85.08 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/5.946, allocations: 4.594 kB / 1.94 GB, free: 24.03 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/5.946, allocations: 43.77 kB / 1.94 GB, free: 24.02 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/5.946, allocations: 19.12 kB / 1.94 GB, free: 24.02 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" fixed = true 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" fixed = true 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 () * Number of clocked 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.00031/5.947, allocations: 175.4 kB / 1.94 GB, free: 23.89 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.045e-05/5.947, allocations: 15.28 kB / 1.94 GB, free: 23.89 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/5.949, allocations: 0.8329 MB / 1.941 GB, free: 23.81 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/5.949, allocations: 7.188 kB / 1.941 GB, free: 23.81 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/5.949, allocations: 0 / 1.941 GB, free: 23.81 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/5.949, allocations: 3.656 kB / 1.941 GB, free: 23.81 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008107/5.95, allocations: 0.4911 MB / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/5.95, allocations: 0 / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/5.95, allocations: 72.83 kB / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/5.95, allocations: 6.188 kB / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/5.95, allocations: 15.84 kB / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/5.95, allocations: 0 / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/5.95, allocations: 0 / 1.942 GB, free: 23.61 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/5.952, allocations: 0.8829 MB / 1.943 GB, free: 23.44 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-05/5.952, allocations: 105.7 kB / 1.943 GB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.311e-05/5.952, allocations: 15.69 kB / 1.943 GB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/5.952, allocations: 27.95 kB / 1.943 GB, free: 23.33 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/5.953, allocations: 31.73 kB / 1.943 GB, free: 23.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.084e-05/5.953, allocations: 18.41 kB / 1.943 GB, free: 23.33 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.033e-05/5.953, allocations: 89.64 kB / 1.943 GB, free: 23.26 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.613e-06/5.953, allocations: 0 / 1.943 GB, free: 23.26 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005006/5.958, allocations: 1.118 MB / 1.944 GB, free: 23.25 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 () * Number of clocked 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.0118/5.97, allocations: 2.766 MB / 1.947 GB, free: 22.41 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/5.971, allocations: 437.3 kB / 1.947 GB, free: 22.41 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/5.971, allocations: 0.9688 kB / 1.947 GB, free: 22.41 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005489/5.971, allocations: 281.7 kB / 1.947 GB, free: 22.41 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008663/5.972, allocations: 76.69 kB / 1.948 GB, free: 22.41 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006974/5.979, allocations: 3.336 MB / 1.951 GB, free: 20.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/5.98, allocations: 0.771 MB / 1.952 GB, free: 19.64 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/5.98, allocations: 112.9 kB / 1.952 GB, free: 19.63 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/5.98, allocations: 0 / 1.952 GB, free: 19.63 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.671/9.651, allocations: 23.99 MB / 1.975 GB, free: 16.88 MB / 250.7 MB