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.916/1.916, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.083e-05/4.101e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.713/7.825, allocations: 2.553 GB / 2.868 GB, free: 4.758 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/7.825, allocations: 83 kB / 2.868 GB, free: 4.715 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.658/10.48, allocations: 483.2 MB / 3.339 GB, free: 33.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.144e-06/10.48, allocations: 0 / 3.339 GB, free: 33.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001446/10.48, allocations: 35.2 kB / 3.339 GB, free: 33.82 MB / 442.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.01486/10.5, allocations: 2.823 MB / 3.342 GB, free: 31.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/10.5, allocations: 12.03 kB / 3.342 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009622/10.5, allocations: 209.6 kB / 3.342 GB, free: 31.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006605/10.51, allocations: 0.5639 MB / 3.343 GB, free: 30.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006101/10.51, allocations: 1.484 MB / 3.344 GB, free: 29.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002715/10.51, allocations: 137.9 kB / 3.345 GB, free: 29.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007103/10.51, allocations: 142.8 kB / 3.345 GB, free: 29.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008596/10.52, allocations: 2.691 MB / 3.347 GB, free: 26.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.568e-05/10.52, allocations: 7.938 kB / 3.347 GB, free: 26.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003415/10.52, allocations: 58.81 kB / 3.347 GB, free: 26.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/10.52, allocations: 121.3 kB / 3.347 GB, free: 26.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008739/10.53, allocations: 2.513 MB / 3.35 GB, free: 24.62 MB / 442.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.02117/10.55, allocations: 10.92 MB / 3.361 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006025/10.56, allocations: 1.763 MB / 3.362 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/10.56, allocations: 0.8512 MB / 3.363 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5735/11.13, allocations: 61.92 MB / 3.424 GB, free: 36.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00478/11.14, allocations: 1.394 MB / 3.425 GB, free: 36.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 4.498e-06/11.14, allocations: 3.609 kB / 3.425 GB, free: 36.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.02341/11.16, allocations: 6.986 MB / 3.432 GB, free: 35.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/11.16, allocations: 276 kB / 3.432 GB, free: 35.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00175/11.16, allocations: 0.8908 MB / 3.433 GB, free: 35.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003029/11.16, allocations: 52.05 kB / 3.433 GB, free: 34.99 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005604/11.17, allocations: 0.6676 MB / 3.434 GB, free: 34.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005844/11.17, allocations: 0.5183 MB / 3.434 GB, free: 34.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/11.17, allocations: 39.34 kB / 3.434 GB, free: 34.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/11.17, allocations: 384.9 kB / 3.435 GB, free: 34.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/11.17, allocations: 0.8876 MB / 3.435 GB, free: 34.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00234/11.17, allocations: 1.375 MB / 3.437 GB, free: 33.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.968/18.14, allocations: 0.5686 GB / 4.005 GB, free: 75.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.681e-05/18.14, allocations: 4 kB / 4.005 GB, free: 75.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008322/18.15, allocations: 3.04 MB / 4.008 GB, free: 73.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001282/18.15, allocations: 5.664 MB / 4.014 GB, free: 68.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-05/18.15, allocations: 16 kB / 4.014 GB, free: 68.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01887/18.17, allocations: 2.392 MB / 4.016 GB, free: 66.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/18.17, allocations: 279.1 kB / 4.017 GB, free: 66.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/18.18, allocations: 3.022 MB / 4.019 GB, free: 63.99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00349/18.18, allocations: 214.3 kB / 4.02 GB, free: 63.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000538/18.18, allocations: 84.11 kB / 4.02 GB, free: 63.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/18.18, allocations: 11.06 kB / 4.02 GB, free: 63.75 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008066/18.19, allocations: 2.921 MB / 4.023 GB, free: 61.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.068e-05/18.19, allocations: 12 kB / 4.023 GB, free: 61.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/18.2, allocations: 1.774 MB / 4.024 GB, free: 60.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/18.2, allocations: 297.6 kB / 4.025 GB, free: 60.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005584/18.21, allocations: 2.746 MB / 4.027 GB, free: 58.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/18.21, allocations: 211.1 kB / 4.028 GB, free: 57.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005567/18.21, allocations: 94.66 kB / 4.028 GB, free: 57.79 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.0008278/18.21, allocations: 234.5 kB / 4.028 GB, free: 57.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004859/18.21, allocations: 138.3 kB / 4.028 GB, free: 57.57 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/18.22, allocations: 5.734 MB / 4.034 GB, free: 53.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.44e-05/18.22, allocations: 56.48 kB / 4.034 GB, free: 53.92 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/18.22, allocations: 4 kB / 4.034 GB, free: 53.92 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007834/18.23, allocations: 4.645 MB / 4.038 GB, free: 50.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01722/18.25, allocations: 7.986 MB / 4.046 GB, free: 45.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/18.25, allocations: 4 kB / 4.046 GB, free: 45.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002078/18.25, allocations: 255.7 kB / 4.046 GB, free: 45.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007428/18.26, allocations: 1.225 MB / 4.047 GB, free: 44.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004609/18.26, allocations: 58.3 kB / 4.047 GB, free: 44.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003914/18.26, allocations: 2.182 MB / 4.05 GB, free: 42.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/18.26, allocations: 5.312 kB / 4.05 GB, free: 42.38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/18.27, allocations: 5.411 MB / 4.055 GB, free: 38.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/18.28, allocations: 0.6224 MB / 4.056 GB, free: 38.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006975/18.28, allocations: 39.86 kB / 4.056 GB, free: 38.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002979/18.28, allocations: 166.7 kB / 4.056 GB, free: 38.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007152/18.28, allocations: 158.5 kB / 4.056 GB, free: 37.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/18.28, allocations: 60.28 kB / 4.056 GB, free: 37.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002076/18.28, allocations: 0.9445 MB / 4.057 GB, free: 37.19 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.71e-07/18.28, allocations: 3.188 kB / 4.057 GB, free: 37.19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01104/18.29, allocations: 2.12 MB / 4.059 GB, free: 35.48 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.02328/18.32, allocations: 8.455 MB / 4.067 GB, free: 29.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01114/18.33, allocations: 3.983 MB / 4.071 GB, free: 26.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/18.33, allocations: 0 / 4.071 GB, free: 26.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004424/18.33, allocations: 1.793 MB / 4.073 GB, free: 25.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006337/18.34, allocations: 0.6656 MB / 4.073 GB, free: 24.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.572/18.91, allocations: 59.57 MB / 4.132 GB, free: 79.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/18.91, allocations: 1.745 MB / 4.133 GB, free: 78.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001652/18.91, allocations: 0.8387 MB / 4.134 GB, free: 78.95 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/18.91, allocations: 0 / 4.134 GB, free: 78.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.313/23.23, allocations: 67.07 MB / 4.2 GB, free: 72.55 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