Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.898/1.898, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.297e-05, allocations: 8 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 48.68 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.519/7.625, allocations: 2.549 GB / 2.864 GB, free: 7.652 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/7.625, allocations: 79.39 kB / 2.864 GB, free: 7.613 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18/12.8, allocations: 0.8761 GB / 3.74 GB, free: 33.03 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.536e-06/12.8, allocations: 2.844 kB / 3.74 GB, free: 33.03 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003557/12.81, allocations: 66.19 kB / 3.74 GB, free: 33.02 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.02023/12.83, allocations: 3.906 MB / 3.744 GB, free: 31.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/12.83, allocations: 10.09 kB / 3.744 GB, free: 31.3 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001483/12.83, allocations: 297.3 kB / 3.744 GB, free: 31.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01051/12.84, allocations: 0.8454 MB / 3.745 GB, free: 31.12 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009175/12.85, allocations: 2.058 MB / 3.747 GB, free: 30.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004037/12.85, allocations: 182.7 kB / 3.747 GB, free: 30.67 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/12.85, allocations: 198.4 kB / 3.747 GB, free: 30.67 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/12.86, allocations: 3.628 MB / 3.751 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-05/12.86, allocations: 9.406 kB / 3.751 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000493/12.86, allocations: 91.05 kB / 3.751 GB, free: 30.15 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003397/12.86, allocations: 163.2 kB / 3.751 GB, free: 30.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/12.87, allocations: 3.247 MB / 3.754 GB, free: 30.14 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.03271/12.91, allocations: 15.37 MB / 3.769 GB, free: 20.85 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007608/12.91, allocations: 2.155 MB / 3.771 GB, free: 20.81 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002623/12.92, allocations: 1.021 MB / 3.772 GB, free: 20.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05988/12.98, allocations: 18.93 MB / 3.791 GB, free: 24.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006107/12.98, allocations: 1.667 MB / 3.793 GB, free: 24.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 5.621e-06/12.98, allocations: 3.938 kB / 3.793 GB, free: 24.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.03227/13.02, allocations: 7.522 MB / 3.8 GB, free: 23.79 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/13.02, allocations: 256.5 kB / 3.8 GB, free: 23.51 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003142/13.02, allocations: 1.426 MB / 3.802 GB, free: 23.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005971/13.02, allocations: 57.95 kB / 3.802 GB, free: 23.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009491/13.02, allocations: 0.9391 MB / 3.802 GB, free: 22.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009033/13.02, allocations: 0.5899 MB / 3.803 GB, free: 22.45 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/13.02, allocations: 41.12 kB / 3.803 GB, free: 22.45 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002201/13.02, allocations: 396.7 kB / 3.803 GB, free: 22.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/13.02, allocations: 1.008 MB / 3.804 GB, free: 22.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003013/13.03, allocations: 1.453 MB / 3.806 GB, free: 21.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003197/13.03, allocations: 1.258 MB / 3.807 GB, free: 21.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/13.03, allocations: 5 kB / 3.807 GB, free: 21.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008166/13.04, allocations: 2.915 MB / 3.81 GB, free: 21.33 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001981/13.04, allocations: 4.858 MB / 3.815 GB, free: 16.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.116e-05/13.04, allocations: 10.25 kB / 3.815 GB, free: 16.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/13.04, allocations: 237.8 kB / 3.815 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004407/13.05, allocations: 0.5232 MB / 3.815 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/13.05, allocations: 2.426 MB / 3.818 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004244/13.05, allocations: 273.7 kB / 3.818 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003116/13.05, allocations: 104.9 kB / 3.818 GB, free: 14.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/13.05, allocations: 6.688 kB / 3.818 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006997/13.06, allocations: 2.772 MB / 3.821 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.596e-05/13.06, allocations: 12.17 kB / 3.821 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/13.06, allocations: 236.3 kB / 3.821 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003851/13.07, allocations: 0.5057 MB / 3.822 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/13.07, allocations: 2.436 MB / 3.824 GB, free: 11.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003217/13.07, allocations: 269.4 kB / 3.824 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002725/13.07, allocations: 97.14 kB / 3.824 GB, free: 11.89 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.0008047/13.07, allocations: 297.7 kB / 3.825 GB, free: 11.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006093/13.07, allocations: 203.1 kB / 3.825 GB, free: 11.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/13.09, allocations: 7.546 MB / 3.832 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.787e-05/13.09, allocations: 85.73 kB / 3.832 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/13.09, allocations: 0 / 3.832 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01168/13.1, allocations: 6.56 MB / 3.839 GB, free: 9.906 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01985/13.12, allocations: 10.73 MB / 3.849 GB, free: 9.121 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/13.12, allocations: 2.438 kB / 3.849 GB, free: 9.121 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/13.12, allocations: 413.9 kB / 3.85 GB, free: 9.121 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/13.12, allocations: 335.8 kB / 3.85 GB, free: 9.082 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002853/13.12, allocations: 63.8 kB / 3.85 GB, free: 9.082 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/13.13, allocations: 2.513 MB / 3.852 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/13.13, allocations: 6.219 kB / 3.852 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/13.14, allocations: 6.786 MB / 3.859 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/13.14, allocations: 0.7453 MB / 3.86 GB, free: 6.027 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005869/13.14, allocations: 47.31 kB / 3.86 GB, free: 6.027 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/13.14, allocations: 218.7 kB / 3.86 GB, free: 6.008 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004094/13.15, allocations: 152.4 kB / 3.86 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/13.15, allocations: 70.16 kB / 3.86 GB, free: 6.004 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00249/13.15, allocations: 1.196 MB / 3.861 GB, free: 5.844 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/13.15, allocations: 0 / 3.861 GB, free: 5.844 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01272/13.16, allocations: 2.817 MB / 3.864 GB, free: 5.449 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.02742/13.19, allocations: 10.16 MB / 3.874 GB, free: 1.324 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/13.2, allocations: 4.906 MB / 3.879 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/13.2, allocations: 0 / 3.879 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005254/13.21, allocations: 2.334 MB / 3.881 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008503/13.22, allocations: 0.9584 MB / 3.882 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7753/13.99, allocations: 127 MB / 4.006 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/13.99, allocations: 2.237 MB / 4.008 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002909/14, allocations: 1.336 MB / 4.01 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/14, allocations: 0 / 4.01 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.457/19.45, allocations: 131.4 MB / 4.138 GB, free: 69.48 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat