Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.911/1.911, allocations: 209.4 MB / 216.5 MB, free: 6.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.104e-05, allocations: 0 / 267.6 MB, free: 4.969 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 48.7 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.661/7.768, allocations: 2.549 GB / 2.858 GB, free: 39.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/7.768, allocations: 78.64 kB / 2.858 GB, free: 39.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.828/12.6, allocations: 0.8686 GB / 3.727 GB, free: 16.17 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.785e-06/12.6, allocations: 3.938 kB / 3.727 GB, free: 16.17 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003596/12.6, allocations: 63.92 kB / 3.727 GB, free: 16.16 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01924/12.62, allocations: 3.897 MB / 3.731 GB, free: 13.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/12.62, allocations: 8.031 kB / 3.731 GB, free: 13.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009263/12.63, allocations: 0.8399 MB / 3.731 GB, free: 12.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008563/12.63, allocations: 2.075 MB / 3.733 GB, free: 10.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/12.63, allocations: 87.98 kB / 3.733 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/12.64, allocations: 116 kB / 3.734 GB, free: 9.977 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007906/12.64, allocations: 2.655 MB / 3.736 GB, free: 7.316 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008959/12.65, allocations: 2.858 MB / 3.739 GB, free: 4.266 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.064e-05/12.65, allocations: 11.84 kB / 3.739 GB, free: 4.254 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004054/12.65, allocations: 8 kB / 3.739 GB, free: 4.246 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003158/12.65, allocations: 167.7 kB / 3.739 GB, free: 4.082 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.805/13.46, allocations: 109.5 MB / 3.846 GB, free: 18.9 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00489/13.46, allocations: 2.067 MB / 3.848 GB, free: 18.29 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002483/13.47, allocations: 0.945 MB / 3.849 GB, free: 18.28 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05716/13.52, allocations: 17.53 MB / 3.866 GB, free: 22.74 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002968/13.53, allocations: 1.157 MB / 3.867 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=149): time 5.511e-06/13.53, allocations: 0 / 3.867 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.03469/13.56, allocations: 7.78 MB / 3.875 GB, free: 21.04 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002262/13.56, allocations: 364 kB / 3.875 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/13.56, allocations: 1.151 MB / 3.876 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005902/13.56, allocations: 29.67 kB / 3.876 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001331/13.57, allocations: 1.033 MB / 3.877 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001091/13.57, allocations: 0.5388 MB / 3.878 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/13.57, allocations: 0 / 3.878 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002454/13.57, allocations: 383.5 kB / 3.878 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002544/13.57, allocations: 0.9877 MB / 3.879 GB, free: 19.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00313/13.57, allocations: 1.434 MB / 3.881 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01963/13.59, allocations: 2.782 MB / 3.883 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.934e-05/13.59, allocations: 3.875 kB / 3.883 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02528/13.62, allocations: 4.46 MB / 3.888 GB, free: 18.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002011/13.62, allocations: 4.949 MB / 3.893 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.626e-05/13.62, allocations: 10.34 kB / 3.893 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/13.62, allocations: 218.7 kB / 3.893 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004374/13.63, allocations: 0.5123 MB / 3.893 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002349/13.63, allocations: 2.466 MB / 3.896 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/13.63, allocations: 262 kB / 3.896 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006127/13.63, allocations: 108.2 kB / 3.896 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/13.63, allocations: 5.766 kB / 3.896 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02301/13.66, allocations: 4.022 MB / 3.9 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.417e-05/13.66, allocations: 14.12 kB / 3.9 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008408/13.66, allocations: 219.2 kB / 3.9 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004187/13.66, allocations: 0.5104 MB / 3.901 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/13.66, allocations: 2.463 MB / 3.903 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004014/13.67, allocations: 243.7 kB / 3.903 GB, free: 9.156 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007128/13.67, allocations: 101.2 kB / 3.903 GB, free: 9.156 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00097/13.67, allocations: 234.1 kB / 3.904 GB, free: 8.98 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009236/13.68, allocations: 2.459 MB / 3.906 GB, free: 8.789 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/13.68, allocations: 188.2 kB / 3.906 GB, free: 8.695 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/13.69, allocations: 6.308 MB / 3.912 GB, free: 8.164 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.219e-05/13.69, allocations: 71.11 kB / 3.912 GB, free: 8.164 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/13.69, allocations: 7.828 kB / 3.912 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01091/13.71, allocations: 5.277 MB / 3.918 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/13.73, allocations: 9.009 MB / 3.926 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/13.73, allocations: 0 / 3.926 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003024/13.73, allocations: 356.8 kB / 3.927 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001393/13.73, allocations: 330.2 kB / 3.927 GB, free: 4.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004057/13.73, allocations: 33.19 kB / 3.927 GB, free: 4.051 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/13.73, allocations: 2.641 MB / 3.93 GB, free: 1.664 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/13.73, allocations: 0 / 3.93 GB, free: 1.664 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/13.75, allocations: 6.245 MB / 3.936 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/13.75, allocations: 0.6875 MB / 3.936 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008523/13.75, allocations: 15.02 kB / 3.936 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/13.76, allocations: 176.8 kB / 3.937 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000519/13.76, allocations: 134.8 kB / 3.937 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002572/13.76, allocations: 64.05 kB / 3.937 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00244/13.76, allocations: 1.042 MB / 3.938 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.51e-07/13.76, allocations: 0 / 3.938 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0144/13.77, allocations: 2.683 MB / 3.94 GB, free: 10.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03276/13.81, allocations: 10.03 MB / 3.95 GB, free: 4.168 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01263/13.82, allocations: 4.63 MB / 3.955 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/13.82, allocations: 4 kB / 3.955 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005373/13.82, allocations: 2.109 MB / 3.957 GB, free: 356 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009022/13.83, allocations: 0.8998 MB / 3.958 GB, free: 0 / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.445/14.28, allocations: 6.744 MB / 3.964 GB, free: 95.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003498/14.28, allocations: 2.192 MB / 3.966 GB, free: 94.82 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01027/14.29, allocations: 2.552 MB / 3.969 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003126/14.3, allocations: 1.219 MB / 3.97 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of SimCode: time 1.753e-06/14.3, allocations: 0.9062 kB / 3.97 GB, free: 94.79 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.278/14.57, allocations: 100.7 MB / 4.068 GB, free: 85.95 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002393/14.57, allocations: 180 kB / 4.069 GB, free: 85.75 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.365/21.94, allocations: 0 / 4.069 GB, free: 85.75 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat