Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.567/2.567, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.7e-05, allocations: 4 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4195/0.4196, allocations: 58.84 MB / 382.3 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.452/8.872, allocations: 2.842 GB / 3.215 GB, free: 82.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/8.872, allocations: 74.66 kB / 3.215 GB, free: 82.27 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.522/13.39, allocations: 0.8032 GB / 4.019 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.274e-06/13.39, allocations: 0 / 4.019 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003154/13.39, allocations: 58.72 kB / 4.019 GB, free: 36.29 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01999/13.41, allocations: 3.665 MB / 4.022 GB, free: 34.49 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/13.41, allocations: 13.59 kB / 4.022 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001297/13.42, allocations: 266.8 kB / 4.023 GB, free: 34.44 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008868/13.42, allocations: 0.7841 MB / 4.023 GB, free: 34.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008482/13.43, allocations: 1.99 MB / 4.025 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/13.43, allocations: 163.6 kB / 4.025 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007489/13.43, allocations: 182.5 kB / 4.026 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/13.45, allocations: 3.318 MB / 4.029 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.222e-05/13.45, allocations: 3.062 kB / 4.029 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004161/13.45, allocations: 85.47 kB / 4.029 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003033/13.45, allocations: 151 kB / 4.029 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01106/13.46, allocations: 3.034 MB / 4.032 GB, free: 33.3 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.02776/13.49, allocations: 13.83 MB / 4.046 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006703/13.49, allocations: 1.997 MB / 4.047 GB, free: 23.83 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/13.49, allocations: 1.058 MB / 4.049 GB, free: 23.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07897/13.57, allocations: 24.67 MB / 4.073 GB, free: 23.3 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005993/13.58, allocations: 1.627 MB / 4.074 GB, free: 22.75 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001805/13.58, allocations: 176.6 kB / 4.074 GB, free: 22.65 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 7.745e-06/13.58, allocations: 0 / 4.074 GB, free: 22.65 MB / 0.5418 GB Notification: Performance of matching and sorting (n=167): time 0.02954/13.61, allocations: 7.035 MB / 4.081 GB, free: 18.87 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/13.61, allocations: 259.3 kB / 4.081 GB, free: 18.56 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/13.61, allocations: 1.316 MB / 4.083 GB, free: 17.38 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.00061/13.61, allocations: 57.7 kB / 4.083 GB, free: 17.31 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009678/13.62, allocations: 0.875 MB / 4.084 GB, free: 16.51 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008808/13.62, allocations: 0.5497 MB / 4.084 GB, free: 16.01 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/13.62, allocations: 36 kB / 4.084 GB, free: 15.98 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0002243/13.62, allocations: 376.7 kB / 4.085 GB, free: 15.62 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002397/13.62, allocations: 0.9324 MB / 4.086 GB, free: 14.79 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002908/13.62, allocations: 1.323 MB / 4.087 GB, free: 13.45 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003094/13.63, allocations: 1.159 MB / 4.088 GB, free: 12.46 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/13.63, allocations: 4 kB / 4.088 GB, free: 12.45 MB / 0.5418 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009631/13.64, allocations: 2.965 MB / 4.091 GB, free: 9.832 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.002033/13.64, allocations: 3.84 MB / 4.095 GB, free: 5.656 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/13.64, allocations: 11.94 kB / 4.095 GB, free: 5.645 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004583/13.64, allocations: 0.5147 MB / 4.095 GB, free: 5.254 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004132/13.65, allocations: 452.1 kB / 4.096 GB, free: 4.879 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003304/13.65, allocations: 2.709 MB / 4.098 GB, free: 2.207 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/13.65, allocations: 253.6 kB / 4.098 GB, free: 2.016 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004536/13.65, allocations: 99.03 kB / 4.099 GB, free: 1.926 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/13.65, allocations: 4 kB / 4.099 GB, free: 1.922 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008624/13.66, allocations: 2.638 MB / 4.101 GB, free: 15.77 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/13.66, allocations: 8 kB / 4.101 GB, free: 15.76 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009853/13.66, allocations: 193.3 kB / 4.101 GB, free: 15.6 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/13.67, allocations: 461 kB / 4.102 GB, free: 15.22 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/13.67, allocations: 1.878 MB / 4.104 GB, free: 13.34 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004335/13.67, allocations: 255.5 kB / 4.104 GB, free: 13.14 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006466/13.68, allocations: 98.88 kB / 4.104 GB, free: 13.06 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008383/13.68, allocations: 292.6 kB / 4.104 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006604/13.68, allocations: 201.7 kB / 4.104 GB, free: 12.56 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/13.69, allocations: 7.451 MB / 4.112 GB, free: 5.863 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/13.69, allocations: 87.92 kB / 4.112 GB, free: 5.809 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/13.69, allocations: 0 / 4.112 GB, free: 5.809 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4602/14.15, allocations: 6.566 MB / 4.118 GB, free: 65.46 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02613/14.18, allocations: 11.22 MB / 4.129 GB, free: 64.52 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.25e-05/14.18, allocations: 3.938 kB / 4.129 GB, free: 64.52 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003038/14.18, allocations: 366.7 kB / 4.129 GB, free: 64.52 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004353/14.19, allocations: 1.293 MB / 4.131 GB, free: 64.46 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005915/14.19, allocations: 67.2 kB / 4.131 GB, free: 64.46 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002991/14.19, allocations: 3.191 MB / 4.134 GB, free: 62.38 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/14.19, allocations: 3.906 kB / 4.134 GB, free: 62.38 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/14.21, allocations: 7.288 MB / 4.141 GB, free: 61.31 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/14.21, allocations: 0.7277 MB / 4.142 GB, free: 61.12 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008062/14.21, allocations: 56.84 kB / 4.142 GB, free: 61.12 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003337/14.21, allocations: 187.5 kB / 4.142 GB, free: 61.12 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005562/14.21, allocations: 159.9 kB / 4.142 GB, free: 61.11 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/14.21, allocations: 70.14 kB / 4.142 GB, free: 61.11 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002644/14.22, allocations: 1.202 MB / 4.143 GB, free: 60.95 MB / 0.5574 GB Notification: Performance of sort global known variables: time 8.61e-07/14.22, allocations: 0 / 4.143 GB, free: 60.95 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01316/14.23, allocations: 2.599 MB / 4.146 GB, free: 60.95 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02863/14.26, allocations: 11.32 MB / 4.157 GB, free: 58.06 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0121/14.27, allocations: 4.62 MB / 4.161 GB, free: 57.74 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/14.27, allocations: 2.156 kB / 4.161 GB, free: 57.74 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.005735/14.28, allocations: 2.424 MB / 4.164 GB, free: 57.61 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008596/14.28, allocations: 0.9168 MB / 4.165 GB, free: 57.58 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/14.31, allocations: 6.942 MB / 4.172 GB, free: 56.25 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002312/14.31, allocations: 2.185 MB / 4.174 GB, free: 55.48 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.008369/14.32, allocations: 2.473 MB / 4.176 GB, free: 55.44 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/14.32, allocations: 1.196 MB / 4.177 GB, free: 55.43 MB / 0.5574 GB Notification: Performance of SimCode: time 1.644e-06/14.32, allocations: 0 / 4.177 GB, free: 55.43 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.262/14.58, allocations: 116.5 MB / 4.291 GB, free: 24.24 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002663/14.58, allocations: 228.5 kB / 4.291 GB, free: 23.99 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.682/23.26, allocations: 0 / 4.291 GB, free: 23.99 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat