Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.565/2.565, allocations: 235.2 MB / 242.3 MB, free: 15.79 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.475e-05/2.474e-05, allocations: 4 kB / 299.6 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4019, allocations: 54.86 MB / 354.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.209/8.611, allocations: 2.663 GB / 3.009 GB, free: 112.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/8.611, allocations: 80.58 kB / 3.009 GB, free: 112.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.613/11.22, allocations: 495.7 MB / 3.493 GB, free: 6.617 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.964e-06/11.22, allocations: 0 / 3.493 GB, free: 6.617 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001511/11.22, allocations: 51.84 kB / 3.493 GB, free: 6.57 MB / 490.7 MB 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.01554/11.24, allocations: 2.972 MB / 3.496 GB, free: 3.555 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/11.24, allocations: 12.03 kB / 3.496 GB, free: 3.543 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008354/11.25, allocations: 0.7117 MB / 3.497 GB, free: 2.828 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006947/11.26, allocations: 1.589 MB / 3.499 GB, free: 1.211 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002408/11.26, allocations: 91.97 kB / 3.499 GB, free: 1.121 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007461/11.26, allocations: 103.9 kB / 3.499 GB, free: 1.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3977/11.65, allocations: 2.826 MB / 3.502 GB, free: 40.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009941/11.66, allocations: 2.87 MB / 3.504 GB, free: 39.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.126e-05/11.66, allocations: 10.72 kB / 3.504 GB, free: 39.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004166/11.66, allocations: 7.438 kB / 3.504 GB, free: 39.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003338/11.67, allocations: 173.1 kB / 3.505 GB, free: 39.97 MB / 490.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.4953/12.16, allocations: 140.5 MB / 3.642 GB, free: 33.25 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00469/12.17, allocations: 1.565 MB / 3.643 GB, free: 33.21 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002477/12.17, allocations: 0.9811 MB / 3.644 GB, free: 33.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05951/12.23, allocations: 16.72 MB / 3.661 GB, free: 22.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00318/12.23, allocations: 1.136 MB / 3.662 GB, free: 22.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 6.072e-06/12.23, allocations: 0 / 3.662 GB, free: 22.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.03523/12.27, allocations: 7.392 MB / 3.669 GB, free: 21.26 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/12.27, allocations: 226.4 kB / 3.669 GB, free: 21.01 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/12.27, allocations: 0.924 MB / 3.67 GB, free: 20.85 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005674/12.27, allocations: 32.3 kB / 3.67 GB, free: 20.82 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/12.27, allocations: 0.8834 MB / 3.671 GB, free: 20.44 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009184/12.27, allocations: 0.5278 MB / 3.671 GB, free: 20.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/12.27, allocations: 1.125 kB / 3.671 GB, free: 20.17 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003417/12.27, allocations: 453.4 kB / 3.672 GB, free: 19.85 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/12.27, allocations: 1.125 MB / 3.673 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003426/12.28, allocations: 1.665 MB / 3.675 GB, free: 19.22 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/12.29, allocations: 2.01 MB / 3.677 GB, free: 19.16 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.994e-05/12.29, allocations: 6 kB / 3.677 GB, free: 19.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01967/12.31, allocations: 4.43 MB / 3.681 GB, free: 18.98 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.387/12.7, allocations: 6.269 MB / 3.687 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-05/12.7, allocations: 15.83 kB / 3.687 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/12.72, allocations: 2.743 MB / 3.69 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/12.72, allocations: 335.1 kB / 3.69 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/12.73, allocations: 4.239 MB / 3.694 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/12.74, allocations: 257.9 kB / 3.694 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004917/12.74, allocations: 104.8 kB / 3.695 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/12.74, allocations: 3.781 kB / 3.695 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01629/12.75, allocations: 3.878 MB / 3.698 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-05/12.75, allocations: 18.94 kB / 3.698 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01441/12.77, allocations: 2.12 MB / 3.7 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002811/12.77, allocations: 374 kB / 3.701 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006703/12.78, allocations: 3.237 MB / 3.704 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003876/12.78, allocations: 231 kB / 3.704 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003474/12.78, allocations: 99.73 kB / 3.704 GB, free: 115.9 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 ($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,source.medium.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.0008219/12.78, allocations: 171.1 kB / 3.704 GB, free: 115.8 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008363/12.79, allocations: 2.463 MB / 3.707 GB, free: 115.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007126/12.79, allocations: 139.5 kB / 3.707 GB, free: 115.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/12.81, allocations: 5.642 MB / 3.712 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.481e-05/12.81, allocations: 66.33 kB / 3.713 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/12.81, allocations: 9.016 kB / 3.713 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01094/12.82, allocations: 5.118 MB / 3.718 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/12.84, allocations: 8.398 MB / 3.726 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/12.84, allocations: 3.969 kB / 3.726 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003764/12.84, allocations: 397.4 kB / 3.726 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001984/12.84, allocations: 415.8 kB / 3.727 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005129/12.84, allocations: 42.05 kB / 3.727 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/12.85, allocations: 3.351 MB / 3.73 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/12.85, allocations: 3.656 kB / 3.73 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/12.86, allocations: 6.251 MB / 3.736 GB, free: 110.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/12.86, allocations: 0.5622 MB / 3.736 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007253/12.86, allocations: 16.02 kB / 3.736 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003332/12.87, allocations: 169.1 kB / 3.737 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007453/12.87, allocations: 165.5 kB / 3.737 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/12.87, allocations: 65.33 kB / 3.737 GB, free: 110.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001436/12.87, allocations: 0.6624 MB / 3.738 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.61e-07/12.87, allocations: 1.125 kB / 3.738 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01134/12.88, allocations: 2.171 MB / 3.74 GB, free: 110.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.02722/12.91, allocations: 8.928 MB / 3.748 GB, free: 109.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0131/12.92, allocations: 4.832 MB / 3.753 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/12.92, allocations: 3.406 kB / 3.753 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005457/12.93, allocations: 2.084 MB / 3.755 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005767/12.93, allocations: 0.5589 MB / 3.756 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/12.95, allocations: 6.089 MB / 3.762 GB, free: 108.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/12.95, allocations: 1.913 MB / 3.763 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006983/12.96, allocations: 1.689 MB / 3.765 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/12.96, allocations: 0.9752 MB / 3.766 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.483e-06/12.96, allocations: 2.5 kB / 3.766 GB, free: 107.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2701/13.23, allocations: 93.16 MB / 3.857 GB, free: 73.22 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003535/13.23, allocations: 204.5 kB / 3.857 GB, free: 72.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.808/20.04, allocations: 0 / 3.857 GB, free: 72.95 MB / 0.5573 GB