Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.06e-05/4.064e-05, allocations: 0 / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1328, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.66/7.793, allocations: 2.549 GB / 2.864 GB, free: 6.562 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/7.793, allocations: 75.16 kB / 2.864 GB, free: 6.527 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.086/12.88, allocations: 0.8761 GB / 3.74 GB, free: 32.99 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.144e-06/12.88, allocations: 0 / 3.74 GB, free: 32.99 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003486/12.88, allocations: 66.22 kB / 3.74 GB, free: 32.98 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01915/12.9, allocations: 3.905 MB / 3.744 GB, free: 31.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/12.9, allocations: 9.719 kB / 3.744 GB, free: 31.27 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001509/12.9, allocations: 302.7 kB / 3.744 GB, free: 31.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009921/12.91, allocations: 0.8441 MB / 3.745 GB, free: 31.08 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/12.92, allocations: 2.069 MB / 3.747 GB, free: 30.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004665/12.92, allocations: 180 kB / 3.747 GB, free: 30.63 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/12.92, allocations: 199.2 kB / 3.747 GB, free: 30.63 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01753/12.94, allocations: 3.655 MB / 3.751 GB, free: 30.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001228/12.94, allocations: 6.656 kB / 3.751 GB, free: 30.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007783/12.94, allocations: 90.55 kB / 3.751 GB, free: 30.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000454/12.94, allocations: 166.5 kB / 3.751 GB, free: 30.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/12.96, allocations: 3.282 MB / 3.754 GB, free: 30.08 MB / 474.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.03932/13, allocations: 15.37 MB / 3.769 GB, free: 20.79 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007804/13.01, allocations: 2.173 MB / 3.771 GB, free: 20.75 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002655/13.01, allocations: 1.021 MB / 3.772 GB, free: 20.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05793/13.07, allocations: 18.93 MB / 3.791 GB, free: 24.89 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006064/13.07, allocations: 1.681 MB / 3.793 GB, free: 24.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 5.821e-06/13.07, allocations: 0 / 3.793 GB, free: 24.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.03183/13.1, allocations: 7.516 MB / 3.8 GB, free: 23.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/13.1, allocations: 256.3 kB / 3.8 GB, free: 23.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/13.11, allocations: 1.432 MB / 3.802 GB, free: 23.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005881/13.11, allocations: 57.05 kB / 3.802 GB, free: 23.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/13.11, allocations: 0.9976 MB / 3.803 GB, free: 22.83 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009889/13.11, allocations: 0.5861 MB / 3.803 GB, free: 22.45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/13.11, allocations: 36.81 kB / 3.803 GB, free: 22.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000258/13.11, allocations: 390.4 kB / 3.804 GB, free: 22.14 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002663/13.11, allocations: 1.006 MB / 3.805 GB, free: 22.14 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00324/13.12, allocations: 1.469 MB / 3.806 GB, free: 21.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/13.12, allocations: 1.256 MB / 3.807 GB, free: 21.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/13.12, allocations: 2.688 kB / 3.807 GB, free: 21.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008961/13.13, allocations: 3.07 MB / 3.81 GB, free: 21.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002144/13.13, allocations: 5.004 MB / 3.815 GB, free: 16.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.89e-05/13.13, allocations: 14.28 kB / 3.815 GB, free: 16.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/13.13, allocations: 234.1 kB / 3.815 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004293/13.14, allocations: 0.513 MB / 3.816 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/13.14, allocations: 2.434 MB / 3.818 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004319/13.14, allocations: 276.8 kB / 3.819 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005728/13.14, allocations: 101.5 kB / 3.819 GB, free: 13.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/13.14, allocations: 10.91 kB / 3.819 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007725/13.15, allocations: 2.802 MB / 3.821 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.09e-05/13.15, allocations: 11 kB / 3.821 GB, free: 13.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/13.15, allocations: 236.5 kB / 3.822 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004164/13.16, allocations: 0.5063 MB / 3.822 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/13.16, allocations: 2.438 MB / 3.824 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/13.16, allocations: 271 kB / 3.825 GB, free: 11.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00061/13.16, allocations: 100.3 kB / 3.825 GB, free: 11.63 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.0009805/13.17, allocations: 300.2 kB / 3.825 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006654/13.17, allocations: 203.5 kB / 3.825 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01496/13.18, allocations: 7.539 MB / 3.833 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001076/13.18, allocations: 81.5 kB / 3.833 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/13.18, allocations: 3.5 kB / 3.833 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01269/13.19, allocations: 6.561 MB / 3.839 GB, free: 9.645 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/13.22, allocations: 10.73 MB / 3.85 GB, free: 8.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/13.22, allocations: 0 / 3.85 GB, free: 8.855 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003414/13.22, allocations: 414 kB / 3.85 GB, free: 8.855 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/13.22, allocations: 336.8 kB / 3.85 GB, free: 8.816 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005553/13.22, allocations: 64.86 kB / 3.85 GB, free: 8.816 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/13.22, allocations: 2.519 MB / 3.853 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/13.22, allocations: 2.719 kB / 3.853 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/13.24, allocations: 6.79 MB / 3.859 GB, free: 6.082 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002551/13.24, allocations: 0.7522 MB / 3.86 GB, free: 5.754 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009064/13.24, allocations: 47.69 kB / 3.86 GB, free: 5.754 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003535/13.25, allocations: 214.6 kB / 3.86 GB, free: 5.738 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005642/13.25, allocations: 148.2 kB / 3.861 GB, free: 5.738 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002532/13.25, allocations: 70.34 kB / 3.861 GB, free: 5.738 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002548/13.25, allocations: 1.193 MB / 3.862 GB, free: 5.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.973e-06/13.25, allocations: 0 / 3.862 GB, free: 5.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01348/13.26, allocations: 2.816 MB / 3.865 GB, free: 4.906 MB / 490.7 MB 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: 54 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * 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 (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.03298/13.3, allocations: 10.15 MB / 3.875 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01487/13.31, allocations: 5.028 MB / 3.879 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/13.31, allocations: 3.594 kB / 3.879 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006059/13.32, allocations: 2.346 MB / 3.882 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008885/13.33, allocations: 0.9571 MB / 3.883 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8103/14.14, allocations: 127 MB / 4.007 GB, free: 47.66 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002914/14.14, allocations: 2.274 MB / 4.009 GB, free: 46.85 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009465/14.15, allocations: 2.621 MB / 4.011 GB, free: 46.74 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002983/14.15, allocations: 1.296 MB / 4.013 GB, free: 46.74 MB / 0.4948 GB Notification: Performance of SimCode: time 1.663e-06/14.15, allocations: 0 / 4.013 GB, free: 46.74 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7126/14.86, allocations: 121.8 MB / 4.132 GB, free: 69.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003126/14.86, allocations: 225.9 kB / 4.132 GB, free: 68.81 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.836/23.7, allocations: 0 / 4.132 GB, free: 68.81 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat