Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestOverdeterminedInitial_DynamicPipeLumpedPressureInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.872/1.872, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.148e-05, allocations: 0 / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.636/7.74, allocations: 2.553 GB / 2.868 GB, free: 2.902 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/7.74, allocations: 79.14 kB / 2.868 GB, free: 2.863 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.592/10.33, allocations: 483.2 MB / 3.339 GB, free: 51.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.224e-06/10.33, allocations: 0 / 3.339 GB, free: 51.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001464/10.33, allocations: 34.42 kB / 3.339 GB, free: 51.13 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01436/10.35, allocations: 2.825 MB / 3.342 GB, free: 49.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/10.35, allocations: 14.31 kB / 3.342 GB, free: 49.89 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001096/10.35, allocations: 210.1 kB / 3.342 GB, free: 49.76 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006578/10.35, allocations: 0.5647 MB / 3.343 GB, free: 49.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006059/10.36, allocations: 1.476 MB / 3.344 GB, free: 48.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002819/10.36, allocations: 133.4 kB / 3.345 GB, free: 48.91 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008101/10.36, allocations: 143.5 kB / 3.345 GB, free: 48.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009055/10.37, allocations: 2.678 MB / 3.347 GB, free: 47.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.13e-05/10.37, allocations: 11.78 kB / 3.347 GB, free: 47.72 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/10.37, allocations: 64.88 kB / 3.347 GB, free: 47.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000203/10.37, allocations: 109.3 kB / 3.348 GB, free: 47.66 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008969/10.38, allocations: 2.497 MB / 3.35 GB, free: 46.92 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.0222/10.4, allocations: 10.92 MB / 3.361 GB, free: 38.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006271/10.41, allocations: 1.747 MB / 3.362 GB, free: 38.15 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/10.41, allocations: 0.8449 MB / 3.363 GB, free: 37.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5667/10.98, allocations: 61.96 MB / 3.424 GB, free: 43.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005195/10.98, allocations: 1.388 MB / 3.425 GB, free: 43.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 5.591e-06/10.98, allocations: 0 / 3.425 GB, free: 43.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.02382/11.01, allocations: 6.975 MB / 3.432 GB, free: 42.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/11.01, allocations: 285.7 kB / 3.432 GB, free: 42.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001988/11.01, allocations: 0.8836 MB / 3.433 GB, free: 42.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003416/11.01, allocations: 52.58 kB / 3.433 GB, free: 42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006205/11.01, allocations: 0.6727 MB / 3.434 GB, free: 41.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006089/11.01, allocations: 0.521 MB / 3.434 GB, free: 41.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/11.01, allocations: 34.56 kB / 3.434 GB, free: 41.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/11.01, allocations: 386.2 kB / 3.435 GB, free: 41.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00209/11.01, allocations: 0.8821 MB / 3.435 GB, free: 41.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002297/11.02, allocations: 1.369 MB / 3.437 GB, free: 40.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.052/18.07, allocations: 0.5686 GB / 4.005 GB, free: 77.24 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.659e-05/18.07, allocations: 4.859 kB / 4.005 GB, free: 77.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007946/18.07, allocations: 2.999 MB / 4.008 GB, free: 75.63 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001318/18.08, allocations: 5.659 MB / 4.014 GB, free: 69.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.073e-05/18.08, allocations: 17.31 kB / 4.014 GB, free: 69.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0187/18.1, allocations: 2.382 MB / 4.016 GB, free: 68.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/18.1, allocations: 288 kB / 4.016 GB, free: 67.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/18.1, allocations: 3.01 MB / 4.019 GB, free: 66.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003352/18.11, allocations: 217.3 kB / 4.02 GB, free: 66.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003829/18.11, allocations: 91.55 kB / 4.02 GB, free: 66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/18.11, allocations: 5.594 kB / 4.02 GB, free: 66 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007529/18.11, allocations: 2.881 MB / 4.023 GB, free: 64.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.655e-05/18.11, allocations: 16 kB / 4.023 GB, free: 64.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0112/18.13, allocations: 1.767 MB / 4.024 GB, free: 63.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/18.13, allocations: 296.7 kB / 4.025 GB, free: 63.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/18.13, allocations: 2.751 MB / 4.027 GB, free: 61.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002839/18.14, allocations: 211 kB / 4.027 GB, free: 61.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003027/18.14, allocations: 85.92 kB / 4.028 GB, free: 61.35 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 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].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 (146): * Single equations (assignments): 145 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.0007351/18.14, allocations: 232.8 kB / 4.028 GB, free: 61.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005376/18.14, allocations: 138.8 kB / 4.028 GB, free: 61.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/18.15, allocations: 5.729 MB / 4.033 GB, free: 58.22 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-05/18.15, allocations: 57.47 kB / 4.034 GB, free: 58.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/18.15, allocations: 7.75 kB / 4.034 GB, free: 58.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007468/18.16, allocations: 4.644 MB / 4.038 GB, free: 55.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/18.17, allocations: 7.979 MB / 4.046 GB, free: 51.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/18.17, allocations: 3.656 kB / 4.046 GB, free: 51.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/18.18, allocations: 254.9 kB / 4.046 GB, free: 51.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007214/18.18, allocations: 1.225 MB / 4.047 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004137/18.18, allocations: 56.61 kB / 4.047 GB, free: 50.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/18.19, allocations: 2.176 MB / 4.049 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/18.19, allocations: 3.656 kB / 4.049 GB, free: 49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/18.2, allocations: 5.417 MB / 4.055 GB, free: 45.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/18.2, allocations: 0.6152 MB / 4.055 GB, free: 45.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005298/18.2, allocations: 50.48 kB / 4.055 GB, free: 45.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002573/18.2, allocations: 170.4 kB / 4.056 GB, free: 45 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004642/18.2, allocations: 147.7 kB / 4.056 GB, free: 44.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/18.2, allocations: 56.03 kB / 4.056 GB, free: 44.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001923/18.2, allocations: 0.9484 MB / 4.057 GB, free: 44.14 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/18.2, allocations: 2.188 kB / 4.057 GB, free: 44.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0107/18.22, allocations: 2.115 MB / 4.059 GB, free: 42.42 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].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 (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.02314/18.24, allocations: 8.474 MB / 4.067 GB, free: 36.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01032/18.25, allocations: 3.92 MB / 4.071 GB, free: 33.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/18.25, allocations: 2.156 kB / 4.071 GB, free: 33.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004121/18.25, allocations: 1.786 MB / 4.073 GB, free: 31.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006196/18.26, allocations: 0.6662 MB / 4.073 GB, free: 30.78 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5411/18.8, allocations: 59.57 MB / 4.131 GB, free: 74.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/18.8, allocations: 1.732 MB / 4.133 GB, free: 73.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/18.8, allocations: 0.8366 MB / 4.134 GB, free: 73.72 MB / 490.7 MB Notification: Performance of SimCode: time 1.363e-06/18.8, allocations: 4 kB / 4.134 GB, free: 73.71 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.175/22.98, allocations: 67.03 MB / 4.199 GB, free: 68.23 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization_res.mat does not exist to compare? outputFormat=mat