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 2.248/2.248, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.23e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.544/7.652, allocations: 2.553 GB / 2.868 GB, free: 4.969 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/7.653, allocations: 77.52 kB / 2.868 GB, free: 4.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564/10.22, allocations: 486.8 MB / 3.343 GB, free: 31.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.964e-06/10.22, allocations: 0 / 3.343 GB, free: 31.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001247/10.22, allocations: 40 kB / 3.343 GB, free: 31.53 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: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.01299/10.23, allocations: 2.844 MB / 3.346 GB, free: 28.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/10.23, allocations: 8.031 kB / 3.346 GB, free: 28.96 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007704/10.23, allocations: 272 kB / 3.346 GB, free: 28.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006468/10.24, allocations: 0.6528 MB / 3.347 GB, free: 28.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005931/10.24, allocations: 1.507 MB / 3.348 GB, free: 26.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002505/10.24, allocations: 174.9 kB / 3.348 GB, free: 26.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006278/10.24, allocations: 167.4 kB / 3.349 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009574/10.25, allocations: 3.294 MB / 3.352 GB, free: 23.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.529e-05/10.25, allocations: 7.938 kB / 3.352 GB, free: 23.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003718/10.25, allocations: 73.27 kB / 3.352 GB, free: 23.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002188/10.25, allocations: 161.9 kB / 3.352 GB, free: 23.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009486/10.26, allocations: 3.099 MB / 3.355 GB, free: 20.86 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.02516/10.29, allocations: 13.35 MB / 3.368 GB, free: 6.648 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006623/10.3, allocations: 2.059 MB / 3.37 GB, free: 4.547 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/10.3, allocations: 0.9926 MB / 3.371 GB, free: 3.539 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5874/10.89, allocations: 61.95 MB / 3.432 GB, free: 25.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00528/10.89, allocations: 1.607 MB / 3.433 GB, free: 25.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=143): time 5.03e-06/10.89, allocations: 4 kB / 3.433 GB, free: 25.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=163): time 0.03432/10.93, allocations: 9.169 MB / 3.442 GB, free: 24.02 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00021/10.93, allocations: 339.7 kB / 3.442 GB, free: 23.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/10.93, allocations: 1.087 MB / 3.443 GB, free: 23.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004234/10.93, allocations: 62.53 kB / 3.443 GB, free: 23.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007039/10.93, allocations: 0.7825 MB / 3.444 GB, free: 23.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006878/10.93, allocations: 0.5669 MB / 3.445 GB, free: 22.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/10.93, allocations: 38.03 kB / 3.445 GB, free: 22.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002493/10.93, allocations: 395 kB / 3.445 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/10.93, allocations: 1.058 MB / 3.446 GB, free: 22.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00277/10.94, allocations: 1.611 MB / 3.448 GB, free: 21.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.812/19.75, allocations: 0.7375 GB / 4.185 GB, free: 48.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/19.75, allocations: 4 kB / 4.185 GB, free: 48.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009465/19.76, allocations: 3.126 MB / 4.188 GB, free: 46.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00155/19.76, allocations: 6.541 MB / 4.195 GB, free: 39.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-05/19.76, allocations: 16 kB / 4.195 GB, free: 39.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/19.76, allocations: 449 kB / 4.195 GB, free: 39.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0044/19.77, allocations: 0.5107 MB / 4.196 GB, free: 39.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/19.77, allocations: 3.304 MB / 4.199 GB, free: 35.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/19.77, allocations: 257.3 kB / 4.199 GB, free: 35.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006255/19.77, allocations: 101.5 kB / 4.199 GB, free: 35.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/19.77, allocations: 5.859 kB / 4.199 GB, free: 35.67 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008448/19.78, allocations: 2.926 MB / 4.202 GB, free: 33.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.727e-05/19.78, allocations: 16 kB / 4.202 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/19.78, allocations: 422 kB / 4.203 GB, free: 33.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/19.79, allocations: 0.5087 MB / 4.203 GB, free: 32.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/19.79, allocations: 3.306 MB / 4.206 GB, free: 29.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/19.79, allocations: 248.4 kB / 4.207 GB, free: 29.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000459/19.79, allocations: 95.36 kB / 4.207 GB, free: 29.46 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.0008609/19.8, allocations: 250.8 kB / 4.207 GB, free: 29.31 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005571/19.8, allocations: 154.3 kB / 4.207 GB, free: 29.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/19.81, allocations: 6.531 MB / 4.213 GB, free: 25.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-05/19.81, allocations: 86.02 kB / 4.213 GB, free: 25.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/19.81, allocations: 3.953 kB / 4.213 GB, free: 25.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009226/19.82, allocations: 5.126 MB / 4.218 GB, free: 21.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3683/20.19, allocations: 8.99 MB / 4.227 GB, free: 86.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/20.19, allocations: 2.688 kB / 4.227 GB, free: 86.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003486/20.19, allocations: 397.9 kB / 4.228 GB, free: 86.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/20.19, allocations: 0.5325 MB / 4.228 GB, free: 86.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000439/20.19, allocations: 62.72 kB / 4.228 GB, free: 86.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/20.2, allocations: 3.398 MB / 4.232 GB, free: 84.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/20.2, allocations: 7.781 kB / 4.232 GB, free: 84.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/20.21, allocations: 6.431 MB / 4.238 GB, free: 83.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002676/20.21, allocations: 0.7653 MB / 4.239 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006607/20.21, allocations: 49.56 kB / 4.239 GB, free: 83.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002979/20.22, allocations: 202.7 kB / 4.239 GB, free: 83.38 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005881/20.22, allocations: 175 kB / 4.239 GB, free: 83.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/20.22, allocations: 63.84 kB / 4.239 GB, free: 83.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002702/20.22, allocations: 1.168 MB / 4.24 GB, free: 83.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.824e-06/20.22, allocations: 0 / 4.24 GB, free: 83.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01189/20.23, allocations: 2.284 MB / 4.242 GB, free: 83.26 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.02565/20.26, allocations: 9.343 MB / 4.252 GB, free: 81.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01251/20.27, allocations: 4.717 MB / 4.256 GB, free: 81.49 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/20.27, allocations: 0 / 4.256 GB, free: 81.49 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005203/20.28, allocations: 2.146 MB / 4.258 GB, free: 81.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006833/20.28, allocations: 0.724 MB / 4.259 GB, free: 81.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2738/20.56, allocations: 90.79 MB / 4.348 GB, free: 66.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/20.56, allocations: 1.994 MB / 4.35 GB, free: 64.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/20.56, allocations: 1.077 MB / 4.351 GB, free: 63.72 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/20.56, allocations: 0 / 4.351 GB, free: 63.72 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.152/25.71, allocations: 117.8 MB / 4.466 GB, free: 78.51 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