Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.513/2.513, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.518e-05/4.528e-05, allocations: 7.984 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4143/0.4143, allocations: 58.84 MB / 382.3 MB, free: 10.23 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.413/8.828, allocations: 2.843 GB / 3.216 GB, free: 80.29 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/8.828, allocations: 74.66 kB / 3.216 GB, free: 80.25 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.644/13.47, allocations: 0.873 GB / 4.089 GB, free: 5.691 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.056e-06/13.47, allocations: 0 / 4.089 GB, free: 5.691 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004255/13.47, allocations: 71.86 kB / 4.089 GB, free: 5.621 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02087/13.49, allocations: 3.753 MB / 4.093 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/13.49, allocations: 15.97 kB / 4.093 GB, free: 1.785 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001707/13.5, allocations: 270 kB / 4.093 GB, free: 1.512 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008773/13.5, allocations: 0.7878 MB / 4.094 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008753/13.51, allocations: 1.968 MB / 4.096 GB, free: 14.7 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003844/13.51, allocations: 159.8 kB / 4.096 GB, free: 14.54 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/13.51, allocations: 195.8 kB / 4.096 GB, free: 14.35 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/13.53, allocations: 3.237 MB / 4.099 GB, free: 10.95 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/13.53, allocations: 11.92 kB / 4.099 GB, free: 10.93 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004088/13.53, allocations: 79.97 kB / 4.099 GB, free: 10.86 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000355/13.53, allocations: 147.2 kB / 4.1 GB, free: 10.71 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/13.54, allocations: 2.817 MB / 4.102 GB, free: 7.891 MB / 0.5418 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.5074/14.05, allocations: 14.06 MB / 4.116 GB, free: 35.01 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00737/14.05, allocations: 1.983 MB / 4.118 GB, free: 34.98 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/14.06, allocations: 1.058 MB / 4.119 GB, free: 34.97 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07752/14.14, allocations: 24.67 MB / 4.143 GB, free: 19.88 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006217/14.14, allocations: 1.618 MB / 4.145 GB, free: 19.75 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00206/14.14, allocations: 181.1 kB / 4.145 GB, free: 19.75 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 9.218e-06/14.14, allocations: 0 / 4.145 GB, free: 19.75 MB / 0.5418 GB Notification: Performance of matching and sorting (n=167): time 0.03055/14.17, allocations: 7.047 MB / 4.152 GB, free: 18.86 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/14.17, allocations: 258.5 kB / 4.152 GB, free: 18.58 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002889/14.18, allocations: 1.322 MB / 4.153 GB, free: 18.41 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0006616/14.18, allocations: 55.48 kB / 4.153 GB, free: 18.38 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.001028/14.18, allocations: 0.8871 MB / 4.154 GB, free: 18.12 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/14.18, allocations: 0.5503 MB / 4.155 GB, free: 17.84 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/14.18, allocations: 41.19 kB / 4.155 GB, free: 17.84 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001498/14.18, allocations: 373.4 kB / 4.155 GB, free: 17.54 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/14.18, allocations: 0.9327 MB / 4.156 GB, free: 17.54 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/14.19, allocations: 1.324 MB / 4.157 GB, free: 17.15 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/14.19, allocations: 1.166 MB / 4.158 GB, free: 17.07 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.952e-05/14.19, allocations: 0 / 4.158 GB, free: 17.07 MB / 0.5418 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009849/14.2, allocations: 2.966 MB / 4.161 GB, free: 16.79 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.002228/14.2, allocations: 3.839 MB / 4.165 GB, free: 28.76 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-05/14.2, allocations: 11.88 kB / 4.165 GB, free: 28.76 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004503/14.21, allocations: 0.5107 MB / 4.166 GB, free: 28.73 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/14.21, allocations: 450.3 kB / 4.166 GB, free: 28.73 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/14.21, allocations: 2.705 MB / 4.169 GB, free: 26.65 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004685/14.22, allocations: 267.4 kB / 4.169 GB, free: 26.64 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007418/14.22, allocations: 97.16 kB / 4.169 GB, free: 26.64 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/14.22, allocations: 6.438 kB / 4.169 GB, free: 26.64 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007471/14.23, allocations: 2.587 MB / 4.172 GB, free: 26.51 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/14.23, allocations: 9.094 kB / 4.172 GB, free: 26.51 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009294/14.23, allocations: 192.9 kB / 4.172 GB, free: 26.48 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003958/14.23, allocations: 461.8 kB / 4.172 GB, free: 26.48 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/14.23, allocations: 1.88 MB / 4.174 GB, free: 24.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/14.24, allocations: 267.4 kB / 4.174 GB, free: 24.92 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007232/14.24, allocations: 95.23 kB / 4.174 GB, free: 24.92 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.000962/14.24, allocations: 284.5 kB / 4.175 GB, free: 24.75 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007038/14.24, allocations: 204.5 kB / 4.175 GB, free: 24.64 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01478/14.26, allocations: 7.464 MB / 4.182 GB, free: 23.95 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.814e-05/14.26, allocations: 82.11 kB / 4.182 GB, free: 23.95 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/14.26, allocations: 3.781 kB / 4.182 GB, free: 23.95 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01187/14.27, allocations: 6.506 MB / 4.189 GB, free: 23.01 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02464/14.29, allocations: 11.25 MB / 4.2 GB, free: 21.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/14.29, allocations: 3.938 kB / 4.2 GB, free: 21.93 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/14.29, allocations: 364.7 kB / 4.2 GB, free: 21.93 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004215/14.3, allocations: 1.304 MB / 4.201 GB, free: 21.86 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005874/14.3, allocations: 71.47 kB / 4.201 GB, free: 21.86 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003496/14.3, allocations: 3.202 MB / 4.204 GB, free: 19.76 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/14.3, allocations: 8.125 kB / 4.204 GB, free: 19.76 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01456/14.32, allocations: 7.275 MB / 4.211 GB, free: 18.52 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/14.32, allocations: 0.736 MB / 4.212 GB, free: 18.21 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009903/14.32, allocations: 55 kB / 4.212 GB, free: 18.21 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003739/14.33, allocations: 197 kB / 4.212 GB, free: 18.2 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007078/14.33, allocations: 160.3 kB / 4.213 GB, free: 18.2 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/14.33, allocations: 77.3 kB / 4.213 GB, free: 18.2 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002818/14.33, allocations: 1.2 MB / 4.214 GB, free: 18.04 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.435e-06/14.33, allocations: 0 / 4.214 GB, free: 18.04 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01429/14.34, allocations: 2.632 MB / 4.216 GB, free: 17.93 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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.03078/14.37, allocations: 11.4 MB / 4.228 GB, free: 14.88 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01254/14.39, allocations: 4.576 MB / 4.232 GB, free: 14.56 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/14.39, allocations: 0 / 4.232 GB, free: 14.56 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006458/14.39, allocations: 2.444 MB / 4.234 GB, free: 14.43 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009108/14.4, allocations: 0.9914 MB / 4.235 GB, free: 14.39 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0218/14.42, allocations: 6.968 MB / 4.242 GB, free: 13.02 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002596/14.43, allocations: 2.194 MB / 4.244 GB, free: 12.25 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.008459/14.44, allocations: 2.48 MB / 4.247 GB, free: 12.2 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002843/14.44, allocations: 1.211 MB / 4.248 GB, free: 12.2 MB / 0.5574 GB Notification: Performance of SimCode: time 3.487e-06/14.44, allocations: 0 / 4.248 GB, free: 12.2 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7491/15.19, allocations: 119.5 MB / 4.365 GB, free: 64.38 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/15.19, allocations: 227.7 kB / 4.365 GB, free: 64.13 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.256/23.44, allocations: 0 / 4.365 GB, free: 64.13 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat