Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.457/2.457, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.013e-05/5.019e-05, allocations: 4 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1583, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.991/9.15, allocations: 2.834 GB / 3.235 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/9.15, allocations: 81.05 kB / 3.235 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.448/14.6, allocations: 0.9141 GB / 4.149 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.204e-06/14.6, allocations: 0 / 4.149 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003318/14.6, allocations: 64.7 kB / 4.149 GB, free: 37.79 MB / 0.5573 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.01893/14.62, allocations: 4.037 MB / 4.153 GB, free: 36.05 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/14.62, allocations: 11.81 kB / 4.153 GB, free: 36.05 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001379/14.62, allocations: 302.2 kB / 4.154 GB, free: 36 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009289/14.63, allocations: 0.8802 MB / 4.154 GB, free: 35.86 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008557/14.64, allocations: 2.068 MB / 4.156 GB, free: 35.42 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/14.64, allocations: 179.2 kB / 4.157 GB, free: 35.42 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/14.64, allocations: 204.4 kB / 4.157 GB, free: 35.42 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/14.65, allocations: 3.654 MB / 4.16 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.879e-05/14.65, allocations: 7.656 kB / 4.16 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004935/14.65, allocations: 88.66 kB / 4.16 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003269/14.65, allocations: 167.8 kB / 4.161 GB, free: 34.9 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01169/14.66, allocations: 3.271 MB / 4.164 GB, free: 34.89 MB / 0.5573 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.04829/14.71, allocations: 15.59 MB / 4.179 GB, free: 25.56 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/14.72, allocations: 2.182 MB / 4.181 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004341/14.73, allocations: 1.062 MB / 4.182 GB, free: 25.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1059/14.83, allocations: 24.62 MB / 4.206 GB, free: 26.37 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006419/14.84, allocations: 1.724 MB / 4.208 GB, free: 26.23 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 6.112e-06/14.84, allocations: 4 kB / 4.208 GB, free: 26.23 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.03254/14.87, allocations: 7.644 MB / 4.215 GB, free: 25.15 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/14.87, allocations: 261.4 kB / 4.216 GB, free: 24.86 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003525/14.88, allocations: 1.497 MB / 4.217 GB, free: 24.68 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006073/14.88, allocations: 62.45 kB / 4.217 GB, free: 24.64 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001094/14.88, allocations: 0.9791 MB / 4.218 GB, free: 24.26 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001034/14.88, allocations: 0.5991 MB / 4.219 GB, free: 23.88 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/14.88, allocations: 38.19 kB / 4.219 GB, free: 23.88 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002241/14.88, allocations: 382.9 kB / 4.219 GB, free: 23.57 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/14.88, allocations: 1.033 MB / 4.22 GB, free: 23.57 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003248/14.89, allocations: 1.445 MB / 4.221 GB, free: 23.11 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003279/14.89, allocations: 1.261 MB / 4.223 GB, free: 23 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.729e-05/14.89, allocations: 7.234 kB / 4.223 GB, free: 23 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009155/14.9, allocations: 3.093 MB / 4.226 GB, free: 22.71 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001672/14.9, allocations: 4.483 MB / 4.23 GB, free: 17.98 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-05/14.9, allocations: 14.06 kB / 4.23 GB, free: 17.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/14.9, allocations: 234 kB / 4.23 GB, free: 17.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004434/14.91, allocations: 0.5161 MB / 4.231 GB, free: 17.94 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/14.91, allocations: 2.425 MB / 4.233 GB, free: 15.86 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00461/14.91, allocations: 272.5 kB / 4.233 GB, free: 15.83 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007768/14.91, allocations: 106.5 kB / 4.234 GB, free: 15.83 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/14.91, allocations: 6.906 kB / 4.234 GB, free: 15.83 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00801/14.92, allocations: 2.815 MB / 4.236 GB, free: 15.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-05/14.92, allocations: 17.27 kB / 4.236 GB, free: 15.67 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/14.92, allocations: 231.5 kB / 4.237 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004277/14.93, allocations: 0.5061 MB / 4.237 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/14.93, allocations: 2.425 MB / 4.239 GB, free: 13.56 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/14.93, allocations: 270.2 kB / 4.24 GB, free: 13.53 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007282/14.94, allocations: 103.5 kB / 4.24 GB, free: 13.53 MB / 0.573 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.0009826/14.94, allocations: 309.4 kB / 4.24 GB, free: 13.34 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007608/14.94, allocations: 211 kB / 4.24 GB, free: 13.23 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01662/14.95, allocations: 7.628 MB / 4.248 GB, free: 11.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/14.95, allocations: 87.12 kB / 4.248 GB, free: 11.48 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/14.95, allocations: 0 / 4.248 GB, free: 11.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01305/14.97, allocations: 6.652 MB / 4.254 GB, free: 8.273 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02315/14.99, allocations: 10.9 MB / 4.265 GB, free: 3.598 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/14.99, allocations: 7.875 kB / 4.265 GB, free: 3.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00359/14.99, allocations: 418.2 kB / 4.265 GB, free: 3.555 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/15, allocations: 338.2 kB / 4.266 GB, free: 3.441 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006042/15, allocations: 67.66 kB / 4.266 GB, free: 3.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/15, allocations: 2.515 MB / 4.268 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/15, allocations: 0 / 4.268 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/15.02, allocations: 6.943 MB / 4.275 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/15.02, allocations: 0.7852 MB / 4.276 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/15.02, allocations: 51.47 kB / 4.276 GB, free: 10.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003881/15.02, allocations: 214.9 kB / 4.276 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007597/15.03, allocations: 157.6 kB / 4.276 GB, free: 9.977 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003747/15.03, allocations: 76.95 kB / 4.276 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00379/15.03, allocations: 1.326 MB / 4.278 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.12e-07/15.03, allocations: 0 / 4.278 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01528/15.04, allocations: 2.879 MB / 4.28 GB, free: 5.863 MB / 0.5886 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.03997/15.08, allocations: 10.7 MB / 4.291 GB, free: 13.74 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01535/15.1, allocations: 5.066 MB / 4.296 GB, free: 9.027 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/15.1, allocations: 0 / 4.296 GB, free: 9.027 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005845/15.11, allocations: 2.369 MB / 4.298 GB, free: 6.805 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009545/15.12, allocations: 1.047 MB / 4.299 GB, free: 6.043 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4931/15.61, allocations: 7.436 MB / 4.306 GB, free: 80.53 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004994/15.61, allocations: 2.286 MB / 4.309 GB, free: 79.76 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01181/15.63, allocations: 2.682 MB / 4.311 GB, free: 79.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003455/15.63, allocations: 1.304 MB / 4.312 GB, free: 79.74 MB / 0.6042 GB Notification: Performance of SimCode: time 1.954e-06/15.63, allocations: 1.094 kB / 4.312 GB, free: 79.74 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3214/15.95, allocations: 125.3 MB / 4.435 GB, free: 68.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/15.95, allocations: 224.8 kB / 4.435 GB, free: 68.66 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.472/25.42, allocations: 0 / 4.435 GB, free: 68.66 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat