Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.048/2.048, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.777e-05/3.786e-05, allocations: 4 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.004/8.111, allocations: 2.542 GB / 2.856 GB, free: 15.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/8.112, allocations: 74.34 kB / 2.856 GB, free: 15.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.276/12.39, allocations: 0.7229 GB / 3.579 GB, free: 37.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.395e-06/12.39, allocations: 3.25 kB / 3.579 GB, free: 37.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001905/12.39, allocations: 32.12 kB / 3.579 GB, free: 37.04 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01339/12.4, allocations: 2.667 MB / 3.582 GB, free: 35.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/12.4, allocations: 10.31 kB / 3.582 GB, free: 35.88 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006539/12.4, allocations: 153.4 kB / 3.582 GB, free: 35.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004851/12.41, allocations: 455.4 kB / 3.582 GB, free: 35.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004161/12.41, allocations: 1.129 MB / 3.583 GB, free: 35.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/12.41, allocations: 147.8 kB / 3.584 GB, free: 35.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004047/12.41, allocations: 94.2 kB / 3.584 GB, free: 35.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006236/12.42, allocations: 1.876 MB / 3.585 GB, free: 35.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.185e-05/12.42, allocations: 6.484 kB / 3.585 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/12.42, allocations: 52.86 kB / 3.586 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/12.42, allocations: 78.39 kB / 3.586 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005895/12.42, allocations: 1.696 MB / 3.587 GB, free: 35.04 MB / 458.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.01826/12.44, allocations: 8.539 MB / 3.596 GB, free: 30.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004427/12.45, allocations: 1.373 MB / 3.597 GB, free: 29.82 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/12.45, allocations: 476.6 kB / 3.597 GB, free: 29.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2077/12.66, allocations: 63.42 MB / 3.659 GB, free: 22.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003294/12.66, allocations: 0.8955 MB / 3.66 GB, free: 22.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 5.009e-06/12.66, allocations: 2.875 kB / 3.66 GB, free: 22.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01618/12.68, allocations: 3.731 MB / 3.664 GB, free: 21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002927/12.68, allocations: 408.6 kB / 3.664 GB, free: 20.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/12.68, allocations: 0.918 MB / 3.665 GB, free: 20.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004225/12.68, allocations: 45.55 kB / 3.665 GB, free: 20.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008302/12.68, allocations: 0.5665 MB / 3.666 GB, free: 20 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007492/12.68, allocations: 299.9 kB / 3.666 GB, free: 19.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/12.68, allocations: 24.88 kB / 3.666 GB, free: 19.82 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000249/12.68, allocations: 358.4 kB / 3.666 GB, free: 19.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/12.68, allocations: 481.3 kB / 3.667 GB, free: 19.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/12.69, allocations: 0.933 MB / 3.668 GB, free: 18.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002732/12.69, allocations: 0.6297 MB / 3.668 GB, free: 18.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.08e-05/12.69, allocations: 9.969 kB / 3.668 GB, free: 18.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006204/12.7, allocations: 1.671 MB / 3.67 GB, free: 18.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002317/12.7, allocations: 5.399 MB / 3.675 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.808e-05/12.7, allocations: 13.97 kB / 3.675 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009956/12.71, allocations: 1.058 MB / 3.676 GB, free: 13.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/12.71, allocations: 248.2 kB / 3.677 GB, free: 13.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003183/12.71, allocations: 1.448 MB / 3.678 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/12.72, allocations: 129.6 kB / 3.678 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003687/12.72, allocations: 74.66 kB / 3.678 GB, free: 12.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/12.72, allocations: 3.844 kB / 3.678 GB, free: 12.53 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004877/12.72, allocations: 1.482 MB / 3.68 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.593e-05/12.72, allocations: 14.62 kB / 3.68 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/12.72, allocations: 337.8 kB / 3.68 GB, free: 12.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/12.73, allocations: 279 kB / 3.68 GB, free: 12.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/12.73, allocations: 1.009 MB / 3.681 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/12.73, allocations: 137.7 kB / 3.681 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/12.73, allocations: 74.14 kB / 3.681 GB, free: 11.92 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006611/12.73, allocations: 195.4 kB / 3.682 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/12.73, allocations: 133 kB / 3.682 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007743/12.74, allocations: 3.966 MB / 3.686 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.709e-05/12.74, allocations: 43.98 kB / 3.686 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/12.74, allocations: 0 / 3.686 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.413e-05/12.74, allocations: 14.39 kB / 3.686 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/12.75, allocations: 5.478 MB / 3.691 GB, free: 10.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/12.75, allocations: 0 / 3.691 GB, free: 10.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/12.75, allocations: 175.3 kB / 3.691 GB, free: 10.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01091/12.76, allocations: 1.775 MB / 3.693 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002902/12.76, allocations: 28.19 kB / 3.693 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002623/12.77, allocations: 2.085 MB / 3.695 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/12.77, allocations: 0 / 3.695 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007308/12.77, allocations: 3.811 MB / 3.699 GB, free: 8.918 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/12.78, allocations: 0.5297 MB / 3.699 GB, free: 8.672 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005148/12.78, allocations: 23.62 kB / 3.699 GB, free: 8.672 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/12.78, allocations: 97.73 kB / 3.699 GB, free: 8.66 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/12.78, allocations: 81.34 kB / 3.699 GB, free: 8.648 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/12.78, allocations: 35.08 kB / 3.699 GB, free: 8.648 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002343/12.78, allocations: 1.037 MB / 3.7 GB, free: 8.531 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.42e-07/12.78, allocations: 0 / 3.7 GB, free: 8.531 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01086/12.79, allocations: 2.047 MB / 3.702 GB, free: 8.219 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02112/12.81, allocations: 6.629 MB / 3.709 GB, free: 5.906 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006805/12.82, allocations: 2.212 MB / 3.711 GB, free: 4.648 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/12.82, allocations: 4 kB / 3.711 GB, free: 4.645 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/12.82, allocations: 0.988 MB / 3.712 GB, free: 4.156 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005842/12.83, allocations: 0.6183 MB / 3.713 GB, free: 3.812 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/12.84, allocations: 3.825 MB / 3.716 GB, free: 0.9648 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003084/12.85, allocations: 1.562 MB / 3.718 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/12.85, allocations: 0.7249 MB / 3.719 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/12.85, allocations: 0 / 3.719 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.067/17.91, allocations: 67.05 MB / 3.784 GB, free: 79.09 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat