Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.958/1.958, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.236e-05/5.249e-05, allocations: 4 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.171/8.284, allocations: 2.566 GB / 2.881 GB, free: 3.723 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/8.285, allocations: 71.53 kB / 2.881 GB, free: 3.688 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.915/13.2, allocations: 0.8797 GB / 3.76 GB, free: 2.609 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.924e-06/13.2, allocations: 0 / 3.76 GB, free: 2.609 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003604/13.2, allocations: 71.92 kB / 3.76 GB, free: 2.539 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.4279/13.63, allocations: 3.823 MB / 3.764 GB, free: 27.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/13.63, allocations: 10.83 kB / 3.764 GB, free: 27.66 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001565/13.63, allocations: 298.1 kB / 3.765 GB, free: 27.61 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/13.64, allocations: 0.849 MB / 3.765 GB, free: 27.47 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009946/13.65, allocations: 2.093 MB / 3.767 GB, free: 27.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000379/13.65, allocations: 182.3 kB / 3.768 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/13.65, allocations: 197.3 kB / 3.768 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/13.67, allocations: 3.599 MB / 3.771 GB, free: 26.58 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/13.67, allocations: 9.125 kB / 3.771 GB, free: 26.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005643/13.67, allocations: 92.81 kB / 3.771 GB, free: 26.58 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003495/13.67, allocations: 164.3 kB / 3.772 GB, free: 26.57 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/13.68, allocations: 3.156 MB / 3.775 GB, free: 26.57 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.03159/13.71, allocations: 15.43 MB / 3.79 GB, free: 17.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00812/13.72, allocations: 2.677 MB / 3.792 GB, free: 16.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002866/13.72, allocations: 1.119 MB / 3.793 GB, free: 16.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05953/13.78, allocations: 18.76 MB / 3.812 GB, free: 20.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006381/13.79, allocations: 1.685 MB / 3.813 GB, free: 20.78 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 7.113e-06/13.79, allocations: 2.125 kB / 3.813 GB, free: 20.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.03377/13.82, allocations: 7.706 MB / 3.821 GB, free: 19.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/13.82, allocations: 269.3 kB / 3.821 GB, free: 19.54 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003066/13.83, allocations: 1.333 MB / 3.822 GB, free: 19.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007117/13.83, allocations: 59.05 kB / 3.822 GB, free: 19.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/13.83, allocations: 0.9775 MB / 3.823 GB, free: 18.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/13.83, allocations: 0.6235 MB / 3.824 GB, free: 18.55 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/13.83, allocations: 40.12 kB / 3.824 GB, free: 18.55 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002489/13.83, allocations: 389.6 kB / 3.824 GB, free: 18.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/13.83, allocations: 1.014 MB / 3.825 GB, free: 18.24 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/13.84, allocations: 1.487 MB / 3.827 GB, free: 17.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003489/13.84, allocations: 1.271 MB / 3.828 GB, free: 17.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-05/13.84, allocations: 5.375 kB / 3.828 GB, free: 17.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009669/13.85, allocations: 3.05 MB / 3.831 GB, free: 17.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002064/13.85, allocations: 5.008 MB / 3.836 GB, free: 12.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-05/13.85, allocations: 15.72 kB / 3.836 GB, free: 12.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/13.85, allocations: 229.3 kB / 3.836 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004744/13.86, allocations: 0.5291 MB / 3.837 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/13.86, allocations: 2.43 MB / 3.839 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00517/13.87, allocations: 311.7 kB / 3.839 GB, free: 9.996 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007392/13.87, allocations: 103.2 kB / 3.84 GB, free: 9.996 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/13.87, allocations: 3.969 kB / 3.84 GB, free: 9.996 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008392/13.87, allocations: 2.797 MB / 3.842 GB, free: 9.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.223e-05/13.87, allocations: 11.62 kB / 3.842 GB, free: 9.855 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/13.88, allocations: 230 kB / 3.843 GB, free: 9.824 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004461/13.88, allocations: 0.5277 MB / 3.843 GB, free: 9.824 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/13.88, allocations: 2.429 MB / 3.845 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004741/13.89, allocations: 308.4 kB / 3.846 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006438/13.89, allocations: 101.7 kB / 3.846 GB, free: 23.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.001073/13.89, allocations: 307.8 kB / 3.846 GB, free: 23.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007515/13.89, allocations: 214 kB / 3.846 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/13.91, allocations: 7.466 MB / 3.854 GB, free: 22.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/13.91, allocations: 87.39 kB / 3.854 GB, free: 22.69 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/13.91, allocations: 7.125 kB / 3.854 GB, free: 22.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/13.92, allocations: 6.49 MB / 3.86 GB, free: 21.75 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/13.95, allocations: 12.04 MB / 3.872 GB, free: 20.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.911e-05/13.95, allocations: 7.938 kB / 3.872 GB, free: 20.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00369/13.95, allocations: 437.3 kB / 3.872 GB, free: 20.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/13.95, allocations: 335.8 kB / 3.873 GB, free: 20.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006608/13.95, allocations: 74.03 kB / 3.873 GB, free: 20.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002161/13.96, allocations: 2.528 MB / 3.875 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/13.96, allocations: 10.39 kB / 3.875 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/13.97, allocations: 7.424 MB / 3.882 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002664/13.97, allocations: 0.7513 MB / 3.883 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009817/13.98, allocations: 61.05 kB / 3.883 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/13.98, allocations: 211.5 kB / 3.883 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006906/13.98, allocations: 181 kB / 3.883 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002937/13.98, allocations: 82.06 kB / 3.884 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002725/13.98, allocations: 1.119 MB / 3.885 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/13.98, allocations: 0 / 3.885 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01453/14, allocations: 2.716 MB / 3.887 GB, free: 16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.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 (212): * Single equations (assignments): 183 * 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.03143/14.03, allocations: 12.1 MB / 3.899 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01567/14.04, allocations: 4.946 MB / 3.904 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.105e-05/14.04, allocations: 0 / 3.904 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01032/14.06, allocations: 2.6 MB / 3.906 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01454/14.07, allocations: 0.9844 MB / 3.907 GB, free: 9.629 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.82/14.89, allocations: 127.3 MB / 4.032 GB, free: 65.47 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/14.89, allocations: 2.288 MB / 4.034 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009323/14.9, allocations: 2.543 MB / 4.036 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003204/14.91, allocations: 1.3 MB / 4.038 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of SimCode: time 3.236e-06/14.91, allocations: 0 / 4.038 GB, free: 64.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6815/15.59, allocations: 121.7 MB / 4.157 GB, free: 68.05 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000264/15.59, allocations: 223.2 kB / 4.157 GB, free: 67.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.711/24.3, allocations: 0 / 4.157 GB, free: 67.79 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat