Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.46/2.46, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.03e-05/4.033e-05, allocations: 7.922 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1485, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.909/9.058, allocations: 2.838 GB / 3.239 GB, free: 6.082 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/9.058, allocations: 77.25 kB / 3.239 GB, free: 6.047 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.023/12.08, allocations: 0.4969 GB / 3.736 GB, free: 58.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.686e-06/12.08, allocations: 6.438 kB / 3.736 GB, free: 58.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001932/12.08, allocations: 45.36 kB / 3.736 GB, free: 58.68 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01716/12.1, allocations: 2.983 MB / 3.739 GB, free: 57.44 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/12.1, allocations: 10.42 kB / 3.739 GB, free: 57.44 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001339/12.1, allocations: 283.1 kB / 3.739 GB, free: 57.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008038/12.11, allocations: 0.7124 MB / 3.74 GB, free: 57.28 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007021/12.11, allocations: 1.571 MB / 3.741 GB, free: 56.91 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003381/12.12, allocations: 171.6 kB / 3.741 GB, free: 56.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/12.12, allocations: 180.5 kB / 3.742 GB, free: 56.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/12.13, allocations: 3.502 MB / 3.745 GB, free: 56.46 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.514e-05/12.13, allocations: 5.25 kB / 3.745 GB, free: 56.46 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004772/12.13, allocations: 80.23 kB / 3.745 GB, free: 56.46 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000246/12.13, allocations: 176.2 kB / 3.745 GB, free: 56.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01229/12.14, allocations: 3.296 MB / 3.748 GB, free: 56.45 MB / 0.5261 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.03253/12.17, allocations: 14.12 MB / 3.762 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00739/12.18, allocations: 2.143 MB / 3.764 GB, free: 46.89 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/12.18, allocations: 1.081 MB / 3.765 GB, free: 46.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.21/12.39, allocations: 63.66 MB / 3.827 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006485/12.4, allocations: 1.686 MB / 3.829 GB, free: 18.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 8.085e-06/12.4, allocations: 0 / 3.829 GB, free: 18.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02992/12.43, allocations: 8.154 MB / 3.837 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001989/12.43, allocations: 287.9 kB / 3.837 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002537/12.43, allocations: 1.176 MB / 3.839 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006521/12.43, allocations: 61.7 kB / 3.839 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001038/12.44, allocations: 0.8221 MB / 3.839 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001149/12.44, allocations: 0.6047 MB / 3.84 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/12.44, allocations: 44 kB / 3.84 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002611/12.44, allocations: 390.3 kB / 3.84 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003377/12.44, allocations: 1.142 MB / 3.842 GB, free: 6.992 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004292/12.44, allocations: 1.683 MB / 3.843 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004197/12.45, allocations: 1.381 MB / 3.844 GB, free: 4.098 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.556e-05/12.45, allocations: 4 kB / 3.845 GB, free: 4.094 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01246/12.46, allocations: 3.935 MB / 3.848 GB, free: 0.707 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003397/12.46, allocations: 6.269 MB / 3.854 GB, free: 9.977 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.571e-05/12.46, allocations: 16 kB / 3.854 GB, free: 9.961 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02794/12.49, allocations: 3.452 MB / 3.858 GB, free: 7.34 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002662/12.5, allocations: 329.5 kB / 3.858 GB, free: 7.086 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/12.51, allocations: 3.824 MB / 3.862 GB, free: 3.781 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004741/12.51, allocations: 265.9 kB / 3.862 GB, free: 3.582 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007519/12.51, allocations: 107.1 kB / 3.862 GB, free: 3.484 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/12.51, allocations: 4 kB / 3.862 GB, free: 3.48 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01195/12.52, allocations: 3.541 MB / 3.866 GB, free: 420 kB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.106e-05/12.52, allocations: 16.97 kB / 3.866 GB, free: 404 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4793/13, allocations: 2.301 MB / 3.868 GB, free: 87.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/13.01, allocations: 362.2 kB / 3.868 GB, free: 87.79 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008501/13.01, allocations: 3.103 MB / 3.871 GB, free: 87.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/13.02, allocations: 260.7 kB / 3.872 GB, free: 87.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008537/13.02, allocations: 102.2 kB / 3.872 GB, free: 87.25 MB / 0.5573 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: 72 * 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.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001008/13.02, allocations: 233.2 kB / 3.872 GB, free: 87.14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006433/13.02, allocations: 162.6 kB / 3.872 GB, free: 87.14 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01726/13.04, allocations: 6.765 MB / 3.879 GB, free: 86.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001446/13.04, allocations: 76.64 kB / 3.879 GB, free: 86.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/13.04, allocations: 3.094 kB / 3.879 GB, free: 86.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01297/13.05, allocations: 5.444 MB / 3.884 GB, free: 86.04 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02321/13.08, allocations: 9.467 MB / 3.893 GB, free: 85.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.601e-05/13.08, allocations: 3.75 kB / 3.893 GB, free: 85.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004065/13.08, allocations: 444.6 kB / 3.894 GB, free: 85.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002589/13.08, allocations: 439.7 kB / 3.894 GB, free: 85.48 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005994/13.08, allocations: 68.11 kB / 3.894 GB, free: 85.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/13.09, allocations: 3.207 MB / 3.897 GB, free: 82.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/13.09, allocations: 5.656 kB / 3.897 GB, free: 82.89 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/13.1, allocations: 6.753 MB / 3.904 GB, free: 82.28 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002685/13.1, allocations: 0.7656 MB / 3.905 GB, free: 82.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008009/13.1, allocations: 49.62 kB / 3.905 GB, free: 82.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003571/13.11, allocations: 216.8 kB / 3.905 GB, free: 82.03 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007552/13.11, allocations: 184.2 kB / 3.905 GB, free: 82.02 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002561/13.11, allocations: 67.03 kB / 3.905 GB, free: 82.02 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0029/13.11, allocations: 1.226 MB / 3.906 GB, free: 81.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.01e-07/13.11, allocations: 0 / 3.906 GB, free: 81.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01316/13.12, allocations: 2.364 MB / 3.909 GB, free: 81.91 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,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: 39 ($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,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02893/13.15, allocations: 9.563 MB / 3.918 GB, free: 80.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01495/13.17, allocations: 5.057 MB / 3.923 GB, free: 80.31 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/13.17, allocations: 0 / 3.923 GB, free: 80.31 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00601/13.17, allocations: 2.262 MB / 3.925 GB, free: 80.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007805/13.18, allocations: 0.7882 MB / 3.926 GB, free: 80.28 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/13.21, allocations: 6.805 MB / 3.933 GB, free: 79.11 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/13.21, allocations: 2.059 MB / 3.935 GB, free: 78.37 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006757/13.21, allocations: 1.621 MB / 3.936 GB, free: 78.34 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002767/13.22, allocations: 1.127 MB / 3.937 GB, free: 77.66 MB / 0.5573 GB Notification: Performance of SimCode: time 1.573e-06/13.22, allocations: 0 / 3.937 GB, free: 77.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.269/13.49, allocations: 112.1 MB / 4.047 GB, free: 30.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003202/13.49, allocations: 247.5 kB / 4.047 GB, free: 30.16 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.187/21.67, allocations: 0 / 4.047 GB, free: 30.16 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat