Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.477/2.477, allocations: 235.2 MB / 242.3 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.741e-05, allocations: 7.984 kB / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3746, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.312/8.687, allocations: 2.652 GB / 2.998 GB, free: 98.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/8.687, allocations: 77.33 kB / 2.998 GB, free: 98.57 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409/13.1, allocations: 0.7337 GB / 3.732 GB, free: 39.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.705e-06/13.1, allocations: 2.844 kB / 3.732 GB, free: 39.46 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002206/13.1, allocations: 28.27 kB / 3.732 GB, free: 39.46 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01389/13.11, allocations: 2.766 MB / 3.734 GB, free: 38.13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/13.11, allocations: 13.73 kB / 3.734 GB, free: 38.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005116/13.12, allocations: 476.9 kB / 3.735 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004029/13.12, allocations: 1.125 MB / 3.736 GB, free: 37.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/13.12, allocations: 110.7 kB / 3.736 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002697/13.12, allocations: 54.44 kB / 3.736 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003588/13.12, allocations: 1.339 MB / 3.737 GB, free: 37.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003483/13.13, allocations: 1.465 MB / 3.739 GB, free: 37.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/13.13, allocations: 12.62 kB / 3.739 GB, free: 37.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/13.13, allocations: 6.062 kB / 3.739 GB, free: 37.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001712/13.13, allocations: 77.11 kB / 3.739 GB, free: 37.32 MB / 0.4948 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.9022/14.03, allocations: 135.2 MB / 3.871 GB, free: 72.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/14.03, allocations: 0.9232 MB / 3.872 GB, free: 72.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/14.03, allocations: 372.6 kB / 3.872 GB, free: 72.17 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0648/14.1, allocations: 16.69 MB / 3.888 GB, free: 61.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/14.1, allocations: 0.4947 MB / 3.889 GB, free: 61.85 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=66): time 3.988e-06/14.1, allocations: 0 / 3.889 GB, free: 61.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70): time 0.01388/14.11, allocations: 3.111 MB / 3.892 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/14.11, allocations: 348.1 kB / 3.892 GB, free: 60.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/14.12, allocations: 0.8367 MB / 3.893 GB, free: 60.65 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002963/14.12, allocations: 29.14 kB / 3.893 GB, free: 60.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008242/14.12, allocations: 0.6278 MB / 3.894 GB, free: 60.36 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000552/14.12, allocations: 241.2 kB / 3.894 GB, free: 60.24 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/14.12, allocations: 3.219 kB / 3.894 GB, free: 60.24 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001564/14.12, allocations: 352.5 kB / 3.894 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/14.12, allocations: 467.3 kB / 3.895 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/14.12, allocations: 0.9207 MB / 3.896 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/14.14, allocations: 1.648 MB / 3.897 GB, free: 59.37 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.503e-05/14.14, allocations: 5.875 kB / 3.897 GB, free: 59.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01689/14.15, allocations: 2.681 MB / 3.9 GB, free: 59.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001171/14.15, allocations: 5.403 MB / 3.905 GB, free: 53.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.693e-05/14.15, allocations: 17.53 kB / 3.905 GB, free: 53.65 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006218/14.16, allocations: 0.7148 MB / 3.906 GB, free: 53.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/14.16, allocations: 246.1 kB / 3.906 GB, free: 53.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004084/14.17, allocations: 1.629 MB / 3.908 GB, free: 53.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/14.17, allocations: 120.8 kB / 3.908 GB, free: 53.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/14.17, allocations: 67.3 kB / 3.908 GB, free: 53.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/14.17, allocations: 6.406 kB / 3.908 GB, free: 53.09 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01504/14.18, allocations: 2.33 MB / 3.91 GB, free: 53.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/14.18, allocations: 14.22 kB / 3.91 GB, free: 53.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/14.19, allocations: 331.9 kB / 3.91 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/14.19, allocations: 279.3 kB / 3.911 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/14.19, allocations: 1.036 MB / 3.912 GB, free: 52.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/14.19, allocations: 111.6 kB / 3.912 GB, free: 52.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/14.19, allocations: 67.05 kB / 3.912 GB, free: 52.51 MB / 0.5417 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005017/14.19, allocations: 171.7 kB / 3.912 GB, free: 52.4 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004092/14.2, allocations: 1.031 MB / 3.913 GB, free: 52.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/14.2, allocations: 110.8 kB / 3.913 GB, free: 52.23 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006393/14.2, allocations: 2.898 MB / 3.916 GB, free: 52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.135e-05/14.2, allocations: 38.72 kB / 3.916 GB, free: 51.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/14.2, allocations: 5.531 kB / 3.916 GB, free: 51.99 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/14.2, allocations: 3.562 kB / 3.916 GB, free: 51.99 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009078/14.21, allocations: 4.572 MB / 3.921 GB, free: 51.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/14.21, allocations: 0 / 3.921 GB, free: 51.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/14.21, allocations: 127.4 kB / 3.921 GB, free: 51.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008494/14.22, allocations: 1.528 MB / 3.922 GB, free: 51.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/14.22, allocations: 13.52 kB / 3.922 GB, free: 51.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003126/14.23, allocations: 2.267 MB / 3.924 GB, free: 50.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/14.23, allocations: 0 / 3.924 GB, free: 50.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008097/14.23, allocations: 3.314 MB / 3.928 GB, free: 49.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/14.24, allocations: 349.6 kB / 3.928 GB, free: 49.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004505/14.24, allocations: 5.375 kB / 3.928 GB, free: 49.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002166/14.24, allocations: 81.36 kB / 3.928 GB, free: 49.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/14.24, allocations: 67.12 kB / 3.928 GB, free: 49.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/14.24, allocations: 30.48 kB / 3.928 GB, free: 49.63 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001767/14.24, allocations: 0.6032 MB / 3.929 GB, free: 49.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.32e-07/14.24, allocations: 1.594 kB / 3.929 GB, free: 49.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01209/14.25, allocations: 1.923 MB / 3.931 GB, free: 49.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 1 * 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 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02681/14.28, allocations: 6.059 MB / 3.937 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008455/14.29, allocations: 2.095 MB / 3.939 GB, free: 48.05 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.577e-06/14.29, allocations: 0 / 3.939 GB, free: 48.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002479/14.29, allocations: 0.8096 MB / 3.939 GB, free: 48.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005306/14.3, allocations: 458.5 kB / 3.94 GB, free: 48.04 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/14.31, allocations: 3.171 MB / 3.943 GB, free: 47.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/14.31, allocations: 1.345 MB / 3.944 GB, free: 46.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004493/14.31, allocations: 1.195 MB / 3.945 GB, free: 46.65 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/14.32, allocations: 0.5468 MB / 3.946 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.082e-06/14.32, allocations: 0 / 3.946 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1908/14.51, allocations: 69.26 MB / 4.014 GB, free: 37.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002952/14.51, allocations: 191.5 kB / 4.014 GB, free: 37.65 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.204/20.71, allocations: 7.938 kB / 4.014 GB, free: 37.64 MB / 0.5417 GB