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 2.007/2.007, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.766e-05/4.793e-05, allocations: 7.938 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.863/7.99, allocations: 2.549 GB / 2.864 GB, free: 5.715 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/7.991, allocations: 79.14 kB / 2.864 GB, free: 5.676 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.244/13.23, allocations: 0.8761 GB / 3.74 GB, free: 32.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.305e-06/13.23, allocations: 0 / 3.74 GB, free: 32.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003135/13.24, allocations: 62.19 kB / 3.74 GB, free: 32.26 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.01886/13.25, allocations: 3.898 MB / 3.744 GB, free: 30.56 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/13.25, allocations: 10.47 kB / 3.744 GB, free: 30.56 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001377/13.26, allocations: 295.5 kB / 3.744 GB, free: 30.51 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009523/13.27, allocations: 0.8512 MB / 3.745 GB, free: 30.37 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009311/13.27, allocations: 2.061 MB / 3.747 GB, free: 29.93 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000413/13.27, allocations: 182.8 kB / 3.747 GB, free: 29.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001194/13.28, allocations: 199.9 kB / 3.747 GB, free: 29.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/13.29, allocations: 3.628 MB / 3.751 GB, free: 29.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.605e-05/13.29, allocations: 11.89 kB / 3.751 GB, free: 29.4 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004752/13.29, allocations: 92.08 kB / 3.751 GB, free: 29.4 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003287/13.29, allocations: 167 kB / 3.751 GB, free: 29.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/13.3, allocations: 3.242 MB / 3.754 GB, free: 29.39 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.03152/13.33, allocations: 15.38 MB / 3.769 GB, free: 20.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007962/13.34, allocations: 2.16 MB / 3.771 GB, free: 20.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002705/13.34, allocations: 1.024 MB / 3.772 GB, free: 20.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05967/13.4, allocations: 18.92 MB / 3.791 GB, free: 24.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006113/13.41, allocations: 1.677 MB / 3.793 GB, free: 24.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 6.001e-06/13.41, allocations: 0 / 3.793 GB, free: 24.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.03205/13.44, allocations: 7.512 MB / 3.8 GB, free: 23.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/13.44, allocations: 263.1 kB / 3.8 GB, free: 22.76 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/13.45, allocations: 1.431 MB / 3.802 GB, free: 22.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006684/13.45, allocations: 56.11 kB / 3.802 GB, free: 22.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/13.45, allocations: 1.002 MB / 3.803 GB, free: 22.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001143/13.45, allocations: 0.5834 MB / 3.803 GB, free: 21.77 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/13.45, allocations: 42.47 kB / 3.803 GB, free: 21.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002619/13.45, allocations: 388.8 kB / 3.804 GB, free: 21.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002827/13.45, allocations: 1.004 MB / 3.805 GB, free: 21.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003409/13.46, allocations: 1.455 MB / 3.806 GB, free: 20.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003466/13.46, allocations: 1.256 MB / 3.807 GB, free: 20.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/13.46, allocations: 3.219 kB / 3.807 GB, free: 20.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009388/13.47, allocations: 3.036 MB / 3.81 GB, free: 20.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002466/13.47, allocations: 5.005 MB / 3.815 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.963e-05/13.47, allocations: 14.03 kB / 3.815 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/13.47, allocations: 237.7 kB / 3.815 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004633/13.48, allocations: 0.5103 MB / 3.816 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/13.48, allocations: 2.435 MB / 3.818 GB, free: 13.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004489/13.48, allocations: 277 kB / 3.818 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007306/13.49, allocations: 106.9 kB / 3.819 GB, free: 13.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/13.49, allocations: 8.75 kB / 3.819 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00775/13.49, allocations: 2.755 MB / 3.821 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.671e-05/13.49, allocations: 12.12 kB / 3.821 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/13.49, allocations: 238.8 kB / 3.821 GB, free: 13.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/13.5, allocations: 0.5116 MB / 3.822 GB, free: 13.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/13.5, allocations: 2.428 MB / 3.824 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004167/13.51, allocations: 270.5 kB / 3.825 GB, free: 10.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007144/13.51, allocations: 100.5 kB / 3.825 GB, free: 10.94 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.0009369/13.51, allocations: 303.1 kB / 3.825 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000657/13.51, allocations: 200.6 kB / 3.825 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01536/13.52, allocations: 7.535 MB / 3.833 GB, free: 9.891 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001323/13.52, allocations: 81.55 kB / 3.833 GB, free: 9.891 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/13.52, allocations: 0 / 3.833 GB, free: 9.891 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01283/13.54, allocations: 6.57 MB / 3.839 GB, free: 8.953 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02162/13.56, allocations: 10.72 MB / 3.849 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/13.56, allocations: 2.766 kB / 3.849 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/13.56, allocations: 411.6 kB / 3.85 GB, free: 8.172 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/13.56, allocations: 333.6 kB / 3.85 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005137/13.56, allocations: 64.61 kB / 3.85 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/13.57, allocations: 2.519 MB / 3.853 GB, free: 6.055 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/13.57, allocations: 1.594 kB / 3.853 GB, free: 6.055 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/13.58, allocations: 6.786 MB / 3.859 GB, free: 5.398 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/13.58, allocations: 0.7503 MB / 3.86 GB, free: 5.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008427/13.58, allocations: 48.88 kB / 3.86 GB, free: 5.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/13.59, allocations: 214.1 kB / 3.86 GB, free: 5.055 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004856/13.59, allocations: 149.4 kB / 3.86 GB, free: 5.051 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/13.59, allocations: 72.2 kB / 3.861 GB, free: 5.051 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002612/13.59, allocations: 1.195 MB / 3.862 GB, free: 4.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.4e-07/13.59, allocations: 0 / 3.862 GB, free: 4.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01378/13.6, allocations: 2.819 MB / 3.864 GB, free: 4.227 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.02952/13.63, allocations: 10.18 MB / 3.874 GB, free: 56 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01499/13.65, allocations: 5.011 MB / 3.879 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/13.65, allocations: 0 / 3.879 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005959/13.65, allocations: 2.339 MB / 3.882 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008899/13.66, allocations: 0.9591 MB / 3.883 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8547/14.52, allocations: 127.1 MB / 4.007 GB, free: 46.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/14.52, allocations: 2.28 MB / 4.009 GB, free: 45.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008941/14.53, allocations: 2.618 MB / 4.011 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002797/14.53, allocations: 1.295 MB / 4.013 GB, free: 45.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.793e-06/14.53, allocations: 0 / 4.013 GB, free: 45.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7145/15.25, allocations: 121.9 MB / 4.132 GB, free: 68.46 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/15.25, allocations: 220.6 kB / 4.132 GB, free: 68.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.903/24.15, allocations: 4 kB / 4.132 GB, free: 68.21 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