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.495/2.495, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.571e-05, allocations: 4 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4111, allocations: 54.85 MB / 359.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.968/8.379, allocations: 2.66 GB / 3.012 GB, free: 97.18 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/8.379, allocations: 78.64 kB / 3.012 GB, free: 97.14 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.246/13.63, allocations: 0.8987 GB / 3.91 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.216e-06/13.63, allocations: 0 / 3.91 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003249/13.63, allocations: 64.67 kB / 3.91 GB, free: 30.87 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.02011/13.65, allocations: 4.033 MB / 3.914 GB, free: 29.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/13.65, allocations: 10.16 kB / 3.914 GB, free: 29.1 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001765/13.65, allocations: 301.5 kB / 3.915 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/13.66, allocations: 0.8718 MB / 3.915 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009623/13.67, allocations: 2.076 MB / 3.917 GB, free: 28.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004499/13.67, allocations: 190.5 kB / 3.918 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001273/13.67, allocations: 204.9 kB / 3.918 GB, free: 28.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/13.68, allocations: 3.626 MB / 3.921 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/13.68, allocations: 6 kB / 3.921 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001348/13.69, allocations: 93.61 kB / 3.922 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005717/13.69, allocations: 168.7 kB / 3.922 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/13.7, allocations: 3.251 MB / 3.925 GB, free: 27.93 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.03436/13.73, allocations: 15.41 MB / 3.94 GB, free: 18.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008285/13.74, allocations: 2.162 MB / 3.942 GB, free: 18.58 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003041/13.75, allocations: 1.032 MB / 3.943 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06151/13.81, allocations: 18.94 MB / 3.962 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006825/13.81, allocations: 1.675 MB / 3.963 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 7.634e-06/13.81, allocations: 0 / 3.963 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.0358/13.85, allocations: 7.495 MB / 3.97 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/13.85, allocations: 256.8 kB / 3.971 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003864/13.85, allocations: 1.437 MB / 3.972 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006621/13.85, allocations: 59.86 kB / 3.972 GB, free: 21.06 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001428/13.86, allocations: 0.9928 MB / 3.973 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001211/13.86, allocations: 0.5978 MB / 3.974 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003234/13.86, allocations: 45.16 kB / 3.974 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002909/13.86, allocations: 384.4 kB / 3.974 GB, free: 19.97 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003076/13.86, allocations: 1.017 MB / 3.975 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003595/13.86, allocations: 1.463 MB / 3.977 GB, free: 19.47 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/13.87, allocations: 1.263 MB / 3.978 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.436e-05/13.87, allocations: 6.703 kB / 3.978 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009253/13.88, allocations: 3.017 MB / 3.981 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002073/13.88, allocations: 5.011 MB / 3.986 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.647e-05/13.88, allocations: 13.59 kB / 3.986 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/13.88, allocations: 236.1 kB / 3.986 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004446/13.89, allocations: 0.5161 MB / 3.986 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/13.89, allocations: 2.425 MB / 3.989 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004575/13.89, allocations: 270.4 kB / 3.989 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000874/13.89, allocations: 110.9 kB / 3.989 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/13.89, allocations: 2.875 kB / 3.989 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009213/13.9, allocations: 2.744 MB / 3.992 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.579e-05/13.9, allocations: 18.06 kB / 3.992 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/13.9, allocations: 235.8 kB / 3.992 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00444/13.91, allocations: 0.5079 MB / 3.993 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/13.91, allocations: 2.428 MB / 3.995 GB, free: 9.469 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004333/13.92, allocations: 270.5 kB / 3.995 GB, free: 9.453 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008221/13.92, allocations: 104.9 kB / 3.995 GB, free: 9.453 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.001064/13.92, allocations: 309.9 kB / 3.996 GB, free: 9.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007668/13.92, allocations: 203.6 kB / 3.996 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01674/13.94, allocations: 7.524 MB / 4.003 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/13.94, allocations: 85.56 kB / 4.003 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/13.94, allocations: 0 / 4.003 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01293/13.95, allocations: 6.549 MB / 4.01 GB, free: 7.461 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02548/13.97, allocations: 10.74 MB / 4.02 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.036e-05/13.97, allocations: 0 / 4.02 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003641/13.98, allocations: 414 kB / 4.02 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002022/13.98, allocations: 336.2 kB / 4.021 GB, free: 6.531 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006442/13.98, allocations: 65.91 kB / 4.021 GB, free: 6.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00254/13.98, allocations: 2.513 MB / 4.023 GB, free: 20.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/13.98, allocations: 0 / 4.023 GB, free: 20.23 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/14, allocations: 6.801 MB / 4.03 GB, free: 17.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002764/14, allocations: 0.7487 MB / 4.031 GB, free: 16.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/14, allocations: 54.61 kB / 4.031 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003878/14.01, allocations: 207.7 kB / 4.031 GB, free: 16.65 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000797/14.01, allocations: 149.8 kB / 4.031 GB, free: 16.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003265/14.01, allocations: 69.5 kB / 4.031 GB, free: 16.61 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003143/14.01, allocations: 1.2 MB / 4.032 GB, free: 16.13 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.283e-06/14.01, allocations: 0 / 4.032 GB, free: 16.13 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01514/14.03, allocations: 2.85 MB / 4.035 GB, free: 15.53 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.03182/14.06, allocations: 10.2 MB / 4.045 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01465/14.07, allocations: 5.001 MB / 4.05 GB, free: 7.297 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/14.07, allocations: 0 / 4.05 GB, free: 7.297 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00645/14.08, allocations: 2.38 MB / 4.052 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008891/14.09, allocations: 0.9662 MB / 4.053 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8828/14.97, allocations: 129.9 MB / 4.18 GB, free: 63.91 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003497/14.97, allocations: 2.288 MB / 4.182 GB, free: 63.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00974/14.98, allocations: 2.632 MB / 4.185 GB, free: 63.01 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003105/14.99, allocations: 1.304 MB / 4.186 GB, free: 63.01 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/14.99, allocations: 0 / 4.186 GB, free: 63.01 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.77/15.76, allocations: 122.6 MB / 4.306 GB, free: 59.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002986/15.76, allocations: 226.2 kB / 4.306 GB, free: 59.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.686/24.44, allocations: 0 / 4.306 GB, free: 59.29 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