Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.304/2.304, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.896e-05/3.901e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4113, allocations: 54.86 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.812/8.224, allocations: 2.664 GB / 3.015 GB, free: 93.93 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/8.224, allocations: 78.08 kB / 3.015 GB, free: 93.89 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.918/11.14, allocations: 0.489 GB / 3.504 GB, free: 38.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.974e-06/11.14, allocations: 1.562 kB / 3.504 GB, free: 38.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002057/11.14, allocations: 42.2 kB / 3.504 GB, free: 38.21 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.01706/11.16, allocations: 2.989 MB / 3.507 GB, free: 37.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/11.16, allocations: 14.03 kB / 3.507 GB, free: 37.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001602/11.16, allocations: 283.4 kB / 3.507 GB, free: 37.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008114/11.17, allocations: 0.703 MB / 3.508 GB, free: 37.01 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007646/11.18, allocations: 1.578 MB / 3.51 GB, free: 36.65 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004094/11.18, allocations: 166.6 kB / 3.51 GB, free: 36.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/11.18, allocations: 184.9 kB / 3.51 GB, free: 36.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/11.19, allocations: 3.502 MB / 3.513 GB, free: 36.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-05/11.19, allocations: 9.875 kB / 3.513 GB, free: 36.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005793/11.19, allocations: 76.03 kB / 3.514 GB, free: 36.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002486/11.19, allocations: 169.4 kB / 3.514 GB, free: 36.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/11.2, allocations: 3.296 MB / 3.517 GB, free: 36.19 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.03087/11.24, allocations: 14.13 MB / 3.531 GB, free: 28.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007535/11.24, allocations: 2.131 MB / 3.533 GB, free: 28.32 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/11.25, allocations: 1.074 MB / 3.534 GB, free: 28.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2096/11.46, allocations: 63.65 MB / 3.596 GB, free: 20.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006008/11.46, allocations: 1.688 MB / 3.598 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 5.971e-06/11.46, allocations: 0 / 3.598 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02952/11.49, allocations: 8.152 MB / 3.606 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001718/11.49, allocations: 279.3 kB / 3.606 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002555/11.49, allocations: 1.173 MB / 3.607 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006131/11.49, allocations: 57.17 kB / 3.607 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008825/11.5, allocations: 0.8158 MB / 3.608 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/11.5, allocations: 0.6082 MB / 3.608 GB, free: 17.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/11.5, allocations: 39.25 kB / 3.608 GB, free: 17.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002379/11.5, allocations: 394.8 kB / 3.609 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/11.5, allocations: 1.147 MB / 3.61 GB, free: 17.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003575/11.5, allocations: 1.681 MB / 3.612 GB, free: 16.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003591/11.51, allocations: 1.381 MB / 3.613 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/11.51, allocations: 3.938 kB / 3.613 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01051/11.52, allocations: 3.858 MB / 3.617 GB, free: 16.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002905/11.52, allocations: 6.273 MB / 3.623 GB, free: 25.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.816e-05/11.52, allocations: 20.56 kB / 3.623 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02555/11.55, allocations: 3.427 MB / 3.626 GB, free: 25.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/11.55, allocations: 332.8 kB / 3.627 GB, free: 25.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009323/11.56, allocations: 3.812 MB / 3.63 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/11.56, allocations: 274.1 kB / 3.631 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000582/11.56, allocations: 105 kB / 3.631 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/11.56, allocations: 8.078 kB / 3.631 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01011/11.57, allocations: 3.535 MB / 3.634 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.943e-05/11.57, allocations: 18.7 kB / 3.634 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/11.59, allocations: 2.177 MB / 3.636 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/11.59, allocations: 371.8 kB / 3.637 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006354/11.6, allocations: 3.095 MB / 3.64 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/11.6, allocations: 267.5 kB / 3.64 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005597/11.6, allocations: 101 kB / 3.64 GB, free: 24.52 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.0008812/11.6, allocations: 228.5 kB / 3.64 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005588/11.6, allocations: 174.8 kB / 3.64 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/11.62, allocations: 6.755 MB / 3.647 GB, free: 22.94 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.075e-05/11.62, allocations: 72.69 kB / 3.647 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/11.62, allocations: 0 / 3.647 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01005/11.63, allocations: 5.446 MB / 3.652 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01931/11.65, allocations: 9.471 MB / 3.662 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/11.65, allocations: 4 kB / 3.662 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003776/11.65, allocations: 441.8 kB / 3.662 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/11.65, allocations: 442.8 kB / 3.662 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005153/11.65, allocations: 62.41 kB / 3.662 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/11.66, allocations: 3.21 MB / 3.666 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/11.66, allocations: 11.69 kB / 3.666 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/11.67, allocations: 6.738 MB / 3.672 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002664/11.67, allocations: 0.7767 MB / 3.673 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008224/11.67, allocations: 55.03 kB / 3.673 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003461/11.68, allocations: 211.4 kB / 3.673 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006951/11.68, allocations: 183.7 kB / 3.673 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/11.68, allocations: 70.78 kB / 3.673 GB, free: 2.945 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003183/11.68, allocations: 1.219 MB / 3.675 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.22e-07/11.68, allocations: 0 / 3.675 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01727/11.7, allocations: 2.578 MB / 3.677 GB, free: 0 / 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.4091/12.11, allocations: 9.552 MB / 3.687 GB, free: 81.25 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01589/12.12, allocations: 5.01 MB / 3.691 GB, free: 81.18 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/12.12, allocations: 0.8125 kB / 3.691 GB, free: 81.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006582/12.13, allocations: 2.255 MB / 3.694 GB, free: 81.17 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007881/12.14, allocations: 0.7869 MB / 3.694 GB, free: 81.15 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/12.16, allocations: 6.884 MB / 3.701 GB, free: 80.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002349/12.16, allocations: 2.047 MB / 3.703 GB, free: 79.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002781/12.17, allocations: 1.157 MB / 3.704 GB, free: 79.32 MB / 0.5261 GB Notification: Performance of SimCode: time 1.723e-06/12.17, allocations: 0 / 3.704 GB, free: 79.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.653/16.82, allocations: 99.8 MB / 3.802 GB, free: 70.43 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat