Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.952/1.952, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.754e-05/3.793e-05, allocations: 7.984 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.868/7.974, allocations: 2.563 GB / 2.877 GB, free: 7.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/7.974, allocations: 82.88 kB / 2.877 GB, free: 7.547 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.785/12.76, allocations: 0.8461 GB / 3.723 GB, free: 20.26 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.485e-06/12.76, allocations: 0 / 3.723 GB, free: 20.26 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002847/12.76, allocations: 57.62 kB / 3.723 GB, free: 20.25 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01741/12.78, allocations: 3.629 MB / 3.727 GB, free: 18.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/12.78, allocations: 11.34 kB / 3.727 GB, free: 18.22 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001139/12.78, allocations: 271.7 kB / 3.727 GB, free: 18.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008275/12.79, allocations: 0.7651 MB / 3.728 GB, free: 17.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007928/12.79, allocations: 1.96 MB / 3.73 GB, free: 16.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002719/12.8, allocations: 171.1 kB / 3.73 GB, free: 16.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007425/12.8, allocations: 185 kB / 3.73 GB, free: 16.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/12.81, allocations: 3.203 MB / 3.733 GB, free: 13.65 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.099e-05/12.81, allocations: 4 kB / 3.733 GB, free: 13.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003763/12.81, allocations: 91.19 kB / 3.733 GB, free: 13.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002917/12.81, allocations: 147.2 kB / 3.733 GB, free: 13.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009645/12.82, allocations: 2.786 MB / 3.736 GB, free: 10.62 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.02612/12.84, allocations: 13.87 MB / 3.75 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007468/12.85, allocations: 1.945 MB / 3.752 GB, free: 9.645 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003067/12.85, allocations: 1.022 MB / 3.753 GB, free: 8.625 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4707/13.32, allocations: 18.84 MB / 3.771 GB, free: 31.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006216/13.33, allocations: 1.582 MB / 3.773 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001903/13.33, allocations: 161.3 kB / 3.773 GB, free: 31.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 9.979e-06/13.33, allocations: 0 / 3.773 GB, free: 31.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03186/13.36, allocations: 6.876 MB / 3.779 GB, free: 30.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/13.36, allocations: 257.6 kB / 3.78 GB, free: 30.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003263/13.37, allocations: 1.253 MB / 3.781 GB, free: 30.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006345/13.37, allocations: 57.39 kB / 3.781 GB, free: 30.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/13.37, allocations: 0.8916 MB / 3.782 GB, free: 30.06 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001155/13.37, allocations: 0.5449 MB / 3.782 GB, free: 29.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/13.37, allocations: 37.62 kB / 3.782 GB, free: 29.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/13.37, allocations: 381.7 kB / 3.783 GB, free: 29.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002439/13.37, allocations: 0.915 MB / 3.784 GB, free: 29.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00297/13.38, allocations: 1.333 MB / 3.785 GB, free: 29.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003062/13.38, allocations: 1.153 MB / 3.786 GB, free: 28.96 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.895e-05/13.38, allocations: 2.875 kB / 3.786 GB, free: 28.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.009493/13.39, allocations: 2.907 MB / 3.789 GB, free: 28.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001103/13.39, allocations: 4.362 MB / 3.793 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/13.39, allocations: 9.688 kB / 3.793 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00444/13.4, allocations: 0.5165 MB / 3.794 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003864/13.4, allocations: 456.8 kB / 3.794 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/13.4, allocations: 2.704 MB / 3.797 GB, free: 21.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/13.41, allocations: 260.8 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005962/13.41, allocations: 101.1 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/13.41, allocations: 7.391 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006927/13.41, allocations: 2.535 MB / 3.8 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.661e-05/13.41, allocations: 10.94 kB / 3.8 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009227/13.41, allocations: 192.6 kB / 3.8 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003957/13.42, allocations: 470.6 kB / 3.8 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/13.42, allocations: 1.866 MB / 3.802 GB, free: 20.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004317/13.42, allocations: 261.9 kB / 3.802 GB, free: 20.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005209/13.43, allocations: 94.59 kB / 3.802 GB, free: 20.25 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008353/13.43, allocations: 300.7 kB / 3.803 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006551/13.43, allocations: 187.8 kB / 3.803 GB, free: 19.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/13.44, allocations: 7.366 MB / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.955e-05/13.44, allocations: 77.94 kB / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/13.44, allocations: 0 / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01135/13.45, allocations: 6.433 MB / 3.816 GB, free: 18.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/13.48, allocations: 11.09 MB / 3.827 GB, free: 17.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.257e-05/13.48, allocations: 11.14 kB / 3.827 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/13.48, allocations: 360.9 kB / 3.828 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004112/13.48, allocations: 1.278 MB / 3.829 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005128/13.48, allocations: 65.31 kB / 3.829 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002912/13.49, allocations: 3.191 MB / 3.832 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/13.49, allocations: 10.12 kB / 3.832 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/13.5, allocations: 7.164 MB / 3.839 GB, free: 13.83 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/13.5, allocations: 0.7005 MB / 3.84 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008169/13.5, allocations: 55.72 kB / 3.84 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003189/13.51, allocations: 188.2 kB / 3.84 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000518/13.51, allocations: 154.4 kB / 3.84 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002457/13.51, allocations: 69.78 kB / 3.84 GB, free: 13.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002495/13.51, allocations: 1.063 MB / 3.841 GB, free: 13.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.333e-06/13.51, allocations: 0 / 3.841 GB, free: 13.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01468/13.52, allocations: 2.58 MB / 3.844 GB, free: 13.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02957/13.55, allocations: 11.23 MB / 3.855 GB, free: 10.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/13.57, allocations: 4.472 MB / 3.859 GB, free: 9.871 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/13.57, allocations: 3.875 kB / 3.859 GB, free: 9.871 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005629/13.57, allocations: 2.364 MB / 3.861 GB, free: 9.734 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008387/13.58, allocations: 0.9162 MB / 3.862 GB, free: 9.707 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8399/14.42, allocations: 127.2 MB / 3.986 GB, free: 64.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002433/14.42, allocations: 2.185 MB / 3.989 GB, free: 63.48 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008517/14.43, allocations: 2.419 MB / 3.991 GB, free: 63.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002636/14.43, allocations: 1.196 MB / 3.992 GB, free: 63.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.863e-06/14.43, allocations: 2.625 kB / 3.992 GB, free: 63.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2731/14.71, allocations: 116 MB / 4.105 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002988/14.71, allocations: 226.6 kB / 4.106 GB, free: 19.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/22.83, allocations: 0 / 4.106 GB, free: 19.8 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat