Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.198e-05/4.221e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.108, allocations: 48.69 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.747/7.855, allocations: 2.553 GB / 2.867 GB, free: 4.969 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/7.856, allocations: 78.39 kB / 2.868 GB, free: 4.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.53/10.39, allocations: 489.8 MB / 3.346 GB, free: 27.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.475e-06/10.39, allocations: 0 / 3.346 GB, free: 27.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001579/10.39, allocations: 46.58 kB / 3.346 GB, free: 27.41 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01406/10.4, allocations: 2.917 MB / 3.349 GB, free: 24.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/10.4, allocations: 16.03 kB / 3.349 GB, free: 24.78 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001055/10.4, allocations: 280.6 kB / 3.349 GB, free: 24.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007342/10.41, allocations: 0.6893 MB / 3.35 GB, free: 24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006232/10.41, allocations: 1.585 MB / 3.351 GB, free: 22.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/10.42, allocations: 166.1 kB / 3.351 GB, free: 22.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007377/10.42, allocations: 187.7 kB / 3.352 GB, free: 22.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01028/10.43, allocations: 3.524 MB / 3.355 GB, free: 19.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.442e-05/10.43, allocations: 8 kB / 3.355 GB, free: 19.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003758/10.43, allocations: 74.89 kB / 3.355 GB, free: 19.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002328/10.43, allocations: 178.6 kB / 3.355 GB, free: 19.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/10.44, allocations: 3.333 MB / 3.359 GB, free: 16.22 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.02777/10.47, allocations: 14.12 MB / 3.372 GB, free: 1.719 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3388/10.8, allocations: 2.141 MB / 3.374 GB, free: 36.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004396/10.81, allocations: 1.076 MB / 3.375 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2246/11.03, allocations: 63.58 MB / 3.438 GB, free: 29.67 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005506/11.04, allocations: 1.694 MB / 3.439 GB, free: 29.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=154): time 5.239e-06/11.04, allocations: 3.703 kB / 3.439 GB, free: 29.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.02488/11.06, allocations: 8.141 MB / 3.447 GB, free: 28.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002057/11.06, allocations: 285 kB / 3.447 GB, free: 27.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00231/11.07, allocations: 1.174 MB / 3.449 GB, free: 27.65 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003828/11.07, allocations: 61.98 kB / 3.449 GB, free: 27.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007212/11.07, allocations: 0.8062 MB / 3.449 GB, free: 27.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007069/11.07, allocations: 0.6087 MB / 3.45 GB, free: 26.94 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/11.07, allocations: 39.19 kB / 3.45 GB, free: 26.94 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/11.07, allocations: 403.1 kB / 3.45 GB, free: 26.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/11.07, allocations: 1.145 MB / 3.452 GB, free: 26.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002957/11.07, allocations: 1.693 MB / 3.453 GB, free: 25.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003088/11.08, allocations: 1.381 MB / 3.455 GB, free: 25.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/11.08, allocations: 4.344 kB / 3.455 GB, free: 25.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009044/11.09, allocations: 3.899 MB / 3.458 GB, free: 25.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002614/11.09, allocations: 6.275 MB / 3.465 GB, free: 19.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/11.09, allocations: 23.62 kB / 3.465 GB, free: 19.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02535/11.11, allocations: 3.436 MB / 3.468 GB, free: 19.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/11.12, allocations: 333.8 kB / 3.468 GB, free: 19.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008602/11.13, allocations: 3.818 MB / 3.472 GB, free: 18.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003822/11.13, allocations: 277.8 kB / 3.472 GB, free: 18.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000288/11.13, allocations: 104.3 kB / 3.472 GB, free: 18.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/11.13, allocations: 3.969 kB / 3.472 GB, free: 18.49 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009067/11.14, allocations: 3.579 MB / 3.476 GB, free: 18.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.6e-05/11.14, allocations: 15.31 kB / 3.476 GB, free: 18.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/11.15, allocations: 2.189 MB / 3.478 GB, free: 18.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/11.15, allocations: 362.6 kB / 3.478 GB, free: 18.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005962/11.16, allocations: 3.098 MB / 3.481 GB, free: 17.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/11.16, allocations: 272.2 kB / 3.482 GB, free: 17.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002645/11.16, allocations: 100.5 kB / 3.482 GB, free: 17.76 MB / 474.7 MB 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.0008088/11.16, allocations: 230.5 kB / 3.482 GB, free: 17.65 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005025/11.17, allocations: 166.8 kB / 3.482 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/11.18, allocations: 6.751 MB / 3.489 GB, free: 16.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.168e-05/11.18, allocations: 78.05 kB / 3.489 GB, free: 16.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/11.18, allocations: 0 / 3.489 GB, free: 16.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008822/11.19, allocations: 5.446 MB / 3.494 GB, free: 16.21 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/11.2, allocations: 9.478 MB / 3.503 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/11.2, allocations: 1.875 kB / 3.503 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003464/11.21, allocations: 445.7 kB / 3.504 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002338/11.21, allocations: 439.8 kB / 3.504 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002262/11.21, allocations: 65.62 kB / 3.504 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002679/11.21, allocations: 3.215 MB / 3.507 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/11.21, allocations: 7.312 kB / 3.507 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01221/11.22, allocations: 6.74 MB / 3.514 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/11.23, allocations: 0.7683 MB / 3.515 GB, free: 9.773 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005081/11.23, allocations: 57.53 kB / 3.515 GB, free: 9.738 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/11.23, allocations: 209.8 kB / 3.515 GB, free: 9.691 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005159/11.23, allocations: 186.1 kB / 3.515 GB, free: 9.668 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/11.23, allocations: 63.38 kB / 3.515 GB, free: 9.656 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002365/11.23, allocations: 1.221 MB / 3.516 GB, free: 9.176 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/11.23, allocations: 0 / 3.516 GB, free: 9.176 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009964/11.24, allocations: 2.347 MB / 3.519 GB, free: 8.934 MB / 474.7 MB 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.02327/11.27, allocations: 9.552 MB / 3.528 GB, free: 1.133 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01551/11.28, allocations: 5.146 MB / 3.533 GB, free: 12.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/11.28, allocations: 7.953 kB / 3.533 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005682/11.29, allocations: 2.279 MB / 3.535 GB, free: 10.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006923/11.29, allocations: 0.7941 MB / 3.536 GB, free: 10.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/11.32, allocations: 6.868 MB / 3.543 GB, free: 4.438 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002285/11.32, allocations: 2.041 MB / 3.545 GB, free: 2.809 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002745/11.32, allocations: 1.154 MB / 3.546 GB, free: 1.746 MB / 490.7 MB Notification: Performance of SimCode: time 1.382e-06/11.32, allocations: 0 / 3.546 GB, free: 1.746 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.041/16.36, allocations: 99.75 MB / 3.643 GB, free: 68.75 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat