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 2/2, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.884e-05/4.904e-05, allocations: 4 kB / 273.1 MB, free: 176 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.693/7.797, allocations: 2.566 GB / 2.881 GB, free: 5.395 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/7.797, allocations: 82.81 kB / 2.881 GB, free: 5.352 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.876/12.67, allocations: 0.8797 GB / 3.76 GB, free: 4.379 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.645e-06/12.67, allocations: 0 / 3.76 GB, free: 4.379 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004547/12.67, allocations: 67.92 kB / 3.76 GB, free: 4.312 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.02169/12.7, allocations: 3.84 MB / 3.764 GB, free: 412 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/12.7, allocations: 8.031 kB / 3.764 GB, free: 404 kB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001796/12.7, allocations: 295.5 kB / 3.765 GB, free: 96 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4538/13.15, allocations: 0.8448 MB / 3.765 GB, free: 28.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/13.16, allocations: 2.085 MB / 3.767 GB, free: 28.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004546/13.16, allocations: 181.8 kB / 3.768 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/13.16, allocations: 205.2 kB / 3.768 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01513/13.18, allocations: 3.617 MB / 3.771 GB, free: 27.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001295/13.18, allocations: 8.344 kB / 3.771 GB, free: 27.45 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/13.18, allocations: 93.5 kB / 3.771 GB, free: 27.45 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004144/13.18, allocations: 166.3 kB / 3.772 GB, free: 27.45 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/13.19, allocations: 3.189 MB / 3.775 GB, free: 27.43 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.03433/13.23, allocations: 15.43 MB / 3.79 GB, free: 18.11 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008987/13.24, allocations: 2.684 MB / 3.792 GB, free: 17.51 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003147/13.24, allocations: 1.126 MB / 3.793 GB, free: 17.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06032/13.3, allocations: 18.75 MB / 3.812 GB, free: 21.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006692/13.31, allocations: 1.692 MB / 3.813 GB, free: 21.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.261e-06/13.31, allocations: 4.953 kB / 3.813 GB, free: 21.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.04072/13.35, allocations: 7.701 MB / 3.821 GB, free: 20.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000194/13.35, allocations: 257.3 kB / 3.821 GB, free: 20.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/13.35, allocations: 1.342 MB / 3.822 GB, free: 20.22 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006892/13.35, allocations: 66.69 kB / 3.823 GB, free: 20.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001385/13.35, allocations: 0.9735 MB / 3.823 GB, free: 19.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001223/13.35, allocations: 0.6277 MB / 3.824 GB, free: 19.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003845/13.36, allocations: 39.88 kB / 3.824 GB, free: 19.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003004/13.36, allocations: 385.8 kB / 3.825 GB, free: 19.17 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00308/13.36, allocations: 1.017 MB / 3.826 GB, free: 19.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003709/13.36, allocations: 1.498 MB / 3.827 GB, free: 18.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003677/13.37, allocations: 1.271 MB / 3.828 GB, free: 18.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.047e-05/13.37, allocations: 5 kB / 3.828 GB, free: 18.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01062/13.38, allocations: 3.09 MB / 3.831 GB, free: 18.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002251/13.38, allocations: 5.004 MB / 3.836 GB, free: 13.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.87e-05/13.38, allocations: 20.03 kB / 3.836 GB, free: 13.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/13.38, allocations: 233.3 kB / 3.836 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004708/13.39, allocations: 0.5282 MB / 3.837 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/13.39, allocations: 2.433 MB / 3.839 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005052/13.39, allocations: 310.3 kB / 3.84 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008459/13.39, allocations: 106.1 kB / 3.84 GB, free: 10.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/13.39, allocations: 3.812 kB / 3.84 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009689/13.4, allocations: 2.824 MB / 3.842 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.51e-05/13.4, allocations: 9.938 kB / 3.842 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/13.41, allocations: 243.2 kB / 3.843 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004433/13.41, allocations: 0.5173 MB / 3.843 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/13.41, allocations: 2.429 MB / 3.846 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004778/13.42, allocations: 306.3 kB / 3.846 GB, free: 24.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008295/13.42, allocations: 104.3 kB / 3.846 GB, free: 24.65 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.001457/13.42, allocations: 315.7 kB / 3.846 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009541/13.42, allocations: 204.1 kB / 3.846 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01743/13.44, allocations: 7.461 MB / 3.854 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/13.44, allocations: 84.8 kB / 3.854 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/13.44, allocations: 2.344 kB / 3.854 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01316/13.45, allocations: 6.499 MB / 3.86 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02852/13.48, allocations: 12.07 MB / 3.872 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.935e-05/13.48, allocations: 11.84 kB / 3.872 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003572/13.48, allocations: 431.8 kB / 3.872 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/13.49, allocations: 341.3 kB / 3.873 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006413/13.49, allocations: 73.86 kB / 3.873 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/13.49, allocations: 2.526 MB / 3.875 GB, free: 18.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/13.49, allocations: 13.81 kB / 3.875 GB, free: 18.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01613/13.51, allocations: 7.415 MB / 3.882 GB, free: 17.53 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002767/13.51, allocations: 0.7546 MB / 3.883 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/13.51, allocations: 55.81 kB / 3.883 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003927/13.51, allocations: 221.1 kB / 3.883 GB, free: 17.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008222/13.51, allocations: 166.3 kB / 3.884 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004171/13.51, allocations: 88.44 kB / 3.884 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002855/13.52, allocations: 1.119 MB / 3.885 GB, free: 17.02 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.164e-06/13.52, allocations: 0 / 3.885 GB, free: 17.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01379/13.53, allocations: 2.72 MB / 3.887 GB, free: 16.91 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.03218/13.56, allocations: 12.08 MB / 3.899 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0134/13.58, allocations: 5.007 MB / 3.904 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/13.58, allocations: 0 / 3.904 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006481/13.58, allocations: 2.619 MB / 3.907 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008982/13.59, allocations: 0.9805 MB / 3.908 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8612/14.45, allocations: 127.5 MB / 4.032 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003673/14.46, allocations: 2.29 MB / 4.034 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009923/14.47, allocations: 2.548 MB / 4.037 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003332/14.47, allocations: 1.297 MB / 4.038 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.964e-06/14.47, allocations: 1.781 kB / 4.038 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7227/15.19, allocations: 121.6 MB / 4.157 GB, free: 66.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003083/15.19, allocations: 231.2 kB / 4.157 GB, free: 65.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.719/23.91, allocations: 0 / 4.157 GB, free: 65.96 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