Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.286/2.286, allocations: 235.1 MB / 242.2 MB, free: 15.86 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.129e-05/4.147e-05, allocations: 4 kB / 299.5 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.395, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.934/8.329, allocations: 2.652 GB / 2.998 GB, free: 122.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/8.33, allocations: 71.25 kB / 2.998 GB, free: 122.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.105/12.43, allocations: 0.7337 GB / 3.731 GB, free: 35.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.366e-06/12.43, allocations: 0 / 3.731 GB, free: 35.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001661/12.43, allocations: 34.22 kB / 3.731 GB, free: 35.04 MB / 0.4948 GB 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.01308/12.45, allocations: 2.754 MB / 3.734 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6e-05/12.45, allocations: 18 kB / 3.734 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004938/12.45, allocations: 482.4 kB / 3.735 GB, free: 33.87 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/12.46, allocations: 1.125 MB / 3.736 GB, free: 33.55 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/12.46, allocations: 112.6 kB / 3.736 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/12.46, allocations: 53.25 kB / 3.736 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003457/12.46, allocations: 1.341 MB / 3.737 GB, free: 33.48 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/12.46, allocations: 1.468 MB / 3.739 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.544e-05/12.46, allocations: 6.719 kB / 3.739 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/12.46, allocations: 5.578 kB / 3.739 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/12.46, allocations: 78.88 kB / 3.739 GB, free: 33.14 MB / 0.4948 GB 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.428/12.89, allocations: 135.2 MB / 3.871 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003234/12.9, allocations: 0.92 MB / 3.872 GB, free: 28.42 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009742/12.9, allocations: 376.8 kB / 3.872 GB, free: 28.41 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05457/12.95, allocations: 16.69 MB / 3.888 GB, free: 16.03 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/12.95, allocations: 0.4941 MB / 3.889 GB, free: 15.73 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 4.508e-06/12.95, allocations: 0 / 3.889 GB, free: 15.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=70): time 0.01288/12.97, allocations: 3.113 MB / 3.892 GB, free: 13.64 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000222/12.97, allocations: 348 kB / 3.892 GB, free: 13.22 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/12.97, allocations: 0.842 MB / 3.893 GB, free: 12.68 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002925/12.97, allocations: 31.2 kB / 3.893 GB, free: 12.64 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006178/12.97, allocations: 0.6159 MB / 3.894 GB, free: 12.25 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003377/12.97, allocations: 240.5 kB / 3.894 GB, free: 12.07 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/12.97, allocations: 0 / 3.894 GB, free: 12.07 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001945/12.97, allocations: 359.1 kB / 3.894 GB, free: 11.75 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/12.97, allocations: 465.2 kB / 3.895 GB, free: 11.52 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/12.97, allocations: 0.9249 MB / 3.896 GB, free: 10.67 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/12.98, allocations: 1.643 MB / 3.897 GB, free: 9.797 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.382e-05/12.98, allocations: 4 kB / 3.897 GB, free: 9.793 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01564/13, allocations: 2.683 MB / 3.9 GB, free: 8.266 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.41/13.41, allocations: 5.405 MB / 3.905 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.71e-05/13.41, allocations: 14.75 kB / 3.905 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006248/13.42, allocations: 0.7065 MB / 3.906 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/13.42, allocations: 247.1 kB / 3.906 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/13.42, allocations: 1.626 MB / 3.908 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/13.43, allocations: 119.4 kB / 3.908 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002814/13.43, allocations: 69.25 kB / 3.908 GB, free: 112.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/13.43, allocations: 6.531 kB / 3.908 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01514/13.44, allocations: 2.33 MB / 3.91 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.125e-05/13.44, allocations: 15 kB / 3.91 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/13.44, allocations: 327.1 kB / 3.91 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/13.45, allocations: 283.2 kB / 3.911 GB, free: 112.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/13.45, allocations: 1.035 MB / 3.912 GB, free: 112 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/13.45, allocations: 104.6 kB / 3.912 GB, free: 112 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/13.45, allocations: 72.17 kB / 3.912 GB, free: 112 MB / 0.573 GB 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 ($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,source.medium.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.0005853/13.45, allocations: 158.3 kB / 3.912 GB, free: 111.9 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004304/13.46, allocations: 1.038 MB / 3.913 GB, free: 111.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/13.46, allocations: 118 kB / 3.913 GB, free: 111.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006543/13.46, allocations: 2.898 MB / 3.916 GB, free: 111.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.027e-05/13.46, allocations: 36.06 kB / 3.916 GB, free: 111.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/13.46, allocations: 6.938 kB / 3.916 GB, free: 111.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/13.46, allocations: 4.266 kB / 3.916 GB, free: 111.6 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009697/13.47, allocations: 4.567 MB / 3.92 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/13.47, allocations: 2.375 kB / 3.92 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/13.47, allocations: 127.1 kB / 3.921 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007707/13.48, allocations: 1.53 MB / 3.922 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/13.48, allocations: 11 kB / 3.922 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003016/13.48, allocations: 2.273 MB / 3.924 GB, free: 109.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/13.48, allocations: 3.469 kB / 3.924 GB, free: 109.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006697/13.49, allocations: 3.313 MB / 3.928 GB, free: 109.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/13.49, allocations: 353.7 kB / 3.928 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003934/13.49, allocations: 10.83 kB / 3.928 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/13.49, allocations: 67.75 kB / 3.928 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/13.49, allocations: 58.94 kB / 3.928 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.75e-05/13.5, allocations: 32.69 kB / 3.928 GB, free: 109.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00128/13.5, allocations: 0.6053 MB / 3.929 GB, free: 109.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.82e-07/13.5, allocations: 1.219 kB / 3.929 GB, free: 109.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009423/13.51, allocations: 1.918 MB / 3.931 GB, free: 109.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01976/13.53, allocations: 6.071 MB / 3.936 GB, free: 107.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005775/13.53, allocations: 2.087 MB / 3.938 GB, free: 107.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/13.53, allocations: 0 / 3.938 GB, free: 107.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001696/13.53, allocations: 0.8158 MB / 3.939 GB, free: 107.8 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004214/13.54, allocations: 468.9 kB / 3.94 GB, free: 107.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/13.55, allocations: 3.177 MB / 3.943 GB, free: 107.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009531/13.55, allocations: 1.347 MB / 3.944 GB, free: 106.4 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004936/13.55, allocations: 1.194 MB / 3.945 GB, free: 106.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/13.56, allocations: 0.5435 MB / 3.946 GB, free: 106.4 MB / 0.573 GB Notification: Performance of SimCode: time 1.743e-06/13.56, allocations: 0 / 3.946 GB, free: 106.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2119/13.77, allocations: 69.25 MB / 4.013 GB, free: 103.6 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/13.77, allocations: 198.3 kB / 4.014 GB, free: 103.4 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.034/19.8, allocations: 0 / 4.014 GB, free: 103.4 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat