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 1.993/1.993, allocations: 209.4 MB / 216.9 MB, free: 6.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.443e-05/2.448e-05, allocations: 0 / 267.6 MB, free: 5.352 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 48.7 MB / 316.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.446/7.558, allocations: 2.553 GB / 2.862 GB, free: 38.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/7.558, allocations: 74.03 kB / 2.862 GB, free: 38.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.529/10.09, allocations: 482.1 MB / 3.333 GB, free: 39.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.275e-06/10.09, allocations: 0 / 3.333 GB, free: 39.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001651/10.09, allocations: 45.81 kB / 3.333 GB, free: 39.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: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.01494/10.1, allocations: 2.84 MB / 3.335 GB, free: 38.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/10.1, allocations: 10.91 kB / 3.335 GB, free: 38.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007721/10.11, allocations: 0.6523 MB / 3.336 GB, free: 37.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0062/10.12, allocations: 1.517 MB / 3.337 GB, free: 37.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/10.12, allocations: 87.75 kB / 3.338 GB, free: 37.17 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008803/10.12, allocations: 100.9 kB / 3.338 GB, free: 37.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006813/10.12, allocations: 2.593 MB / 3.34 GB, free: 36.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006924/10.13, allocations: 2.66 MB / 3.343 GB, free: 35.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-05/10.13, allocations: 7.641 kB / 3.343 GB, free: 35.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003418/10.13, allocations: 11.44 kB / 3.343 GB, free: 35.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002336/10.13, allocations: 157.9 kB / 3.343 GB, free: 35.04 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.7866/10.92, allocations: 135.5 MB / 3.475 GB, free: 32.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003862/10.92, allocations: 1.478 MB / 3.477 GB, free: 32.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/10.92, allocations: 0.9075 MB / 3.478 GB, free: 32.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05323/10.98, allocations: 16.85 MB / 3.494 GB, free: 21.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002582/10.98, allocations: 1.046 MB / 3.495 GB, free: 21.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=129): time 4.509e-06/10.98, allocations: 1.594 kB / 3.495 GB, free: 21.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=149): time 0.02965/11.01, allocations: 7.071 MB / 3.502 GB, free: 20.89 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/11.01, allocations: 196.8 kB / 3.502 GB, free: 20.67 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/11.01, allocations: 0.8945 MB / 3.503 GB, free: 20.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005152/11.01, allocations: 25.7 kB / 3.503 GB, free: 20.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000903/11.01, allocations: 0.8603 MB / 3.504 GB, free: 20.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009554/11.01, allocations: 0.5028 MB / 3.504 GB, free: 19.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/11.02, allocations: 0 / 3.504 GB, free: 19.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002479/11.02, allocations: 398.5 kB / 3.505 GB, free: 19.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/11.02, allocations: 1.037 MB / 3.506 GB, free: 19.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002777/11.02, allocations: 1.585 MB / 3.507 GB, free: 18.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03071/11.05, allocations: 4.332 MB / 3.512 GB, free: 18.58 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-05/11.05, allocations: 7.219 kB / 3.512 GB, free: 18.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0188/11.07, allocations: 4.062 MB / 3.516 GB, free: 18.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002913/11.07, allocations: 6.532 MB / 3.522 GB, free: 27.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-05/11.07, allocations: 19.53 kB / 3.522 GB, free: 27.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/11.08, allocations: 422.2 kB / 3.522 GB, free: 27.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004283/11.08, allocations: 0.5154 MB / 3.523 GB, free: 27.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003426/11.08, allocations: 3.352 MB / 3.526 GB, free: 24.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00409/11.09, allocations: 227.3 kB / 3.526 GB, free: 24.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004967/11.09, allocations: 98.44 kB / 3.526 GB, free: 24.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/11.09, allocations: 3.781 kB / 3.526 GB, free: 24.86 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0173/11.1, allocations: 3.704 MB / 3.53 GB, free: 24.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.087e-05/11.1, allocations: 17.8 kB / 3.53 GB, free: 24.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/11.11, allocations: 411.2 kB / 3.53 GB, free: 24.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004174/11.11, allocations: 0.513 MB / 3.531 GB, free: 24.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/11.11, allocations: 3.334 MB / 3.534 GB, free: 22.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/11.12, allocations: 216.8 kB / 3.534 GB, free: 22.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004518/11.12, allocations: 100.6 kB / 3.534 GB, free: 22.05 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 ($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,source.medium.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.0008513/11.12, allocations: 181.5 kB / 3.535 GB, free: 21.94 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008034/11.13, allocations: 2.382 MB / 3.537 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006914/11.13, allocations: 130.6 kB / 3.537 GB, free: 21.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/11.14, allocations: 5.398 MB / 3.542 GB, free: 21.26 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/11.14, allocations: 62.98 kB / 3.542 GB, free: 21.26 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/11.14, allocations: 7.375 kB / 3.542 GB, free: 21.26 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009884/11.15, allocations: 4.858 MB / 3.547 GB, free: 20.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/11.17, allocations: 7.981 MB / 3.555 GB, free: 19.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/11.17, allocations: 3.844 kB / 3.555 GB, free: 19.85 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003049/11.17, allocations: 362.9 kB / 3.555 GB, free: 19.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/11.17, allocations: 0.5072 MB / 3.556 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004152/11.17, allocations: 35.14 kB / 3.556 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/11.18, allocations: 3.545 MB / 3.559 GB, free: 17.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/11.18, allocations: 3.156 kB / 3.559 GB, free: 17.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/11.19, allocations: 5.894 MB / 3.565 GB, free: 16.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001858/11.19, allocations: 0.5519 MB / 3.566 GB, free: 16.45 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006525/11.19, allocations: 19.11 kB / 3.566 GB, free: 16.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002812/11.2, allocations: 171.5 kB / 3.566 GB, free: 16.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006067/11.2, allocations: 153 kB / 3.566 GB, free: 16.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/11.2, allocations: 60.8 kB / 3.566 GB, free: 16.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001315/11.2, allocations: 0.6687 MB / 3.567 GB, free: 16.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.42e-07/11.2, allocations: 0 / 3.567 GB, free: 16.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01059/11.21, allocations: 2.108 MB / 3.569 GB, free: 14.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 31 ($cse3.phase,$cse3.region,$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,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * 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.02546/11.23, allocations: 8.555 MB / 3.577 GB, free: 7.84 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01213/11.25, allocations: 4.454 MB / 3.581 GB, free: 3.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/11.25, allocations: 0 / 3.581 GB, free: 3.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00508/11.25, allocations: 1.903 MB / 3.583 GB, free: 2.293 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005489/11.26, allocations: 0.5426 MB / 3.584 GB, free: 1.906 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5424/11.8, allocations: 59.27 MB / 3.642 GB, free: 84.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/11.8, allocations: 1.842 MB / 3.644 GB, free: 83.83 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002348/11.8, allocations: 0.9429 MB / 3.644 GB, free: 83.82 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/11.8, allocations: 0 / 3.644 GB, free: 83.82 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.77/16.57, allocations: 107.2 MB / 3.749 GB, free: 29.19 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