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 3.196/3.196, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.273e-05, allocations: 4 kB / 299.6 MB, free: 216 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4577/0.4578, allocations: 54.85 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.57/11.03, allocations: 2.663 GB / 3.009 GB, free: 84.54 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/11.03, allocations: 78.89 kB / 3.009 GB, free: 84.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857/14.89, allocations: 496.4 MB / 3.494 GB, free: 43.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.067e-06/14.89, allocations: 0 / 3.494 GB, free: 43.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001971/14.89, allocations: 45.03 kB / 3.494 GB, free: 43.54 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.01889/14.91, allocations: 2.989 MB / 3.497 GB, free: 42.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/14.91, allocations: 7.031 kB / 3.497 GB, free: 42.46 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001162/14.91, allocations: 213.6 kB / 3.497 GB, free: 42.42 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/14.92, allocations: 0.707 MB / 3.498 GB, free: 42.31 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008571/14.93, allocations: 1.57 MB / 3.499 GB, free: 41.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/14.93, allocations: 117 kB / 3.5 GB, free: 41.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009837/14.93, allocations: 109 kB / 3.5 GB, free: 41.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01006/14.94, allocations: 2.828 MB / 3.502 GB, free: 41.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009943/14.95, allocations: 2.883 MB / 3.505 GB, free: 41.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.771e-05/14.95, allocations: 7.344 kB / 3.505 GB, free: 41.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005053/14.95, allocations: 3.781 kB / 3.505 GB, free: 41.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003345/14.95, allocations: 168.2 kB / 3.505 GB, free: 41.5 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.6252/15.57, allocations: 140.5 MB / 3.643 GB, free: 33.87 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005587/15.58, allocations: 1.575 MB / 3.644 GB, free: 33.82 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003009/15.58, allocations: 0.9817 MB / 3.645 GB, free: 33.8 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07839/15.66, allocations: 16.73 MB / 3.662 GB, free: 19.37 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003787/15.67, allocations: 1.136 MB / 3.663 GB, free: 18.78 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 6.603e-06/15.67, allocations: 4 kB / 3.663 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.04323/15.71, allocations: 7.391 MB / 3.67 GB, free: 14.22 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002137/15.71, allocations: 222.9 kB / 3.67 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/15.71, allocations: 0.9197 MB / 3.671 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006932/15.71, allocations: 29.7 kB / 3.671 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001351/15.71, allocations: 0.8784 MB / 3.672 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001272/15.72, allocations: 0.5316 MB / 3.672 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/15.72, allocations: 4 kB / 3.672 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0005321/15.72, allocations: 450.8 kB / 3.673 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/15.72, allocations: 1.126 MB / 3.674 GB, free: 11.37 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004354/15.72, allocations: 1.669 MB / 3.676 GB, free: 10.11 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/15.74, allocations: 1.999 MB / 3.677 GB, free: 9.059 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.202e-05/15.74, allocations: 7.609 kB / 3.677 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02361/15.76, allocations: 4.442 MB / 3.682 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.4983/16.26, allocations: 6.265 MB / 3.688 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-05/16.26, allocations: 16.73 kB / 3.688 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02904/16.29, allocations: 2.745 MB / 3.691 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/16.29, allocations: 339.9 kB / 3.691 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01522/16.31, allocations: 4.232 MB / 3.695 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005948/16.32, allocations: 254 kB / 3.695 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007903/16.32, allocations: 105.3 kB / 3.695 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/16.32, allocations: 4 kB / 3.695 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02249/16.34, allocations: 3.874 MB / 3.699 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.97e-05/16.34, allocations: 14.47 kB / 3.699 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0201/16.36, allocations: 2.123 MB / 3.701 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003733/16.36, allocations: 368.5 kB / 3.702 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009154/16.37, allocations: 3.24 MB / 3.705 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005136/16.38, allocations: 235 kB / 3.705 GB, free: 117.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006824/16.38, allocations: 105.8 kB / 3.705 GB, free: 117.1 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.0009476/16.38, allocations: 161.6 kB / 3.705 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000658/16.38, allocations: 142.3 kB / 3.705 GB, free: 117 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01705/16.4, allocations: 5.642 MB / 3.711 GB, free: 116.6 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/16.4, allocations: 67.69 kB / 3.711 GB, free: 116.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/16.4, allocations: 2.625 kB / 3.711 GB, free: 116.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01391/16.41, allocations: 5.123 MB / 3.716 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/16.44, allocations: 8.4 MB / 3.724 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/16.44, allocations: 3.031 kB / 3.724 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004714/16.44, allocations: 398.1 kB / 3.725 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002493/16.44, allocations: 417.4 kB / 3.725 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000587/16.44, allocations: 38.97 kB / 3.725 GB, free: 115.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003124/16.45, allocations: 3.351 MB / 3.728 GB, free: 112.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/16.45, allocations: 3.312 kB / 3.728 GB, free: 112.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02402/16.47, allocations: 6.244 MB / 3.734 GB, free: 112.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00302/16.47, allocations: 0.5715 MB / 3.735 GB, free: 112 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008969/16.47, allocations: 16.77 kB / 3.735 GB, free: 112 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00524/16.48, allocations: 168.2 kB / 3.735 GB, free: 112 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/16.48, allocations: 172 kB / 3.735 GB, free: 112 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004331/16.48, allocations: 63.02 kB / 3.735 GB, free: 112 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002399/16.48, allocations: 0.6602 MB / 3.736 GB, free: 111.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.363e-06/16.48, allocations: 0 / 3.736 GB, free: 111.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01717/16.5, allocations: 2.179 MB / 3.738 GB, free: 111.9 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.04438/16.55, allocations: 8.922 MB / 3.747 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01914/16.56, allocations: 4.837 MB / 3.752 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/16.56, allocations: 2.594 kB / 3.752 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007781/16.57, allocations: 2.076 MB / 3.754 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008266/16.58, allocations: 0.5638 MB / 3.754 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02598/16.61, allocations: 6.099 MB / 3.76 GB, free: 109.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/16.61, allocations: 1.916 MB / 3.762 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009203/16.62, allocations: 1.691 MB / 3.764 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003375/16.62, allocations: 0.974 MB / 3.765 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of SimCode: time 1.893e-06/16.62, allocations: 0 / 3.765 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.313/16.94, allocations: 95.25 MB / 3.858 GB, free: 73.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003684/16.94, allocations: 196.6 kB / 3.858 GB, free: 72.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.26/26.2, allocations: 4 kB / 3.858 GB, free: 72.94 MB / 0.5573 GB