Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.052/2.052, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.941e-05, allocations: 4 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.843/7.956, allocations: 2.562 GB / 2.876 GB, free: 8.508 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/7.957, allocations: 79.89 kB / 2.876 GB, free: 8.469 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.737/12.69, allocations: 0.7788 GB / 3.655 GB, free: 26.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.044e-06/12.69, allocations: 0 / 3.655 GB, free: 26.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003079/12.69, allocations: 62.12 kB / 3.655 GB, free: 26.61 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01988/12.71, allocations: 3.534 MB / 3.659 GB, free: 24.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/12.71, allocations: 9.938 kB / 3.659 GB, free: 24.86 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001215/12.72, allocations: 269.7 kB / 3.659 GB, free: 24.81 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008472/12.72, allocations: 0.7529 MB / 3.66 GB, free: 24.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008354/12.73, allocations: 1.978 MB / 3.662 GB, free: 24.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003138/12.73, allocations: 171.7 kB / 3.662 GB, free: 24.24 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009382/12.73, allocations: 174.4 kB / 3.662 GB, free: 24.24 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/12.75, allocations: 3.291 MB / 3.665 GB, free: 23.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.85e-05/12.75, allocations: 3.656 kB / 3.665 GB, free: 23.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000467/12.75, allocations: 78.78 kB / 3.665 GB, free: 23.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003244/12.75, allocations: 154.3 kB / 3.665 GB, free: 23.76 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01111/12.76, allocations: 3.01 MB / 3.668 GB, free: 23.75 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.0286/12.79, allocations: 13.63 MB / 3.682 GB, free: 15.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006709/12.79, allocations: 1.955 MB / 3.684 GB, free: 15.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002624/12.8, allocations: 1.024 MB / 3.685 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06123/12.86, allocations: 18.85 MB / 3.703 GB, free: 19.53 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005915/12.86, allocations: 1.584 MB / 3.705 GB, free: 19.41 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0019/12.86, allocations: 176.9 kB / 3.705 GB, free: 19.33 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 7.053e-06/12.86, allocations: 2.812 kB / 3.705 GB, free: 19.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02852/12.89, allocations: 6.866 MB / 3.711 GB, free: 18.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001838/12.89, allocations: 257.2 kB / 3.712 GB, free: 18.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002898/12.9, allocations: 1.248 MB / 3.713 GB, free: 17.89 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006702/12.9, allocations: 55.05 kB / 3.713 GB, free: 17.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/12.9, allocations: 0.8905 MB / 3.714 GB, free: 17.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/12.9, allocations: 0.5345 MB / 3.714 GB, free: 17.16 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/12.9, allocations: 38.22 kB / 3.714 GB, free: 17.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/12.9, allocations: 380.2 kB / 3.715 GB, free: 16.85 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/12.9, allocations: 0.912 MB / 3.716 GB, free: 16.85 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002819/12.91, allocations: 1.334 MB / 3.717 GB, free: 16.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003038/12.91, allocations: 1.156 MB / 3.718 GB, free: 16.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.805e-05/12.91, allocations: 2.844 kB / 3.718 GB, free: 16.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.009679/12.92, allocations: 2.899 MB / 3.721 GB, free: 16.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001871/12.92, allocations: 4.358 MB / 3.725 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.821e-05/12.92, allocations: 14.03 kB / 3.725 GB, free: 11.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004555/12.92, allocations: 0.5158 MB / 3.726 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004002/12.93, allocations: 451.7 kB / 3.726 GB, free: 11.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/12.93, allocations: 2.701 MB / 3.729 GB, free: 9.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004517/12.94, allocations: 258.5 kB / 3.729 GB, free: 9.219 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006971/12.94, allocations: 94.39 kB / 3.729 GB, free: 9.219 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/12.94, allocations: 5.719 kB / 3.729 GB, free: 9.219 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007191/12.94, allocations: 2.533 MB / 3.732 GB, free: 9.055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/12.94, allocations: 16.8 kB / 3.732 GB, free: 9.051 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009022/12.95, allocations: 196.1 kB / 3.732 GB, free: 9.027 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/12.95, allocations: 467.2 kB / 3.732 GB, free: 9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/12.95, allocations: 1.871 MB / 3.734 GB, free: 7.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004112/12.95, allocations: 266 kB / 3.734 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006004/12.96, allocations: 87.33 kB / 3.734 GB, free: 7.398 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.0008732/12.96, allocations: 300.4 kB / 3.735 GB, free: 7.191 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006155/12.96, allocations: 192.3 kB / 3.735 GB, free: 7.098 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/12.97, allocations: 7.356 MB / 3.742 GB, free: 3.801 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/12.97, allocations: 83.59 kB / 3.742 GB, free: 3.777 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/12.97, allocations: 3.469 kB / 3.742 GB, free: 3.777 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01217/12.98, allocations: 6.43 MB / 3.748 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02768/13.01, allocations: 11.07 MB / 3.759 GB, free: 5.316 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-05/13.01, allocations: 4.562 kB / 3.759 GB, free: 5.312 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003079/13.02, allocations: 360.3 kB / 3.76 GB, free: 5.016 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004569/13.02, allocations: 1.264 MB / 3.761 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005722/13.02, allocations: 62.66 kB / 3.761 GB, free: 3.906 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/13.02, allocations: 3.201 MB / 3.764 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/13.02, allocations: 4 kB / 3.764 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4194/13.44, allocations: 7.172 MB / 3.771 GB, free: 56.06 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/13.45, allocations: 0.6968 MB / 3.772 GB, free: 55.97 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008753/13.45, allocations: 58.89 kB / 3.772 GB, free: 55.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003463/13.45, allocations: 179.8 kB / 3.772 GB, free: 55.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007209/13.45, allocations: 152.5 kB / 3.772 GB, free: 55.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/13.45, allocations: 71.25 kB / 3.772 GB, free: 55.97 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003112/13.45, allocations: 1.063 MB / 3.773 GB, free: 55.81 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.31e-07/13.45, allocations: 0 / 3.773 GB, free: 55.81 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01502/13.47, allocations: 2.535 MB / 3.776 GB, free: 55.81 MB / 490.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,$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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.03299/13.5, allocations: 11.17 MB / 3.787 GB, free: 52.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01293/13.52, allocations: 4.47 MB / 3.791 GB, free: 52.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/13.52, allocations: 0 / 3.791 GB, free: 52.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006046/13.52, allocations: 2.369 MB / 3.793 GB, free: 52.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008353/13.53, allocations: 0.8326 MB / 3.794 GB, free: 52.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3736/13.9, allocations: 126.4 MB / 3.917 GB, free: 23.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/13.91, allocations: 2.168 MB / 3.92 GB, free: 21.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008076/13.91, allocations: 2.427 MB / 3.922 GB, free: 20.49 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002487/13.92, allocations: 1.187 MB / 3.923 GB, free: 20.36 MB / 490.7 MB Notification: Performance of SimCode: time 1.674e-06/13.92, allocations: 0 / 3.923 GB, free: 20.36 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6973/14.61, allocations: 113.2 MB / 4.034 GB, free: 41.6 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/14.61, allocations: 232.4 kB / 4.034 GB, free: 41.35 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/22.97, allocations: 0 / 4.034 GB, free: 41.35 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat