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 0.9965/0.9965, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.5e-05/3.518e-05, allocations: 7.984 kB / 154.4 MB, free: 13.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1681, allocations: 25.15 MB / 179.5 MB, free: 0.7188 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.839/5.007, allocations: 1.565 GB / 1.74 GB, free: 29.66 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.04109/5.048, allocations: 12.48 MB / 1.752 GB, free: 28.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7216/5.77, allocations: 112.7 MB / 1.862 GB, free: 38.75 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.714e-06/5.77, allocations: 0 / 1.862 GB, free: 38.75 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/5.77, allocations: 3.969 kB / 1.862 GB, free: 38.75 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.005465/5.776, allocations: 1.147 MB / 1.863 GB, free: 38.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/5.776, allocations: 14.52 kB / 1.863 GB, free: 38.04 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.44e-05/5.776, allocations: 51.5 kB / 1.863 GB, free: 38 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.942e-05/5.776, allocations: 22.88 kB / 1.863 GB, free: 37.99 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/5.776, allocations: 229.3 kB / 1.863 GB, free: 37.79 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.982e-05/5.776, allocations: 17.28 kB / 1.863 GB, free: 37.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/5.776, allocations: 25.05 kB / 1.864 GB, free: 37.79 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009386/5.777, allocations: 447.3 kB / 1.864 GB, free: 37.71 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/5.777, allocations: 3.281 kB / 1.864 GB, free: 37.71 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/5.777, allocations: 9.812 kB / 1.864 GB, free: 37.71 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/5.777, allocations: 11.78 kB / 1.864 GB, free: 37.71 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/5.778, allocations: 0.6162 MB / 1.865 GB, free: 37.71 MB / 250.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.002208/5.781, allocations: 1.555 MB / 1.866 GB, free: 36.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/5.781, allocations: 215.9 kB / 1.866 GB, free: 36.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/5.782, allocations: 158.6 kB / 1.866 GB, free: 36.58 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3937/6.175, allocations: 69.07 MB / 1.934 GB, free: 51.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/6.175, allocations: 34.09 kB / 1.934 GB, free: 51.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 3.186e-06/6.175, allocations: 0 / 1.934 GB, free: 51.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.001419/6.177, allocations: 402.1 kB / 1.934 GB, free: 51.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/6.177, allocations: 66.61 kB / 1.934 GB, free: 51.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/6.177, allocations: 105.2 kB / 1.934 GB, free: 51.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/6.177, allocations: 31.83 kB / 1.935 GB, free: 51.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/6.177, allocations: 188.7 kB / 1.935 GB, free: 51.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/6.177, allocations: 109.6 kB / 1.935 GB, free: 51.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/6.177, allocations: 5.625 kB / 1.935 GB, free: 51.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.867e-05/6.177, allocations: 326.7 kB / 1.935 GB, free: 50.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/6.178, allocations: 124.6 kB / 1.935 GB, free: 50.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/6.178, allocations: 190.2 kB / 1.935 GB, free: 50.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/6.178, allocations: 145.8 kB / 1.936 GB, free: 50.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/6.178, allocations: 2.625 kB / 1.936 GB, free: 50.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009649/6.179, allocations: 392.9 kB / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/6.179, allocations: 13.95 kB / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/6.179, allocations: 0 / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/6.179, allocations: 3.938 kB / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005817/6.18, allocations: 88.45 kB / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/6.18, allocations: 4.656 kB / 1.936 GB, free: 50.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/6.18, allocations: 41.69 kB / 1.936 GB, free: 50.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.686e-05/6.18, allocations: 15.12 kB / 1.936 GB, free: 50.77 MB / 266.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.0002478/6.181, allocations: 155.6 kB / 1.936 GB, free: 50.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.21e-05/6.181, allocations: 17.55 kB / 1.936 GB, free: 50.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/6.182, allocations: 0.7867 MB / 1.937 GB, free: 50.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/6.182, allocations: 7.344 kB / 1.937 GB, free: 50.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/6.182, allocations: 0 / 1.937 GB, free: 50.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/6.183, allocations: 5.922 kB / 1.937 GB, free: 50.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008048/6.183, allocations: 0.4994 MB / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/6.183, allocations: 0 / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005342/6.184, allocations: 83.05 kB / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/6.184, allocations: 0 / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/6.184, allocations: 17.31 kB / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/6.184, allocations: 0.5625 kB / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/6.184, allocations: 0 / 1.938 GB, free: 50.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/6.186, allocations: 0.8249 MB / 1.938 GB, free: 50.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.842e-05/6.186, allocations: 106.7 kB / 1.939 GB, free: 50.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/6.186, allocations: 9.406 kB / 1.939 GB, free: 50.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/6.186, allocations: 17.52 kB / 1.939 GB, free: 50.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/6.186, allocations: 36.81 kB / 1.939 GB, free: 50.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-05/6.186, allocations: 17.89 kB / 1.939 GB, free: 50.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.537e-05/6.186, allocations: 94.22 kB / 1.939 GB, free: 50.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.01e-07/6.186, allocations: 0 / 1.939 GB, free: 50.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005028/6.191, allocations: 1.117 MB / 1.94 GB, free: 50.02 MB / 266.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.01152/6.203, allocations: 2.725 MB / 1.942 GB, free: 49.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000949/6.204, allocations: 398.3 kB / 1.943 GB, free: 49.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/6.204, allocations: 2.062 kB / 1.943 GB, free: 49.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004475/6.204, allocations: 258.4 kB / 1.943 GB, free: 49.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008565/6.205, allocations: 77.06 kB / 1.943 GB, free: 49.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004659/6.21, allocations: 1.047 MB / 1.944 GB, free: 48.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/6.21, allocations: 0.7659 MB / 1.945 GB, free: 48.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/6.21, allocations: 107.8 kB / 1.945 GB, free: 48.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.412e-06/6.211, allocations: 0 / 1.945 GB, free: 48.11 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.498/9.708, allocations: 23.97 MB / 1.968 GB, free: 46.14 MB / 266.7 MB