Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestExamplesVariants_IncompressibleFluidNetwork_StandardWaterOnePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.67/2.67, allocations: 270 MB / 282.7 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.669e-05/3.673e-05, allocations: 3.984 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4205, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.18/9.601, allocations: 2.95 GB / 3.349 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/9.601, allocations: 76.62 kB / 3.349 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 11.48/21.08, allocations: 2.142 GB / 5.491 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.924e-06/21.08, allocations: 0 / 5.491 GB, free: 24.7 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.001045/21.08, allocations: 215.2 kB / 5.492 GB, free: 24.64 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1894 * Number of variables: 1894 Notification: Performance of Generate backend data structure: time 0.07444/21.15, allocations: 9.82 MB / 5.501 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/21.15, allocations: 7.688 kB / 5.501 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005536/21.16, allocations: 0.9794 MB / 5.502 GB, free: 20.16 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02092/21.18, allocations: 1.977 MB / 5.504 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03309/21.21, allocations: 7.106 MB / 5.511 GB, free: 17.25 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001007/21.21, allocations: 0.5381 MB / 5.512 GB, free: 16.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004585/21.22, allocations: 0.7135 MB / 5.512 GB, free: 16.21 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04587/21.26, allocations: 12.89 MB / 5.525 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005258/21.27, allocations: 39.66 kB / 5.525 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004382/21.27, allocations: 319.8 kB / 5.525 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001682/21.27, allocations: 0.6445 MB / 5.526 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0873/21.36, allocations: 12.46 MB / 5.538 GB, free: 5.875 MB / 0.6511 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.7628/22.12, allocations: 53.86 MB / 5.591 GB, free: 19.77 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02155/22.14, allocations: 7.492 MB / 5.598 GB, free: 19.69 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01179/22.16, allocations: 4.314 MB / 5.602 GB, free: 19.64 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2254/22.38, allocations: 64.94 MB / 5.666 GB, free: 27.88 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/22.38, allocations: 97.97 kB / 5.666 GB, free: 27.83 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009824/22.39, allocations: 0.8409 MB / 5.667 GB, free: 27.66 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=586): time 3.94e-05/22.39, allocations: 0 / 5.667 GB, free: 27.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=709): time 0.2648/22.66, allocations: 45.5 MB / 5.711 GB, free: 24.68 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/22.66, allocations: 178.6 kB / 5.711 GB, free: 24.55 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01227/22.67, allocations: 4.268 MB / 5.715 GB, free: 24.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.002377/22.67, allocations: 156.4 kB / 5.715 GB, free: 24.15 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.003534/22.67, allocations: 2.956 MB / 5.718 GB, free: 23.15 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.004392/22.68, allocations: 2.456 MB / 5.721 GB, free: 21.58 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/22.68, allocations: 160.1 kB / 5.721 GB, free: 21.58 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0008091/22.68, allocations: 0.6276 MB / 5.721 GB, free: 21.25 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01314/22.69, allocations: 4.318 MB / 5.726 GB, free: 21.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01522/22.71, allocations: 6.132 MB / 5.732 GB, free: 19.33 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5696/23.28, allocations: 41.83 MB / 5.773 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-05/23.28, allocations: 12 kB / 5.773 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.05376/23.33, allocations: 14.58 MB / 5.787 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.008264/23.34, allocations: 19.69 MB / 5.806 GB, free: 1.234 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002587/23.34, allocations: 54.3 kB / 5.806 GB, free: 1.184 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8972/24.24, allocations: 18.69 MB / 5.824 GB, free: 116.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008042/24.25, allocations: 1.049 MB / 5.825 GB, free: 116.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04358/24.29, allocations: 15 MB / 5.84 GB, free: 115.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01637/24.31, allocations: 0.8811 MB / 5.841 GB, free: 115.3 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002986/24.31, allocations: 384.6 kB / 5.841 GB, free: 115.3 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/24.31, allocations: 2.969 kB / 5.841 GB, free: 115.3 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04554/24.36, allocations: 13.9 MB / 5.855 GB, free: 115.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/24.36, allocations: 50.84 kB / 5.855 GB, free: 115.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2347/24.59, allocations: 16.75 MB / 5.871 GB, free: 115 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009317/24.6, allocations: 1.077 MB / 5.872 GB, free: 115 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04459/24.64, allocations: 14 MB / 5.886 GB, free: 113.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01301/24.66, allocations: 0.8715 MB / 5.887 GB, free: 113.8 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002975/24.66, allocations: 380.4 kB / 5.887 GB, free: 113.8 MB / 0.7292 GB Warning: The initial conditions are over specified. The following 13 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe1.mediums[1].p = 0.0 $DER.pipe1.mediums[2].p = 0.0 $DER.pipe3.mediums[1].p = 0.0 $DER.pipe7.mediums[2].p = 0.0 $DER.pipe9.mediums[1].p = 0.0 $DER.pipe10.mediums[1].p = 0.0 $DER.pipe4.mediums[2].p = 0.0 $DER.pipe5.mediums[1].p = 0.0 $DER.pipe8.mediums[2].p = 0.0 $DER.pipe10.mediums[2].p = 0.0 $DER.pipe11.mediums[1].p = 0.0 $DER.pipe5.mediums[2].p = 0.0 $DER.pipe9.mediums[2].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 226 * Number of states: 0 () * Number of discrete variables: 52 (valve3.state_b.phase,valve3.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe11.mediums[2].phase,pipe11.mediums[1].phase,pipe11.state_b.phase,pipe11.state_a.phase,pipe5.mediums[2].phase,pipe5.mediums[1].phase,pipe5.state_b.phase,pipe5.state_a.phase,pipe10.mediums[2].phase,pipe10.mediums[1].phase,pipe10.state_b.phase,pipe10.state_a.phase,pipe9.mediums[2].phase,pipe9.mediums[1].phase,pipe9.state_b.phase,pipe9.state_a.phase,pipe8.mediums[2].phase,pipe8.mediums[1].phase,pipe8.state_b.phase,pipe8.state_a.phase,sink.medium.phase,pipe7.mediums[2].phase,pipe7.mediums[1].phase,pipe7.state_b.phase,pipe7.state_a.phase,pipe6.mediums[2].phase,pipe6.mediums[1].phase,pipe6.state_b.phase,pipe6.state_a.phase,pipe4.mediums[2].phase,pipe4.mediums[1].phase,pipe4.state_b.phase,pipe4.state_a.phase,pipe3.mediums[2].phase,pipe3.mediums[1].phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe2.mediums[2].phase,pipe2.mediums[1].phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.mediums[2].phase,pipe1.mediums[1].phase,pipe1.state_b.phase,pipe1.state_a.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 599 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,30 380} Notification: Performance of prepare postOptimizeDAE: time 0.005135/24.67, allocations: 0.6002 MB / 5.888 GB, free: 113.7 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003517/24.67, allocations: 0.6732 MB / 5.888 GB, free: 113.7 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06539/24.73, allocations: 26.53 MB / 5.914 GB, free: 112.4 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003427/24.74, allocations: 227.8 kB / 5.915 GB, free: 112.4 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.993e-05/24.74, allocations: 3.516 kB / 5.915 GB, free: 112.4 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04913/24.78, allocations: 22.96 MB / 5.937 GB, free: 110.9 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1118/24.9, allocations: 46.54 MB / 5.982 GB, free: 95.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001176/24.9, allocations: 16.62 kB / 5.982 GB, free: 95.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00769/24.9, allocations: 0.9189 MB / 5.983 GB, free: 94.8 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09727/25, allocations: 10.38 MB / 5.993 GB, free: 87.85 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002173/25, allocations: 263.6 kB / 5.994 GB, free: 87.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02159/25.03, allocations: 14.54 MB / 6.008 GB, free: 74.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.719e-05/25.03, allocations: 32.12 kB / 6.008 GB, free: 74.43 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06121/25.09, allocations: 31.35 MB / 6.039 GB, free: 44.86 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01041/25.1, allocations: 2.037 MB / 6.041 GB, free: 43.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004827/25.1, allocations: 220 kB / 6.041 GB, free: 42.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01156/25.11, allocations: 0.5765 MB / 6.041 GB, free: 42.44 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002082/25.12, allocations: 0.5004 MB / 6.042 GB, free: 42.13 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009307/25.12, allocations: 268.8 kB / 6.042 GB, free: 41.89 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.01076/25.13, allocations: 3.216 MB / 6.045 GB, free: 39 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9.52e-07/25.13, allocations: 4 kB / 6.045 GB, free: 39 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.03464/25.16, allocations: 6.538 MB / 6.052 GB, free: 32.98 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 83 * Number of states: 31 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].T,pipe4.mediums[1].p,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].p,pipe6.mediums[1].T,pipe6.mediums[2].p,pipe6.mediums[2].T,pipe7.mediums[1].p,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].p,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].p,pipe11.mediums[2].T) * Number of discrete variables: 102 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse57.phase,$cse57.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,$cse70.phase,$cse70.region,$cse71.phase,$cse71.region,$cse73.phase,$cse73.region,$cse75.phase,$cse75.region,$cse76.phase,$cse76.region,$cse77.phase,$cse77.region,$cse79.phase,$cse79.region,$cse80.phase,$cse80.region,$cse82.phase,$cse82.region,$cse83.phase,$cse83.region,$cse85.phase,$cse85.region,$cse86.phase,$cse86.region,$cse87.phase,$cse87.region,$cse88.phase,$cse88.region,$cse90.phase,$cse90.region,$cse91.phase,$cse91.region,$cse92.phase,$cse92.region,$cse93.phase,$cse93.region,$cse95.phase,$cse95.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 501 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {4 38,2 1,2 1,2 1,2 1,6 64,6 64,6 36,2 1,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.7575/25.92, allocations: 41.11 MB / 6.092 GB, free: 109.9 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.05907/25.98, allocations: 19.27 MB / 6.111 GB, free: 109.6 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.439e-05/25.98, allocations: 4.656 kB / 6.111 GB, free: 109.6 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.02215/26, allocations: 8.605 MB / 6.119 GB, free: 109.5 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02971/26.03, allocations: 3.098 MB / 6.122 GB, free: 109.4 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08111/26.11, allocations: 25.56 MB / 6.147 GB, free: 105.2 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0124/26.12, allocations: 5.833 MB / 6.153 GB, free: 104.3 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01102/26.14, allocations: 4.276 MB / 6.157 GB, free: 104.3 MB / 0.7292 GB Notification: Performance of SimCode: time 1.673e-06/26.14, allocations: 0 / 6.157 GB, free: 104.3 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.568/34.7, allocations: 435.7 MB / 6.582 GB, free: 4.047 MB / 0.7448 GB