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 3.14/3.14, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.888e-05, allocations: 0 / 299.6 MB, free: 216 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.441/0.441, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.982/10.42, allocations: 2.652 GB / 2.998 GB, free: 96.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004078/10.42, allocations: 77.02 kB / 2.998 GB, free: 96.25 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.167/15.59, allocations: 0.7346 GB / 3.732 GB, free: 41.02 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.615e-06/15.59, allocations: 0 / 3.732 GB, free: 41.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001968/15.59, allocations: 30.94 kB / 3.732 GB, free: 41.01 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.01624/15.61, allocations: 2.755 MB / 3.735 GB, free: 39.66 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/15.61, allocations: 11.62 kB / 3.735 GB, free: 39.66 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006609/15.61, allocations: 121.5 kB / 3.735 GB, free: 39.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007235/15.62, allocations: 476.5 kB / 3.736 GB, free: 39.55 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005776/15.62, allocations: 1.119 MB / 3.737 GB, free: 39.22 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/15.62, allocations: 121.9 kB / 3.737 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006385/15.62, allocations: 52.72 kB / 3.737 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005855/15.63, allocations: 1.335 MB / 3.738 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005888/15.63, allocations: 1.461 MB / 3.74 GB, free: 38.81 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.029e-05/15.63, allocations: 9.625 kB / 3.74 GB, free: 38.81 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/15.63, allocations: 7.25 kB / 3.74 GB, free: 38.81 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002476/15.64, allocations: 77.36 kB / 3.74 GB, free: 38.8 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 1.258/16.89, allocations: 135.2 MB / 3.872 GB, free: 74.34 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004208/16.9, allocations: 0.9314 MB / 3.873 GB, free: 74.12 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/16.9, allocations: 371.2 kB / 3.873 GB, free: 74.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1041/17, allocations: 16.69 MB / 3.889 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002896/17.01, allocations: 0.4986 MB / 3.89 GB, free: 63.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=66): time 1.005e-05/17.01, allocations: 0 / 3.89 GB, free: 63.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70): time 0.03637/17.04, allocations: 3.108 MB / 3.893 GB, free: 63.15 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000224/17.04, allocations: 345 kB / 3.893 GB, free: 62.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/17.05, allocations: 0.842 MB / 3.894 GB, free: 62.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004362/17.05, allocations: 30.42 kB / 3.894 GB, free: 62.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001499/17.05, allocations: 0.6194 MB / 3.895 GB, free: 62.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008167/17.05, allocations: 246.1 kB / 3.895 GB, free: 62.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003009/17.05, allocations: 3.062 kB / 3.895 GB, free: 62.18 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002364/17.05, allocations: 352.9 kB / 3.895 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/17.05, allocations: 468.8 kB / 3.896 GB, free: 61.88 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/17.06, allocations: 0.923 MB / 3.897 GB, free: 61.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/17.08, allocations: 1.647 MB / 3.898 GB, free: 61.31 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-05/17.08, allocations: 3.562 kB / 3.898 GB, free: 61.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.02932/17.11, allocations: 2.688 MB / 3.901 GB, free: 61.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0108/17.12, allocations: 5.399 MB / 3.906 GB, free: 55.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/17.12, allocations: 19.47 kB / 3.906 GB, free: 55.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03062/17.15, allocations: 0.7063 MB / 3.907 GB, free: 55.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01908/17.17, allocations: 245.2 kB / 3.907 GB, free: 55.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/17.18, allocations: 1.62 MB / 3.909 GB, free: 55.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005927/17.19, allocations: 130.6 kB / 3.909 GB, free: 55.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006266/17.19, allocations: 64.72 kB / 3.909 GB, free: 55.03 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/17.19, allocations: 5.906 kB / 3.909 GB, free: 55.03 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02639/17.22, allocations: 2.343 MB / 3.911 GB, free: 55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.45e-05/17.22, allocations: 15.5 kB / 3.911 GB, free: 55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003573/17.22, allocations: 331.8 kB / 3.912 GB, free: 54.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/17.22, allocations: 277.5 kB / 3.912 GB, free: 54.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/17.23, allocations: 1.037 MB / 3.913 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003892/17.23, allocations: 108.1 kB / 3.913 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004897/17.23, allocations: 68.84 kB / 3.913 GB, free: 54.45 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.0008156/17.23, allocations: 156.7 kB / 3.913 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005615/17.23, allocations: 119.3 kB / 3.913 GB, free: 54.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/17.24, allocations: 2.891 MB / 3.916 GB, free: 54.05 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.309e-05/17.24, allocations: 35.3 kB / 3.916 GB, free: 54.05 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/17.24, allocations: 3.688 kB / 3.916 GB, free: 54.05 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-05/17.24, allocations: 10.03 kB / 3.916 GB, free: 54.05 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/17.26, allocations: 4.569 MB / 3.921 GB, free: 53.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/17.26, allocations: 7.656 kB / 3.921 GB, free: 53.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/17.26, allocations: 128.6 kB / 3.921 GB, free: 53.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01411/17.27, allocations: 1.528 MB / 3.922 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/17.27, allocations: 18.42 kB / 3.922 GB, free: 53.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004871/17.28, allocations: 2.258 MB / 3.924 GB, free: 52.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/17.28, allocations: 7.141 kB / 3.924 GB, free: 52.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/17.29, allocations: 3.311 MB / 3.928 GB, free: 51.86 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/17.29, allocations: 349 kB / 3.928 GB, free: 51.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006092/17.29, allocations: 6.406 kB / 3.928 GB, free: 51.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0028/17.29, allocations: 76.41 kB / 3.928 GB, free: 51.69 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/17.3, allocations: 60.91 kB / 3.928 GB, free: 51.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/17.3, allocations: 33.16 kB / 3.928 GB, free: 51.69 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001957/17.3, allocations: 0.6038 MB / 3.929 GB, free: 51.58 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.503e-06/17.3, allocations: 0 / 3.929 GB, free: 51.58 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01211/17.31, allocations: 1.917 MB / 3.931 GB, free: 51.52 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.03275/17.34, allocations: 6.068 MB / 3.937 GB, free: 50.17 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01201/17.35, allocations: 2.087 MB / 3.939 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/17.35, allocations: 5.156 kB / 3.939 GB, free: 50.13 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003657/17.36, allocations: 0.8112 MB / 3.939 GB, free: 50.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008782/17.37, allocations: 458.9 kB / 3.94 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02184/17.39, allocations: 3.181 MB / 3.943 GB, free: 49.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002378/17.39, allocations: 1.347 MB / 3.944 GB, free: 48.72 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009029/17.4, allocations: 1.197 MB / 3.945 GB, free: 48.71 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002282/17.4, allocations: 0.5403 MB / 3.946 GB, free: 48.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.024e-06/17.4, allocations: 3.5 kB / 3.946 GB, free: 48.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.351/17.75, allocations: 71.01 MB / 4.015 GB, free: 38.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002986/17.75, allocations: 195.5 kB / 4.015 GB, free: 38.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.76/25.51, allocations: 0 / 4.015 GB, free: 38.45 MB / 0.5417 GB