Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.522/2.522, allocations: 270 MB / 282.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.349e-05/4.348e-05, allocations: 4 kB / 347 MB, free: 3.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4128, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.379/8.792, allocations: 2.838 GB / 3.237 GB, free: 62.98 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/8.792, allocations: 77.03 kB / 3.237 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.871/11.66, allocations: 0.4969 GB / 3.734 GB, free: 50.61 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.803e-06/11.66, allocations: 3.781 kB / 3.734 GB, free: 50.61 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001504/11.66, allocations: 43.84 kB / 3.734 GB, free: 50.61 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01528/11.68, allocations: 2.992 MB / 3.737 GB, free: 49.53 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/11.68, allocations: 12.72 kB / 3.737 GB, free: 49.53 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/11.68, allocations: 277.3 kB / 3.738 GB, free: 49.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00769/11.69, allocations: 0.7096 MB / 3.738 GB, free: 49.38 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006411/11.69, allocations: 1.571 MB / 3.74 GB, free: 49.03 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/11.69, allocations: 176 kB / 3.74 GB, free: 49.03 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008589/11.7, allocations: 181.3 kB / 3.74 GB, free: 49.02 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01087/11.71, allocations: 3.499 MB / 3.744 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.438e-05/11.71, allocations: 11.36 kB / 3.744 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/11.71, allocations: 75.62 kB / 3.744 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002328/11.71, allocations: 173 kB / 3.744 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/11.72, allocations: 3.297 MB / 3.747 GB, free: 48.57 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.03017/11.75, allocations: 14.13 MB / 3.761 GB, free: 40.83 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007121/11.76, allocations: 2.13 MB / 3.763 GB, free: 40.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002469/11.76, allocations: 1.075 MB / 3.764 GB, free: 40.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2058/11.96, allocations: 63.66 MB / 3.826 GB, free: 33.29 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0058/11.97, allocations: 1.684 MB / 3.828 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 5.049e-06/11.97, allocations: 3.281 kB / 3.828 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02753/12, allocations: 8.15 MB / 3.836 GB, free: 31.53 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/12, allocations: 287.5 kB / 3.836 GB, free: 31.21 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/12, allocations: 1.18 MB / 3.837 GB, free: 31.04 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005825/12, allocations: 55.45 kB / 3.837 GB, free: 31 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007521/12, allocations: 0.8137 MB / 3.838 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009091/12, allocations: 0.5981 MB / 3.839 GB, free: 30.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/12, allocations: 40.94 kB / 3.839 GB, free: 30.17 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002295/12, allocations: 396.2 kB / 3.839 GB, free: 29.86 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/12.01, allocations: 1.143 MB / 3.84 GB, free: 29.85 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003374/12.01, allocations: 1.68 MB / 3.842 GB, free: 29.21 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003561/12.01, allocations: 1.376 MB / 3.843 GB, free: 29.17 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-05/12.01, allocations: 3.938 kB / 3.843 GB, free: 29.17 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01125/12.02, allocations: 3.866 MB / 3.847 GB, free: 29.02 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002434/12.03, allocations: 6.28 MB / 3.853 GB, free: 22.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-05/12.03, allocations: 16.72 kB / 3.853 GB, free: 22.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02577/12.05, allocations: 3.454 MB / 3.856 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/12.06, allocations: 338 kB / 3.857 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008998/12.06, allocations: 3.818 MB / 3.86 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004256/12.07, allocations: 279.5 kB / 3.861 GB, free: 21.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004943/12.07, allocations: 105.1 kB / 3.861 GB, free: 21.72 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/12.07, allocations: 3.312 kB / 3.861 GB, free: 21.72 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00977/12.08, allocations: 3.537 MB / 3.864 GB, free: 21.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-05/12.08, allocations: 19.17 kB / 3.864 GB, free: 21.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01352/12.09, allocations: 2.168 MB / 3.866 GB, free: 21.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002674/12.1, allocations: 368.7 kB / 3.867 GB, free: 21.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006165/12.1, allocations: 3.095 MB / 3.87 GB, free: 20.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/12.1, allocations: 258.5 kB / 3.87 GB, free: 20.16 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000337/12.1, allocations: 102.2 kB / 3.87 GB, free: 20.14 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0008435/12.11, allocations: 239.7 kB / 3.87 GB, free: 19.96 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005301/12.11, allocations: 163.2 kB / 3.87 GB, free: 19.88 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/12.12, allocations: 6.759 MB / 3.877 GB, free: 16.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.684e-05/12.12, allocations: 78.58 kB / 3.877 GB, free: 16.65 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/12.12, allocations: 3.094 kB / 3.877 GB, free: 16.65 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009188/12.13, allocations: 5.442 MB / 3.882 GB, free: 11.65 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01761/12.15, allocations: 9.482 MB / 3.892 GB, free: 3.648 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/12.15, allocations: 4 kB / 3.892 GB, free: 3.645 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003684/12.15, allocations: 438 kB / 3.892 GB, free: 3.312 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/12.15, allocations: 443.1 kB / 3.893 GB, free: 2.969 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005592/12.15, allocations: 63.02 kB / 3.893 GB, free: 2.918 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002746/12.16, allocations: 3.213 MB / 3.896 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/12.16, allocations: 0 / 3.896 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/12.17, allocations: 6.748 MB / 3.902 GB, free: 9.598 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/12.17, allocations: 0.7635 MB / 3.903 GB, free: 8.93 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006284/12.17, allocations: 54.62 kB / 3.903 GB, free: 8.883 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003091/12.18, allocations: 215.7 kB / 3.903 GB, free: 8.723 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005548/12.18, allocations: 181 kB / 3.904 GB, free: 8.617 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/12.18, allocations: 70.31 kB / 3.904 GB, free: 8.559 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002859/12.18, allocations: 1.218 MB / 3.905 GB, free: 7.453 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.31e-07/12.18, allocations: 4 kB / 3.905 GB, free: 7.449 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01188/12.19, allocations: 2.365 MB / 3.907 GB, free: 5.129 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.4936/12.69, allocations: 10.22 MB / 3.917 GB, free: 94.65 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01432/12.7, allocations: 5.006 MB / 3.922 GB, free: 94.59 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/12.7, allocations: 3.188 kB / 3.922 GB, free: 94.59 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005403/12.71, allocations: 2.262 MB / 3.924 GB, free: 94.58 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007038/12.71, allocations: 0.7838 MB / 3.925 GB, free: 94.56 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/12.74, allocations: 6.881 MB / 3.932 GB, free: 93.48 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/12.74, allocations: 2.044 MB / 3.934 GB, free: 92.75 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/12.74, allocations: 1.157 MB / 3.935 GB, free: 92.74 MB / 0.573 GB Notification: Performance of SimCode: time 1.413e-06/12.74, allocations: 0 / 3.935 GB, free: 92.74 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.585/17.33, allocations: 99.92 MB / 4.032 GB, free: 86.36 MB / 0.573 GB