Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeInitialValues,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestOverdeterminedInitial_DynamicPipeInitialValues",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.641e-05/3.647e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.554/7.658, allocations: 2.553 GB / 2.868 GB, free: 2.988 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/7.659, allocations: 78.08 kB / 2.868 GB, free: 2.949 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595/10.25, allocations: 486.8 MB / 3.343 GB, free: 49.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.526e-06/10.25, allocations: 2.688 kB / 3.343 GB, free: 49.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000216/10.25, allocations: 44.66 kB / 3.343 GB, free: 49.56 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.01459/10.27, allocations: 2.849 MB / 3.346 GB, free: 48.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/10.27, allocations: 9.562 kB / 3.346 GB, free: 48.21 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001037/10.27, allocations: 258 kB / 3.346 GB, free: 48.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007283/10.28, allocations: 0.6521 MB / 3.347 GB, free: 47.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005992/10.28, allocations: 1.508 MB / 3.348 GB, free: 47.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002856/10.28, allocations: 165.4 kB / 3.348 GB, free: 47.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008901/10.28, allocations: 169 kB / 3.349 GB, free: 47.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/10.29, allocations: 3.283 MB / 3.352 GB, free: 45.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-05/10.29, allocations: 7.844 kB / 3.352 GB, free: 45.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003693/10.29, allocations: 70.38 kB / 3.352 GB, free: 45.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/10.3, allocations: 156 kB / 3.352 GB, free: 45.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/10.31, allocations: 3.067 MB / 3.355 GB, free: 44.6 MB / 458.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.02739/10.33, allocations: 13.35 MB / 3.368 GB, free: 34.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006926/10.34, allocations: 2.053 MB / 3.37 GB, free: 34.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00243/10.34, allocations: 0.9985 MB / 3.371 GB, free: 33.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5767/10.92, allocations: 61.93 MB / 3.431 GB, free: 38.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005761/10.92, allocations: 1.598 MB / 3.433 GB, free: 38.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=143): time 5.49e-06/10.93, allocations: 0 / 3.433 GB, free: 38.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=163): time 0.03637/10.96, allocations: 9.173 MB / 3.442 GB, free: 37.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/10.96, allocations: 334.1 kB / 3.442 GB, free: 36.72 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/10.96, allocations: 1.094 MB / 3.443 GB, free: 36.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005175/10.96, allocations: 56.61 kB / 3.443 GB, free: 36.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006559/10.97, allocations: 0.792 MB / 3.444 GB, free: 36.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006674/10.97, allocations: 0.5679 MB / 3.445 GB, free: 35.87 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/10.97, allocations: 42.06 kB / 3.445 GB, free: 35.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/10.97, allocations: 389.6 kB / 3.445 GB, free: 35.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/10.97, allocations: 1.055 MB / 3.446 GB, free: 35.55 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002722/10.97, allocations: 1.606 MB / 3.448 GB, free: 34.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.719/19.69, allocations: 0.7373 GB / 4.185 GB, free: 73.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.006e-05/19.69, allocations: 8 kB / 4.185 GB, free: 73.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00911/19.7, allocations: 3.078 MB / 4.188 GB, free: 72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001544/19.7, allocations: 6.535 MB / 4.194 GB, free: 65.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.445e-05/19.7, allocations: 16 kB / 4.194 GB, free: 65.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002371/19.7, allocations: 443 kB / 4.195 GB, free: 64.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004355/19.71, allocations: 0.515 MB / 4.195 GB, free: 64.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/19.71, allocations: 3.307 MB / 4.199 GB, free: 61.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003961/19.72, allocations: 253.9 kB / 4.199 GB, free: 61.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004663/19.72, allocations: 97.81 kB / 4.199 GB, free: 61.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/19.72, allocations: 4 kB / 4.199 GB, free: 61.22 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007984/19.72, allocations: 2.888 MB / 4.202 GB, free: 59.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.874e-05/19.72, allocations: 16 kB / 4.202 GB, free: 59.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/19.73, allocations: 421.7 kB / 4.202 GB, free: 59.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004189/19.73, allocations: 0.5099 MB / 4.203 GB, free: 59.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/19.73, allocations: 3.307 MB / 4.206 GB, free: 56.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00318/19.74, allocations: 249.7 kB / 4.206 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004443/19.74, allocations: 99.7 kB / 4.206 GB, free: 55.81 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: pipe.mediums[1].p = 10000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 16 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,pipe.state_a.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (244): * Single equations (assignments): 239 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 8,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000937/19.74, allocations: 245.3 kB / 4.207 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005582/19.74, allocations: 153.7 kB / 4.207 GB, free: 55.59 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01365/19.75, allocations: 6.532 MB / 4.213 GB, free: 52.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.815e-05/19.75, allocations: 75.11 kB / 4.213 GB, free: 52.22 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/19.75, allocations: 4 kB / 4.213 GB, free: 52.21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00893/19.76, allocations: 5.13 MB / 4.218 GB, free: 49.18 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/19.78, allocations: 8.987 MB / 4.227 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-05/19.78, allocations: 0 / 4.227 GB, free: 44.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003298/19.78, allocations: 400.6 kB / 4.227 GB, free: 44.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003002/19.79, allocations: 0.5357 MB / 4.228 GB, free: 44.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005118/19.79, allocations: 63.02 kB / 4.228 GB, free: 44.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002613/19.79, allocations: 3.396 MB / 4.231 GB, free: 40.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/19.79, allocations: 0 / 4.231 GB, free: 40.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01261/19.8, allocations: 6.436 MB / 4.237 GB, free: 36.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002335/19.8, allocations: 0.7679 MB / 4.238 GB, free: 36.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007979/19.8, allocations: 51 kB / 4.238 GB, free: 36.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003205/19.81, allocations: 197 kB / 4.238 GB, free: 35.86 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006887/19.81, allocations: 167.2 kB / 4.239 GB, free: 35.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/19.81, allocations: 64.67 kB / 4.239 GB, free: 35.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002424/19.81, allocations: 1.172 MB / 4.24 GB, free: 34.83 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.62e-07/19.81, allocations: 0 / 4.24 GB, free: 34.83 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01103/19.82, allocations: 2.279 MB / 4.242 GB, free: 32.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (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: 36 ($cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.region3boundary,$cse16.region3boundary,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition1,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].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 (180): * Single equations (assignments): 156 * 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 {2 8,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02524/19.85, allocations: 9.365 MB / 4.251 GB, free: 26.16 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01232/19.86, allocations: 4.644 MB / 4.256 GB, free: 22.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/19.86, allocations: 0 / 4.256 GB, free: 22.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00512/19.86, allocations: 2.129 MB / 4.258 GB, free: 20.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006566/19.87, allocations: 0.7381 MB / 4.259 GB, free: 19.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6677/20.54, allocations: 90.77 MB / 4.347 GB, free: 71.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/20.54, allocations: 1.998 MB / 4.349 GB, free: 70.33 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002469/20.54, allocations: 1.082 MB / 4.35 GB, free: 70.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/20.54, allocations: 0 / 4.35 GB, free: 70.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.004/25.55, allocations: 117.7 MB / 4.465 GB, free: 73.32 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeInitialValues_res.mat does not exist to compare? outputFormat=mat