Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestOverdeterminedInitial_DynamicPipeLumpedPressureInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.967/1.967, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.936e-05/3.94e-05, allocations: 0 / 273.1 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1164, allocations: 48.71 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.578/7.694, allocations: 2.553 GB / 2.868 GB, free: 3.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/7.695, allocations: 74.84 kB / 2.868 GB, free: 3.781 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574/10.27, allocations: 483.1 MB / 3.339 GB, free: 33.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/10.27, allocations: 0 / 3.339 GB, free: 33.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001443/10.27, allocations: 35.94 kB / 3.339 GB, free: 33.59 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.01429/10.28, allocations: 2.833 MB / 3.342 GB, free: 31.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/10.28, allocations: 8.031 kB / 3.342 GB, free: 31.07 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009126/10.28, allocations: 212.7 kB / 3.342 GB, free: 30.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006498/10.29, allocations: 0.5696 MB / 3.343 GB, free: 30.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006002/10.3, allocations: 1.471 MB / 3.344 GB, free: 29.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002592/10.3, allocations: 137.9 kB / 3.345 GB, free: 29.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/10.3, allocations: 138.4 kB / 3.345 GB, free: 28.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008959/10.31, allocations: 2.698 MB / 3.347 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.352e-05/10.31, allocations: 7.938 kB / 3.347 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000341/10.31, allocations: 62.83 kB / 3.347 GB, free: 26.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001781/10.31, allocations: 115.4 kB / 3.348 GB, free: 26.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008639/10.32, allocations: 2.52 MB / 3.35 GB, free: 24.37 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.02122/10.34, allocations: 10.91 MB / 3.361 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00615/10.34, allocations: 1.764 MB / 3.362 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/10.35, allocations: 0.8434 MB / 3.363 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5519/10.9, allocations: 61.93 MB / 3.424 GB, free: 29.36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004722/10.9, allocations: 1.394 MB / 3.425 GB, free: 29.24 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 4.899e-06/10.9, allocations: 0 / 3.425 GB, free: 29.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.02202/10.92, allocations: 6.989 MB / 3.432 GB, free: 28.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/10.92, allocations: 282.6 kB / 3.432 GB, free: 27.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/10.93, allocations: 0.8825 MB / 3.433 GB, free: 27.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000309/10.93, allocations: 53.95 kB / 3.433 GB, free: 27.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006301/10.93, allocations: 0.6706 MB / 3.434 GB, free: 27.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005643/10.93, allocations: 0.51 MB / 3.434 GB, free: 27.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/10.93, allocations: 36.25 kB / 3.434 GB, free: 27.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/10.93, allocations: 385.3 kB / 3.435 GB, free: 26.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/10.93, allocations: 0.8806 MB / 3.435 GB, free: 26.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/10.93, allocations: 1.381 MB / 3.437 GB, free: 26.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.909/17.84, allocations: 0.5687 GB / 4.006 GB, free: 59.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/17.84, allocations: 4 kB / 4.006 GB, free: 59.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007765/17.85, allocations: 3.09 MB / 4.009 GB, free: 57.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001237/17.85, allocations: 5.665 MB / 4.014 GB, free: 51.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.631e-05/17.85, allocations: 16 kB / 4.014 GB, free: 51.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01817/17.87, allocations: 2.396 MB / 4.016 GB, free: 49.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/17.87, allocations: 282.8 kB / 4.017 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006089/17.88, allocations: 3.008 MB / 4.02 GB, free: 47.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/17.88, allocations: 218.4 kB / 4.02 GB, free: 47.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/17.88, allocations: 94.03 kB / 4.02 GB, free: 47.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/17.88, allocations: 4 kB / 4.02 GB, free: 47.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007186/17.89, allocations: 2.917 MB / 4.023 GB, free: 45.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.851e-05/17.89, allocations: 16.66 kB / 4.023 GB, free: 45.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01164/17.9, allocations: 1.844 MB / 4.025 GB, free: 43.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/17.9, allocations: 303.1 kB / 4.025 GB, free: 43.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005467/17.91, allocations: 2.755 MB / 4.028 GB, free: 41.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003121/17.91, allocations: 214.7 kB / 4.028 GB, free: 41.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/17.91, allocations: 85.11 kB / 4.028 GB, free: 41.16 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.0007124/17.91, allocations: 237.6 kB / 4.028 GB, free: 41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004326/17.91, allocations: 138.9 kB / 4.028 GB, free: 40.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/17.92, allocations: 5.726 MB / 4.034 GB, free: 37.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-05/17.92, allocations: 51 kB / 4.034 GB, free: 37.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/17.92, allocations: 0 / 4.034 GB, free: 37.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007452/17.93, allocations: 4.647 MB / 4.038 GB, free: 34.06 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/17.95, allocations: 7.986 MB / 4.046 GB, free: 28.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.729e-05/17.95, allocations: 0 / 4.046 GB, free: 28.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00282/17.95, allocations: 256.9 kB / 4.046 GB, free: 28.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009771/17.96, allocations: 1.245 MB / 4.048 GB, free: 27.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004775/17.96, allocations: 56.34 kB / 4.048 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005561/17.97, allocations: 2.178 MB / 4.05 GB, free: 25.71 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/17.97, allocations: 5.312 kB / 4.05 GB, free: 25.71 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3631/18.33, allocations: 5.404 MB / 4.055 GB, free: 87.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002258/18.34, allocations: 0.6146 MB / 4.056 GB, free: 87.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005622/18.34, allocations: 47.06 kB / 4.056 GB, free: 87.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002567/18.34, allocations: 168.3 kB / 4.056 GB, free: 87.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005527/18.34, allocations: 156.6 kB / 4.056 GB, free: 87.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001916/18.34, allocations: 59.53 kB / 4.056 GB, free: 87.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002201/18.34, allocations: 0.9426 MB / 4.057 GB, free: 87.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/18.34, allocations: 1.156 kB / 4.057 GB, free: 87.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01082/18.35, allocations: 2.117 MB / 4.059 GB, free: 87.31 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.02436/18.38, allocations: 8.456 MB / 4.067 GB, free: 85.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01171/18.39, allocations: 4.012 MB / 4.071 GB, free: 85.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/18.39, allocations: 1.125 kB / 4.071 GB, free: 85.58 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004793/18.39, allocations: 1.82 MB / 4.073 GB, free: 85.57 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006408/18.4, allocations: 0.6826 MB / 4.074 GB, free: 85.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2005/18.6, allocations: 59.51 MB / 4.132 GB, free: 83.28 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/18.6, allocations: 1.748 MB / 4.134 GB, free: 82.52 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004826/18.61, allocations: 1.409 MB / 4.135 GB, free: 82.44 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/18.61, allocations: 0.8178 MB / 4.136 GB, free: 82.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/18.61, allocations: 0 / 4.136 GB, free: 82.43 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5693/19.18, allocations: 96.81 MB / 4.23 GB, free: 85.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002951/19.18, allocations: 258.3 kB / 4.231 GB, free: 84.97 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/25.92, allocations: 0 / 4.231 GB, free: 84.97 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization_res.mat does not exist to compare? outputFormat=mat