Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.477/2.477, allocations: 270 MB / 282.6 MB, free: 1.902 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.656e-05/3.671e-05, allocations: 8 kB / 347.1 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.4267, allocations: 61.86 MB / 408.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.05/9.476, allocations: 2.8 GB / 3.2 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/9.477, allocations: 94.58 kB / 3.2 GB, free: 108 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.674/12.15, allocations: 0.4981 GB / 3.698 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.834e-06/12.15, allocations: 0 / 3.698 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.857e-05/12.15, allocations: 23.75 kB / 3.698 GB, free: 15.75 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.008114/12.16, allocations: 1.763 MB / 3.7 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/12.16, allocations: 12.03 kB / 3.7 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002856/12.16, allocations: 112.2 kB / 3.7 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003426/12.16, allocations: 324.5 kB / 3.7 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/12.16, allocations: 0.5986 MB / 3.701 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/12.17, allocations: 115.9 kB / 3.701 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/12.17, allocations: 60 kB / 3.701 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/12.17, allocations: 1.197 MB / 3.702 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.805e-05/12.17, allocations: 7.922 kB / 3.702 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/12.17, allocations: 31.2 kB / 3.702 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-05/12.17, allocations: 41.3 kB / 3.702 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003338/12.17, allocations: 0.9704 MB / 3.703 GB, free: 10.36 MB / 0.5261 GB 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.009147/12.18, allocations: 5.615 MB / 3.709 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00274/12.18, allocations: 0.7377 MB / 3.709 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005671/12.19, allocations: 245.7 kB / 3.71 GB, free: 3.414 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05494/12.24, allocations: 15.77 MB / 3.725 GB, free: 1.785 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/12.24, allocations: 42.55 kB / 3.725 GB, free: 1.734 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=45): time 3.166e-06/12.24, allocations: 0 / 3.725 GB, free: 1.734 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49): time 0.4652/12.71, allocations: 2.014 MB / 3.727 GB, free: 71.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/12.71, allocations: 162.8 kB / 3.727 GB, free: 71.41 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/12.71, allocations: 0.5333 MB / 3.728 GB, free: 71.28 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001945/12.71, allocations: 34.98 kB / 3.728 GB, free: 71.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/12.71, allocations: 417.2 kB / 3.728 GB, free: 71.01 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002505/12.71, allocations: 172.7 kB / 3.728 GB, free: 70.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.155e-05/12.71, allocations: 15.66 kB / 3.728 GB, free: 70.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001119/12.71, allocations: 343.6 kB / 3.729 GB, free: 70.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007699/12.71, allocations: 240.6 kB / 3.729 GB, free: 70.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009817/12.71, allocations: 0.5578 MB / 3.729 GB, free: 70.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008842/12.71, allocations: 331.2 kB / 3.73 GB, free: 70.21 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/12.71, allocations: 2.688 kB / 3.73 GB, free: 70.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002369/12.71, allocations: 0.8159 MB / 3.73 GB, free: 70.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/12.71, allocations: 12.72 kB / 3.73 GB, free: 70.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/12.71, allocations: 9.25 kB / 3.73 GB, free: 70.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004291/12.71, allocations: 63.41 kB / 3.731 GB, free: 70.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00274/12.72, allocations: 312.5 kB / 3.731 GB, free: 70.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/12.72, allocations: 1.983 MB / 3.733 GB, free: 68.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/12.72, allocations: 85.72 kB / 3.733 GB, free: 68.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/12.72, allocations: 42.58 kB / 3.733 GB, free: 68.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0003005/12.72, allocations: 166.5 kB / 3.733 GB, free: 68.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/12.72, allocations: 67.89 kB / 3.733 GB, free: 68.17 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00421/12.72, allocations: 2.575 MB / 3.736 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.883e-05/12.72, allocations: 36.47 kB / 3.736 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/12.72, allocations: 0 / 3.736 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/12.72, allocations: 7.734 kB / 3.736 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005998/12.73, allocations: 3.753 MB / 3.739 GB, free: 67.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/12.73, allocations: 3.953 kB / 3.739 GB, free: 67.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002203/12.73, allocations: 239.7 kB / 3.74 GB, free: 67.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005052/12.73, allocations: 83.61 kB / 3.74 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.769e-05/12.73, allocations: 13.41 kB / 3.74 GB, free: 67.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/12.74, allocations: 1.99 MB / 3.742 GB, free: 65.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/12.74, allocations: 7.016 kB / 3.742 GB, free: 65.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/12.74, allocations: 2.236 MB / 3.744 GB, free: 65.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007416/12.74, allocations: 326.3 kB / 3.744 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/12.74, allocations: 14.92 kB / 3.744 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/12.74, allocations: 64.23 kB / 3.744 GB, free: 65.05 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/12.74, allocations: 55.09 kB / 3.744 GB, free: 65.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/12.74, allocations: 17.16 kB / 3.744 GB, free: 65.04 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001038/12.74, allocations: 0.5453 MB / 3.745 GB, free: 64.95 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.81e-07/12.74, allocations: 0 / 3.745 GB, free: 64.95 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005986/12.75, allocations: 1.135 MB / 3.746 GB, free: 64.95 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.01405/12.76, allocations: 4.338 MB / 3.75 GB, free: 63.95 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003108/12.77, allocations: 0.9849 MB / 3.751 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/12.77, allocations: 5.344 kB / 3.751 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002041/12.77, allocations: 0.7466 MB / 3.752 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/12.77, allocations: 376.5 kB / 3.752 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009128/12.78, allocations: 2.499 MB / 3.755 GB, free: 63.41 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007196/12.78, allocations: 1.18 MB / 3.756 GB, free: 62.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000805/12.78, allocations: 450.9 kB / 3.756 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of SimCode: time 1.433e-06/12.78, allocations: 0 / 3.756 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.089/16.87, allocations: 46.89 MB / 3.802 GB, free: 60.8 MB / 0.5417 GB