Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.368/2.368, allocations: 270 MB / 283.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.522e-05/3.523e-05, allocations: 0 / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1807, allocations: 61.89 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.121/9.302, allocations: 2.834 GB / 3.235 GB, free: 8.961 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/9.302, allocations: 80.2 kB / 3.235 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.325/14.63, allocations: 0.9141 GB / 4.149 GB, free: 36.34 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.765e-06/14.63, allocations: 0 / 4.149 GB, free: 36.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002875/14.63, allocations: 63.78 kB / 4.149 GB, free: 36.33 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.0187/14.65, allocations: 4.05 MB / 4.153 GB, free: 34.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/14.65, allocations: 9.594 kB / 4.153 GB, free: 34.56 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001169/14.65, allocations: 299 kB / 4.154 GB, free: 34.51 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008961/14.66, allocations: 0.8781 MB / 4.154 GB, free: 34.37 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008295/14.66, allocations: 2.07 MB / 4.156 GB, free: 33.92 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/14.67, allocations: 177 kB / 4.157 GB, free: 33.91 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008231/14.67, allocations: 196.2 kB / 4.157 GB, free: 33.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/14.68, allocations: 3.66 MB / 4.16 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/14.68, allocations: 9.062 kB / 4.16 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006335/14.68, allocations: 88.02 kB / 4.16 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000338/14.68, allocations: 169.8 kB / 4.161 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01187/14.69, allocations: 3.268 MB / 4.164 GB, free: 33.39 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.03466/14.73, allocations: 15.59 MB / 4.179 GB, free: 24.06 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00781/14.73, allocations: 2.191 MB / 4.181 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/14.74, allocations: 1.062 MB / 4.182 GB, free: 24 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07897/14.82, allocations: 24.63 MB / 4.206 GB, free: 24.79 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006416/14.82, allocations: 1.711 MB / 4.208 GB, free: 24.66 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 8.045e-06/14.82, allocations: 8.203 kB / 4.208 GB, free: 24.66 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.03188/14.85, allocations: 7.656 MB / 4.215 GB, free: 23.58 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/14.85, allocations: 254.8 kB / 4.216 GB, free: 23.29 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003392/14.86, allocations: 1.502 MB / 4.217 GB, free: 23.11 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006156/14.86, allocations: 60.92 kB / 4.217 GB, free: 23.07 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001128/14.86, allocations: 0.9805 MB / 4.218 GB, free: 22.69 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001056/14.86, allocations: 0.5951 MB / 4.219 GB, free: 22.31 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/14.86, allocations: 44.78 kB / 4.219 GB, free: 22.31 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002236/14.86, allocations: 382.1 kB / 4.219 GB, free: 22 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/14.86, allocations: 1.03 MB / 4.22 GB, free: 22 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/14.87, allocations: 1.443 MB / 4.222 GB, free: 21.54 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003446/14.87, allocations: 1.264 MB / 4.223 GB, free: 21.43 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.96e-05/14.87, allocations: 5.531 kB / 4.223 GB, free: 21.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009488/14.88, allocations: 3.095 MB / 4.226 GB, free: 21.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001786/14.88, allocations: 4.484 MB / 4.23 GB, free: 16.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.411e-05/14.88, allocations: 10.75 kB / 4.23 GB, free: 16.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/14.88, allocations: 231.1 kB / 4.23 GB, free: 16.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004459/14.89, allocations: 0.5193 MB / 4.231 GB, free: 16.37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/14.89, allocations: 2.42 MB / 4.233 GB, free: 14.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004573/14.9, allocations: 275.1 kB / 4.234 GB, free: 14.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007277/14.9, allocations: 107.1 kB / 4.234 GB, free: 14.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/14.9, allocations: 5.906 kB / 4.234 GB, free: 14.25 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008153/14.9, allocations: 2.82 MB / 4.236 GB, free: 14.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.39e-05/14.9, allocations: 11.86 kB / 4.236 GB, free: 14.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/14.91, allocations: 233 kB / 4.237 GB, free: 14.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004344/14.91, allocations: 0.5047 MB / 4.237 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/14.91, allocations: 2.432 MB / 4.239 GB, free: 11.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004248/14.92, allocations: 271.6 kB / 4.24 GB, free: 11.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006246/14.92, allocations: 101.1 kB / 4.24 GB, free: 11.93 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.0009177/14.92, allocations: 296.4 kB / 4.24 GB, free: 11.72 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/14.92, allocations: 218.7 kB / 4.24 GB, free: 11.61 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01598/14.93, allocations: 7.641 MB / 4.248 GB, free: 8.586 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001181/14.93, allocations: 82.48 kB / 4.248 GB, free: 8.566 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/14.93, allocations: 0 / 4.248 GB, free: 8.566 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01222/14.95, allocations: 6.648 MB / 4.254 GB, free: 5.363 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02555/14.97, allocations: 11.05 MB / 4.265 GB, free: 15.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/14.97, allocations: 4 kB / 4.265 GB, free: 15.66 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003641/14.98, allocations: 416.8 kB / 4.266 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/14.98, allocations: 338.9 kB / 4.266 GB, free: 15.06 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005263/14.98, allocations: 69.56 kB / 4.266 GB, free: 15.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/14.98, allocations: 2.517 MB / 4.268 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/14.98, allocations: 3.938 kB / 4.268 GB, free: 12.48 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/15, allocations: 6.926 MB / 4.275 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002665/15, allocations: 0.7847 MB / 4.276 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008385/15, allocations: 46.34 kB / 4.276 GB, free: 5.348 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003516/15, allocations: 215.9 kB / 4.276 GB, free: 5.184 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005602/15, allocations: 152.1 kB / 4.276 GB, free: 5.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000291/15, allocations: 74.73 kB / 4.276 GB, free: 5.027 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003172/15.01, allocations: 1.329 MB / 4.278 GB, free: 3.797 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.71e-07/15.01, allocations: 0 / 4.278 GB, free: 3.797 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01432/15.02, allocations: 2.887 MB / 4.281 GB, free: 0.9688 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.03341/15.06, allocations: 10.33 MB / 4.291 GB, free: 7.859 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01464/15.07, allocations: 5.059 MB / 4.296 GB, free: 3.156 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/15.07, allocations: 4 kB / 4.296 GB, free: 3.152 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005532/15.08, allocations: 2.366 MB / 4.298 GB, free: 0.9336 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00944/15.09, allocations: 1.037 MB / 4.299 GB, free: 180 kB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.497/15.58, allocations: 7.58 MB / 4.306 GB, free: 80.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00401/15.59, allocations: 2.285 MB / 4.308 GB, free: 79.52 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01074/15.6, allocations: 2.683 MB / 4.311 GB, free: 79.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002996/15.6, allocations: 1.302 MB / 4.312 GB, free: 79.5 MB / 0.6042 GB Notification: Performance of SimCode: time 2.765e-06/15.6, allocations: 0 / 4.312 GB, free: 79.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2765/15.88, allocations: 125.3 MB / 4.435 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/15.88, allocations: 228.8 kB / 4.435 GB, free: 67.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.345/25.22, allocations: 0 / 4.435 GB, free: 67.86 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat