Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 235 MB / 247.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.904e-05, allocations: 4 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4006, allocations: 54.85 MB / 359.9 MB, free: 3.156 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.781/8.181, allocations: 2.66 GB / 3.011 GB, free: 99.04 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/8.182, allocations: 75.28 kB / 3.012 GB, free: 99 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.054/13.24, allocations: 0.8987 GB / 3.91 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.934e-06/13.24, allocations: 3.906 kB / 3.91 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003504/13.24, allocations: 63.94 kB / 3.91 GB, free: 31.37 MB / 0.5105 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.01947/13.26, allocations: 4.03 MB / 3.914 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/13.26, allocations: 10.75 kB / 3.914 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001603/13.26, allocations: 296.6 kB / 3.915 GB, free: 29.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009617/13.27, allocations: 0.8703 MB / 3.915 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008603/13.28, allocations: 2.081 MB / 3.917 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003834/13.28, allocations: 183.5 kB / 3.918 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/13.28, allocations: 197.8 kB / 3.918 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/13.29, allocations: 3.652 MB / 3.921 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/13.29, allocations: 10.69 kB / 3.921 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005945/13.29, allocations: 90.47 kB / 3.921 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003181/13.29, allocations: 167.7 kB / 3.922 GB, free: 28.44 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/13.3, allocations: 3.29 MB / 3.925 GB, free: 28.42 MB / 0.5105 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.0323/13.34, allocations: 15.41 MB / 3.94 GB, free: 19.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007647/13.34, allocations: 2.166 MB / 3.942 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002681/13.35, allocations: 1.034 MB / 3.943 GB, free: 19.06 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05939/13.41, allocations: 18.95 MB / 3.962 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006601/13.41, allocations: 1.69 MB / 3.963 GB, free: 23.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 6.563e-06/13.41, allocations: 0 / 3.963 GB, free: 23.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.03314/13.45, allocations: 7.49 MB / 3.971 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001789/13.45, allocations: 261.2 kB / 3.971 GB, free: 21.76 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/13.45, allocations: 1.442 MB / 3.972 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006241/13.45, allocations: 53.02 kB / 3.972 GB, free: 21.54 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001226/13.45, allocations: 0.9927 MB / 3.973 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001135/13.45, allocations: 0.5948 MB / 3.974 GB, free: 20.76 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/13.45, allocations: 41 kB / 3.974 GB, free: 20.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00026/13.45, allocations: 390.3 kB / 3.974 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002965/13.46, allocations: 1.015 MB / 3.975 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003423/13.46, allocations: 1.478 MB / 3.977 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003641/13.46, allocations: 1.268 MB / 3.978 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.08e-05/13.46, allocations: 4.844 kB / 3.978 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.008929/13.47, allocations: 3.043 MB / 3.981 GB, free: 19.58 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002283/13.48, allocations: 5.008 MB / 3.986 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.647e-05/13.48, allocations: 13.66 kB / 3.986 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/13.48, allocations: 239.2 kB / 3.986 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004515/13.48, allocations: 0.513 MB / 3.986 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/13.48, allocations: 2.436 MB / 3.989 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004449/13.49, allocations: 271.7 kB / 3.989 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00075/13.49, allocations: 107.4 kB / 3.989 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/13.49, allocations: 6.281 kB / 3.989 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008281/13.5, allocations: 2.777 MB / 3.992 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-05/13.5, allocations: 13.22 kB / 3.992 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/13.5, allocations: 238 kB / 3.992 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004434/13.5, allocations: 0.5091 MB / 3.993 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/13.51, allocations: 2.431 MB / 3.995 GB, free: 9.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00413/13.51, allocations: 266.9 kB / 3.995 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005544/13.51, allocations: 108.9 kB / 3.995 GB, free: 9.934 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (247): * Single equations (assignments): 241 * 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.000948/13.51, allocations: 309.8 kB / 3.996 GB, free: 9.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006841/13.51, allocations: 205.3 kB / 3.996 GB, free: 9.648 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01528/13.53, allocations: 7.524 MB / 4.003 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.566e-05/13.53, allocations: 85.3 kB / 4.003 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/13.53, allocations: 0 / 4.003 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0118/13.54, allocations: 6.545 MB / 4.01 GB, free: 7.938 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0214/13.56, allocations: 10.72 MB / 4.02 GB, free: 7.152 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/13.56, allocations: 0 / 4.02 GB, free: 7.152 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003402/13.56, allocations: 415.1 kB / 4.021 GB, free: 7.152 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001881/13.57, allocations: 334.9 kB / 4.021 GB, free: 7.113 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004775/13.57, allocations: 68.38 kB / 4.021 GB, free: 7.109 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00234/13.57, allocations: 2.526 MB / 4.023 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/13.57, allocations: 0.8438 kB / 4.023 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/13.58, allocations: 6.789 MB / 4.03 GB, free: 20.38 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002553/13.59, allocations: 0.752 MB / 4.031 GB, free: 20.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007668/13.59, allocations: 50.06 kB / 4.031 GB, free: 20.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003332/13.59, allocations: 214.8 kB / 4.031 GB, free: 20.03 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/13.59, allocations: 147.2 kB / 4.031 GB, free: 20.01 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/13.59, allocations: 75.86 kB / 4.031 GB, free: 20 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002675/13.59, allocations: 1.203 MB / 4.032 GB, free: 19.51 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.21e-07/13.59, allocations: 0.5625 kB / 4.032 GB, free: 19.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01488/13.61, allocations: 2.844 MB / 4.035 GB, free: 18.91 MB / 0.5417 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 (200): * Single equations (assignments): 171 * 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.02958/13.64, allocations: 10.18 MB / 4.045 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01386/13.65, allocations: 5.063 MB / 4.05 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/13.65, allocations: 0 / 4.05 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005899/13.66, allocations: 2.393 MB / 4.052 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008893/13.67, allocations: 0.9736 MB / 4.053 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8656/14.53, allocations: 129.6 MB / 4.18 GB, free: 65.42 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/14.53, allocations: 2.285 MB / 4.182 GB, free: 64.61 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009146/14.54, allocations: 2.63 MB / 4.185 GB, free: 64.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002884/14.55, allocations: 1.299 MB / 4.186 GB, free: 64.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.342e-06/14.55, allocations: 3.844 kB / 4.186 GB, free: 64.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9717/15.52, allocations: 122.5 MB / 4.306 GB, free: 61.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/15.52, allocations: 238.2 kB / 4.306 GB, free: 60.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.741/24.26, allocations: 0 / 4.306 GB, free: 60.93 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat