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 2.066/2.066, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.633e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 48.69 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.695/7.803, allocations: 2.553 GB / 2.862 GB, free: 33.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/7.803, allocations: 80.25 kB / 2.862 GB, free: 33.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574/10.38, allocations: 478.4 MB / 3.329 GB, free: 41.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.114e-06/10.38, allocations: 0 / 3.329 GB, free: 41.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001469/10.38, allocations: 37.22 kB / 3.329 GB, free: 41.34 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.01451/10.39, allocations: 2.821 MB / 3.332 GB, free: 40.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/10.39, allocations: 7.594 kB / 3.332 GB, free: 40.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006598/10.4, allocations: 0.5685 MB / 3.332 GB, free: 39.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005955/10.4, allocations: 1.477 MB / 3.334 GB, free: 39.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/10.41, allocations: 77.14 kB / 3.334 GB, free: 39.28 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006175/10.41, allocations: 81.28 kB / 3.334 GB, free: 39.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005377/10.41, allocations: 2.008 MB / 3.336 GB, free: 38.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005187/10.42, allocations: 2.029 MB / 3.338 GB, free: 37.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.714e-05/10.42, allocations: 10.56 kB / 3.338 GB, free: 37.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002758/10.42, allocations: 3.656 kB / 3.338 GB, free: 37.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/10.42, allocations: 109 kB / 3.338 GB, free: 37.65 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.785/11.2, allocations: 133.3 MB / 3.468 GB, free: 21.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003038/11.21, allocations: 1.177 MB / 3.469 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/11.21, allocations: 0.7412 MB / 3.47 GB, free: 21.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05097/11.26, allocations: 16.72 MB / 3.486 GB, free: 26.61 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002023/11.26, allocations: 0.8512 MB / 3.487 GB, free: 26.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=112): time 4.729e-06/11.26, allocations: 0 / 3.487 GB, free: 26.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=136): time 0.02183/11.28, allocations: 6.005 MB / 3.493 GB, free: 25.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/11.28, allocations: 194.6 kB / 3.493 GB, free: 25.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/11.28, allocations: 0.817 MB / 3.494 GB, free: 25.33 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/11.28, allocations: 28.64 kB / 3.494 GB, free: 25.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006292/11.28, allocations: 0.7366 MB / 3.495 GB, free: 24.92 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004901/11.28, allocations: 459.2 kB / 3.495 GB, free: 24.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/11.28, allocations: 0 / 3.495 GB, free: 24.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002028/11.29, allocations: 383.6 kB / 3.496 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/11.29, allocations: 0.8558 MB / 3.497 GB, free: 24.38 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/11.29, allocations: 1.333 MB / 3.498 GB, free: 23.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02803/11.32, allocations: 4.327 MB / 3.502 GB, free: 23.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-05/11.32, allocations: 3.844 kB / 3.502 GB, free: 23.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01702/11.33, allocations: 3.916 MB / 3.506 GB, free: 23.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002309/11.34, allocations: 5.659 MB / 3.511 GB, free: 17.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/11.34, allocations: 14.19 kB / 3.511 GB, free: 17.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01453/11.35, allocations: 2.07 MB / 3.513 GB, free: 17.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/11.35, allocations: 279.2 kB / 3.514 GB, free: 17.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007605/11.36, allocations: 3.242 MB / 3.517 GB, free: 16.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/11.36, allocations: 197.3 kB / 3.517 GB, free: 16.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003575/11.36, allocations: 89.42 kB / 3.517 GB, free: 16.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/11.36, allocations: 6.359 kB / 3.517 GB, free: 16.57 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01757/11.38, allocations: 3.835 MB / 3.521 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-05/11.38, allocations: 18.09 kB / 3.521 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01004/11.39, allocations: 1.693 MB / 3.523 GB, free: 16.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/11.39, allocations: 293.4 kB / 3.523 GB, free: 16.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005899/11.4, allocations: 2.864 MB / 3.526 GB, free: 15.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/11.4, allocations: 184.3 kB / 3.526 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/11.4, allocations: 81.25 kB / 3.526 GB, free: 15.86 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 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 ($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,source.medium.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.0006973/11.4, allocations: 172.8 kB / 3.526 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007626/11.41, allocations: 2.234 MB / 3.528 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006732/11.41, allocations: 131.8 kB / 3.528 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/11.42, allocations: 4.592 MB / 3.533 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.297e-05/11.42, allocations: 51.67 kB / 3.533 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/11.42, allocations: 0 / 3.533 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008317/11.43, allocations: 4.267 MB / 3.537 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/11.45, allocations: 6.948 MB / 3.544 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/11.45, allocations: 3.172 kB / 3.544 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/11.45, allocations: 218.2 kB / 3.544 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006611/11.46, allocations: 1.193 MB / 3.545 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000358/11.46, allocations: 32.5 kB / 3.545 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004898/11.46, allocations: 2.388 MB / 3.548 GB, free: 29.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/11.46, allocations: 4 kB / 3.548 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/11.47, allocations: 4.86 MB / 3.552 GB, free: 27.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/11.47, allocations: 445.1 kB / 3.553 GB, free: 26.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005043/11.47, allocations: 19.23 kB / 3.553 GB, free: 26.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/11.48, allocations: 137.7 kB / 3.553 GB, free: 26.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004542/11.48, allocations: 140.3 kB / 3.553 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/11.48, allocations: 49.25 kB / 3.553 GB, free: 26.53 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001186/11.48, allocations: 0.586 MB / 3.554 GB, free: 26.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.21e-07/11.48, allocations: 0 / 3.554 GB, free: 26.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009893/11.49, allocations: 1.968 MB / 3.556 GB, free: 24.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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: 26 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.02409/11.51, allocations: 7.781 MB / 3.563 GB, free: 18.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0092/11.52, allocations: 3.716 MB / 3.567 GB, free: 15.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/11.52, allocations: 0 / 3.567 GB, free: 15.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004125/11.53, allocations: 1.586 MB / 3.568 GB, free: 13.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004913/11.53, allocations: 0.5038 MB / 3.569 GB, free: 13.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/11.55, allocations: 4.715 MB / 3.573 GB, free: 9.199 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/11.55, allocations: 1.593 MB / 3.575 GB, free: 7.879 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001717/11.55, allocations: 0.6946 MB / 3.576 GB, free: 7.242 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/11.55, allocations: 0 / 3.576 GB, free: 7.242 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.537/16.09, allocations: 62.75 MB / 3.637 GB, free: 81.19 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