Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.531/2.531, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.252e-05/4.257e-05, allocations: 4 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4211, allocations: 58.83 MB / 382.3 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.461/8.882, allocations: 2.829 GB / 3.203 GB, free: 93.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/8.883, allocations: 74.34 kB / 3.203 GB, free: 93.29 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.18/14.06, allocations: 0.9043 GB / 4.107 GB, free: 37.66 MB / 0.5418 GB Notification: Performance of FrontEnd: time 3.457e-06/14.06, allocations: 0 / 4.107 GB, free: 37.66 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0004427/14.06, allocations: 67.67 kB / 4.107 GB, free: 37.66 MB / 0.5418 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02144/14.08, allocations: 4.035 MB / 4.111 GB, free: 36.59 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/14.08, allocations: 13.38 kB / 4.111 GB, free: 36.59 MB / 0.5418 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001782/14.09, allocations: 303.3 kB / 4.112 GB, free: 36.54 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/14.1, allocations: 0.8728 MB / 4.112 GB, free: 36.39 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/14.11, allocations: 2.078 MB / 4.114 GB, free: 35.95 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000426/14.11, allocations: 177.6 kB / 4.115 GB, free: 35.95 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/14.11, allocations: 205.2 kB / 4.115 GB, free: 35.95 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/14.12, allocations: 3.657 MB / 4.118 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/14.12, allocations: 7.125 kB / 4.118 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/14.12, allocations: 93.97 kB / 4.118 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000398/14.12, allocations: 166.7 kB / 4.119 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/14.14, allocations: 3.26 MB / 4.122 GB, free: 35.42 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.03538/14.17, allocations: 15.58 MB / 4.137 GB, free: 26.11 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007882/14.18, allocations: 2.179 MB / 4.139 GB, free: 26.08 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002912/14.18, allocations: 1.067 MB / 4.14 GB, free: 26.07 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08146/14.27, allocations: 24.62 MB / 4.164 GB, free: 27.04 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006753/14.27, allocations: 1.709 MB / 4.166 GB, free: 26.92 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=163): time 6.532e-06/14.27, allocations: 3.312 kB / 4.166 GB, free: 26.92 MB / 0.5574 GB Notification: Performance of matching and sorting (n=179): time 0.0348/14.31, allocations: 7.651 MB / 4.173 GB, free: 25.89 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001828/14.31, allocations: 262.5 kB / 4.174 GB, free: 25.61 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/14.31, allocations: 1.498 MB / 4.175 GB, free: 25.43 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0006099/14.31, allocations: 61.17 kB / 4.175 GB, free: 25.4 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.001073/14.31, allocations: 0.9808 MB / 4.176 GB, free: 25.02 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009794/14.31, allocations: 0.5928 MB / 4.177 GB, free: 24.64 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/14.31, allocations: 39 kB / 4.177 GB, free: 24.64 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002493/14.31, allocations: 389 kB / 4.177 GB, free: 24.34 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/14.32, allocations: 1.03 MB / 4.178 GB, free: 24.33 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003051/14.32, allocations: 1.443 MB / 4.179 GB, free: 23.88 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003228/14.32, allocations: 1.27 MB / 4.181 GB, free: 23.79 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.779e-05/14.32, allocations: 3.219 kB / 4.181 GB, free: 23.79 MB / 0.5574 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009262/14.33, allocations: 3.089 MB / 4.184 GB, free: 23.51 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001887/14.33, allocations: 4.495 MB / 4.188 GB, free: 18.81 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/14.33, allocations: 10.62 kB / 4.188 GB, free: 18.81 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/14.34, allocations: 231.8 kB / 4.188 GB, free: 18.78 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004486/14.34, allocations: 0.5094 MB / 4.189 GB, free: 18.78 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/14.34, allocations: 2.427 MB / 4.191 GB, free: 16.71 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004637/14.35, allocations: 265.7 kB / 4.191 GB, free: 16.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006217/14.35, allocations: 106.4 kB / 4.192 GB, free: 16.7 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/14.35, allocations: 7.156 kB / 4.192 GB, free: 16.7 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008399/14.36, allocations: 2.826 MB / 4.194 GB, free: 16.55 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.66e-05/14.36, allocations: 12.12 kB / 4.194 GB, free: 16.55 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/14.36, allocations: 230.9 kB / 4.195 GB, free: 16.52 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00438/14.36, allocations: 0.5096 MB / 4.195 GB, free: 16.52 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/14.36, allocations: 2.42 MB / 4.197 GB, free: 14.45 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004449/14.37, allocations: 275.7 kB / 4.198 GB, free: 14.43 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008068/14.37, allocations: 98.94 kB / 4.198 GB, free: 14.43 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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,splitter.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 (243): * Single equations (assignments): 237 * 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.001078/14.37, allocations: 304.3 kB / 4.198 GB, free: 14.25 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00073/14.37, allocations: 210.5 kB / 4.198 GB, free: 14.15 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/14.39, allocations: 7.637 MB / 4.206 GB, free: 13.37 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/14.39, allocations: 81.2 kB / 4.206 GB, free: 13.37 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/14.39, allocations: 0 / 4.206 GB, free: 13.37 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01264/14.4, allocations: 6.647 MB / 4.212 GB, free: 12.43 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02343/14.42, allocations: 10.89 MB / 4.223 GB, free: 11.65 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-05/14.42, allocations: 0 / 4.223 GB, free: 11.65 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003647/14.43, allocations: 420.4 kB / 4.223 GB, free: 11.65 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001971/14.43, allocations: 346.5 kB / 4.224 GB, free: 11.6 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006053/14.43, allocations: 64.36 kB / 4.224 GB, free: 11.6 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/14.43, allocations: 2.514 MB / 4.226 GB, free: 25.53 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/14.43, allocations: 0 / 4.226 GB, free: 25.53 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01505/14.45, allocations: 6.924 MB / 4.233 GB, free: 24.87 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002658/14.45, allocations: 0.7808 MB / 4.234 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009206/14.45, allocations: 53.06 kB / 4.234 GB, free: 24.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003579/14.45, allocations: 216.9 kB / 4.234 GB, free: 24.52 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005616/14.46, allocations: 155.9 kB / 4.234 GB, free: 24.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003069/14.46, allocations: 74.92 kB / 4.234 GB, free: 24.52 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003016/14.46, allocations: 1.329 MB / 4.235 GB, free: 24.36 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.21e-07/14.46, allocations: 0 / 4.235 GB, free: 24.36 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01378/14.47, allocations: 2.877 MB / 4.238 GB, free: 23.95 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03038/14.5, allocations: 10.33 MB / 4.248 GB, free: 22.25 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0137/14.52, allocations: 5.063 MB / 4.253 GB, free: 21.91 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/14.52, allocations: 0 / 4.253 GB, free: 21.91 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005157/14.52, allocations: 2.363 MB / 4.256 GB, free: 21.77 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009127/14.53, allocations: 1.046 MB / 4.257 GB, free: 21.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02292/14.55, allocations: 7.439 MB / 4.264 GB, free: 19.61 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002994/14.56, allocations: 2.281 MB / 4.266 GB, free: 18.75 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009405/14.57, allocations: 2.682 MB / 4.269 GB, free: 18.69 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002917/14.57, allocations: 1.305 MB / 4.27 GB, free: 17.63 MB / 0.573 GB Notification: Performance of SimCode: time 1.783e-06/14.57, allocations: 0 / 4.27 GB, free: 17.63 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7958/15.37, allocations: 125.3 MB / 4.392 GB, free: 62 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002673/15.37, allocations: 230.4 kB / 4.393 GB, free: 61.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.933/24.3, allocations: 8.781 kB / 4.393 GB, free: 61.74 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat