Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.86/1.86, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.006e-05/4.026e-05, allocations: 4 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.449/7.552, allocations: 2.545 GB / 2.86 GB, free: 11.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/7.552, allocations: 75.08 kB / 2.86 GB, free: 11.39 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.44/11.99, allocations: 0.7755 GB / 3.635 GB, free: 26.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.023e-06/11.99, allocations: 0 / 3.635 GB, free: 26.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003896/11.99, allocations: 64.58 kB / 3.635 GB, free: 26.48 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.0204/12.01, allocations: 3.833 MB / 3.639 GB, free: 24.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/12.01, allocations: 14.16 kB / 3.639 GB, free: 24.58 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001494/12.01, allocations: 287.1 kB / 3.639 GB, free: 24.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00877/12.02, allocations: 0.8159 MB / 3.64 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008686/12.03, allocations: 2.076 MB / 3.642 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003685/12.03, allocations: 173.6 kB / 3.642 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/12.03, allocations: 193.9 kB / 3.642 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01354/12.05, allocations: 3.689 MB / 3.646 GB, free: 23.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/12.05, allocations: 8.125 kB / 3.646 GB, free: 23.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008359/12.05, allocations: 85.44 kB / 3.646 GB, free: 23.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003492/12.05, allocations: 163.8 kB / 3.646 GB, free: 23.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01216/12.06, allocations: 3.411 MB / 3.65 GB, free: 23.36 MB / 458.7 MB 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.03075/12.09, allocations: 14.75 MB / 3.664 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006593/12.1, allocations: 2.125 MB / 3.666 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002542/12.1, allocations: 1.044 MB / 3.667 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06032/12.16, allocations: 18.91 MB / 3.686 GB, free: 18.67 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006002/12.17, allocations: 1.672 MB / 3.687 GB, free: 18.53 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001969/12.17, allocations: 186.4 kB / 3.687 GB, free: 18.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 8.986e-06/12.17, allocations: 0 / 3.687 GB, free: 18.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.03135/12.2, allocations: 7.351 MB / 3.695 GB, free: 17.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002449/12.2, allocations: 418.7 kB / 3.695 GB, free: 16.95 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003432/12.2, allocations: 1.49 MB / 3.696 GB, free: 16.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006647/12.21, allocations: 55.36 kB / 3.696 GB, free: 16.73 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/12.21, allocations: 0.991 MB / 3.697 GB, free: 16.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/12.21, allocations: 0.5702 MB / 3.698 GB, free: 15.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002601/12.21, allocations: 42.66 kB / 3.698 GB, free: 15.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/12.21, allocations: 380 kB / 3.698 GB, free: 15.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002877/12.21, allocations: 1.058 MB / 3.699 GB, free: 15.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003755/12.21, allocations: 1.512 MB / 3.701 GB, free: 14.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003679/12.22, allocations: 1.314 MB / 3.702 GB, free: 14.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.996e-05/12.22, allocations: 3.875 kB / 3.702 GB, free: 14.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01042/12.23, allocations: 3.325 MB / 3.705 GB, free: 12.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001806/12.23, allocations: 4.587 MB / 3.71 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.561e-05/12.23, allocations: 17.06 kB / 3.71 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008616/12.24, allocations: 0.9525 MB / 3.711 GB, free: 7.801 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003975/12.24, allocations: 476.4 kB / 3.711 GB, free: 7.754 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004402/12.25, allocations: 3.161 MB / 3.714 GB, free: 5.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004333/12.25, allocations: 233 kB / 3.715 GB, free: 5.215 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008208/12.25, allocations: 104.8 kB / 3.715 GB, free: 5.195 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/12.25, allocations: 8.062 kB / 3.715 GB, free: 5.195 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01114/12.26, allocations: 3 MB / 3.718 GB, free: 3.707 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.412e-05/12.26, allocations: 19.95 kB / 3.718 GB, free: 3.688 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/12.27, allocations: 348.5 kB / 3.718 GB, free: 3.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/12.27, allocations: 0.4903 MB / 3.718 GB, free: 2.996 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006271/12.28, allocations: 4.046 MB / 3.722 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004267/12.28, allocations: 240.1 kB / 3.723 GB, free: 14.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007342/12.28, allocations: 101.4 kB / 3.723 GB, free: 14.72 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001021/12.28, allocations: 296.7 kB / 3.723 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008627/12.28, allocations: 209.4 kB / 3.723 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/12.3, allocations: 7.759 MB / 3.731 GB, free: 7.262 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/12.3, allocations: 85.62 kB / 3.731 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/12.3, allocations: 0 / 3.731 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01427/12.32, allocations: 6.799 MB / 3.737 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4132/12.73, allocations: 10.8 MB / 3.748 GB, free: 55.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.701e-05/12.73, allocations: 1.453 kB / 3.748 GB, free: 55.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003219/12.73, allocations: 343.9 kB / 3.748 GB, free: 55.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00975/12.74, allocations: 2.502 MB / 3.751 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006384/12.74, allocations: 64.67 kB / 3.751 GB, free: 55.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/12.75, allocations: 4.105 MB / 3.755 GB, free: 53.19 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/12.75, allocations: 2.406 kB / 3.755 GB, free: 53.19 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/12.77, allocations: 7.654 MB / 3.762 GB, free: 52.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002707/12.77, allocations: 0.745 MB / 3.763 GB, free: 52.61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000938/12.77, allocations: 61.59 kB / 3.763 GB, free: 52.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003342/12.77, allocations: 190.8 kB / 3.763 GB, free: 52.61 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005795/12.77, allocations: 137.5 kB / 3.763 GB, free: 52.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/12.78, allocations: 71.34 kB / 3.764 GB, free: 52.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003014/12.78, allocations: 1.238 MB / 3.765 GB, free: 52.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.202e-06/12.78, allocations: 0 / 3.765 GB, free: 52.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01392/12.79, allocations: 2.805 MB / 3.767 GB, free: 52.45 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03066/12.82, allocations: 10.18 MB / 3.777 GB, free: 51.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01296/12.84, allocations: 5.234 MB / 3.783 GB, free: 50.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/12.84, allocations: 3.219 kB / 3.783 GB, free: 50.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005706/12.84, allocations: 2.296 MB / 3.785 GB, free: 50.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00837/12.85, allocations: 0.8804 MB / 3.786 GB, free: 50.47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3858/13.24, allocations: 126.9 MB / 3.91 GB, free: 8.684 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00248/13.24, allocations: 2.291 MB / 3.912 GB, free: 6.891 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008334/13.25, allocations: 2.385 MB / 3.914 GB, free: 5.473 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002907/13.25, allocations: 1.275 MB / 3.915 GB, free: 4.301 MB / 490.7 MB Notification: Performance of SimCode: time 1.864e-06/13.25, allocations: 0 / 3.915 GB, free: 4.301 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6875/13.94, allocations: 122.8 MB / 4.035 GB, free: 33.05 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/13.94, allocations: 241.4 kB / 4.036 GB, free: 32.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.465/22.4, allocations: 0 / 4.036 GB, free: 32.73 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat