Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.594/2.594, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.322e-05/4.327e-05, allocations: 4 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4285/0.4286, allocations: 54.85 MB / 359.9 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.227/8.656, allocations: 2.664 GB / 3.015 GB, free: 96.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/8.656, allocations: 77.03 kB / 3.015 GB, free: 96.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.028/11.68, allocations: 0.489 GB / 3.504 GB, free: 38.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.154e-06/11.68, allocations: 3.219 kB / 3.504 GB, free: 38.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001979/11.68, allocations: 44.42 kB / 3.504 GB, free: 38.07 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.01684/11.7, allocations: 2.985 MB / 3.507 GB, free: 37.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/11.7, allocations: 12.75 kB / 3.507 GB, free: 37.05 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001303/11.7, allocations: 280.2 kB / 3.507 GB, free: 37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008282/11.71, allocations: 0.7047 MB / 3.508 GB, free: 36.89 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007054/11.72, allocations: 1.572 MB / 3.51 GB, free: 36.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003414/11.72, allocations: 172.8 kB / 3.51 GB, free: 36.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/11.72, allocations: 176.7 kB / 3.51 GB, free: 36.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01137/11.73, allocations: 3.509 MB / 3.513 GB, free: 36.09 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.831e-05/11.73, allocations: 12.42 kB / 3.513 GB, free: 36.09 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004335/11.73, allocations: 73.27 kB / 3.514 GB, free: 36.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002558/11.73, allocations: 173.1 kB / 3.514 GB, free: 36.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/11.74, allocations: 3.298 MB / 3.517 GB, free: 36.08 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.03153/11.77, allocations: 14.13 MB / 3.531 GB, free: 28.33 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007149/11.78, allocations: 2.134 MB / 3.533 GB, free: 28.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002641/11.78, allocations: 1.075 MB / 3.534 GB, free: 28.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2075/11.99, allocations: 63.65 MB / 3.596 GB, free: 20.71 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006094/12, allocations: 1.682 MB / 3.598 GB, free: 20.58 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 6.483e-06/12, allocations: 4 kB / 3.598 GB, free: 20.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02941/12.03, allocations: 8.145 MB / 3.606 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/12.03, allocations: 286.3 kB / 3.606 GB, free: 18.64 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/12.03, allocations: 1.179 MB / 3.607 GB, free: 18.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006731/12.03, allocations: 57.83 kB / 3.607 GB, free: 18.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/12.03, allocations: 0.8242 MB / 3.608 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001091/12.03, allocations: 0.6055 MB / 3.608 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002962/12.03, allocations: 39.34 kB / 3.609 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000251/12.03, allocations: 392.9 kB / 3.609 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003064/12.04, allocations: 1.146 MB / 3.61 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003663/12.04, allocations: 1.68 MB / 3.612 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003679/12.04, allocations: 1.373 MB / 3.613 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.536e-05/12.04, allocations: 6.531 kB / 3.613 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01127/12.06, allocations: 3.936 MB / 3.617 GB, free: 16.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003087/12.06, allocations: 6.272 MB / 3.623 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.794e-05/12.06, allocations: 21.09 kB / 3.623 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02589/12.08, allocations: 3.422 MB / 3.626 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002507/12.09, allocations: 341.2 kB / 3.627 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009473/12.1, allocations: 3.816 MB / 3.63 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004631/12.1, allocations: 278.1 kB / 3.631 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006972/12.1, allocations: 109.8 kB / 3.631 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/12.1, allocations: 7.219 kB / 3.631 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01033/12.11, allocations: 3.531 MB / 3.634 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.119e-05/12.11, allocations: 15.75 kB / 3.634 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01472/12.13, allocations: 2.249 MB / 3.636 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/12.13, allocations: 370.4 kB / 3.637 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/12.14, allocations: 3.104 MB / 3.64 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004124/12.14, allocations: 263.3 kB / 3.64 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005819/12.14, allocations: 102 kB / 3.64 GB, free: 24.42 MB / 0.5261 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.0008673/12.14, allocations: 224.5 kB / 3.64 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005416/12.14, allocations: 172.2 kB / 3.641 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0134/12.16, allocations: 6.764 MB / 3.647 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.504e-05/12.16, allocations: 72.55 kB / 3.647 GB, free: 23.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/12.16, allocations: 4.625 kB / 3.647 GB, free: 23.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0101/12.17, allocations: 5.446 MB / 3.653 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02061/12.19, allocations: 9.458 MB / 3.662 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.628e-05/12.19, allocations: 4 kB / 3.662 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003862/12.19, allocations: 443.9 kB / 3.662 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00253/12.19, allocations: 438.3 kB / 3.663 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000633/12.19, allocations: 63.11 kB / 3.663 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002867/12.2, allocations: 3.209 MB / 3.666 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/12.2, allocations: 6.188 kB / 3.666 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/12.21, allocations: 6.741 MB / 3.672 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002758/12.22, allocations: 0.7733 MB / 3.673 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009856/12.22, allocations: 46.91 kB / 3.673 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003939/12.22, allocations: 211.9 kB / 3.673 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008531/12.22, allocations: 187.6 kB / 3.674 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/12.22, allocations: 69.94 kB / 3.674 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003153/12.23, allocations: 1.223 MB / 3.675 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.02e-07/12.23, allocations: 0 / 3.675 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.4028/12.63, allocations: 2.369 MB / 3.677 GB, free: 81.93 MB / 0.5261 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.03197/12.66, allocations: 9.558 MB / 3.686 GB, free: 80.63 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01622/12.68, allocations: 5.045 MB / 3.691 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/12.68, allocations: 0 / 3.691 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006395/12.68, allocations: 2.267 MB / 3.694 GB, free: 80.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007559/12.69, allocations: 0.7806 MB / 3.694 GB, free: 80.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02209/12.71, allocations: 6.813 MB / 3.701 GB, free: 79.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001956/12.71, allocations: 2.055 MB / 3.703 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006864/12.72, allocations: 1.613 MB / 3.705 GB, free: 78.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002635/12.72, allocations: 1.128 MB / 3.706 GB, free: 78.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/12.72, allocations: 2.844 kB / 3.706 GB, free: 78.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3049/13.03, allocations: 111.9 MB / 3.815 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002778/13.03, allocations: 239.3 kB / 3.815 GB, free: 58.64 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.668/20.7, allocations: 2.812 kB / 3.815 GB, free: 58.64 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat