Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.88/1.88, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.982e-05/3.978e-05, allocations: 4 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.409/7.513, allocations: 2.562 GB / 2.876 GB, free: 9.086 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/7.514, allocations: 78.02 kB / 2.876 GB, free: 9.047 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419/11.93, allocations: 0.7788 GB / 3.655 GB, free: 26.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/11.93, allocations: 0 / 3.655 GB, free: 26.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002978/11.93, allocations: 60.28 kB / 3.655 GB, free: 26.69 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.01836/11.95, allocations: 3.531 MB / 3.659 GB, free: 24.94 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/11.95, allocations: 7.719 kB / 3.659 GB, free: 24.94 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001027/11.95, allocations: 271.3 kB / 3.659 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008411/11.96, allocations: 0.7617 MB / 3.66 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008006/11.97, allocations: 1.971 MB / 3.662 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002795/11.97, allocations: 165.2 kB / 3.662 GB, free: 24.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008929/11.97, allocations: 176.9 kB / 3.662 GB, free: 24.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/11.98, allocations: 3.295 MB / 3.665 GB, free: 23.85 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.986e-05/11.98, allocations: 6.125 kB / 3.665 GB, free: 23.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003937/11.98, allocations: 76.62 kB / 3.665 GB, free: 23.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002933/11.98, allocations: 143 kB / 3.665 GB, free: 23.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/11.99, allocations: 3.011 MB / 3.668 GB, free: 23.84 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.023/12.02, allocations: 13.65 MB / 3.682 GB, free: 15.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005979/12.02, allocations: 1.952 MB / 3.684 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/12.02, allocations: 1.02 MB / 3.685 GB, free: 15.53 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.058/12.08, allocations: 18.85 MB / 3.703 GB, free: 19.63 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005427/12.09, allocations: 1.58 MB / 3.705 GB, free: 19.51 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001671/12.09, allocations: 172.3 kB / 3.705 GB, free: 19.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 5.801e-06/12.09, allocations: 1.125 kB / 3.705 GB, free: 19.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02717/12.12, allocations: 6.869 MB / 3.711 GB, free: 18.46 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/12.12, allocations: 257.1 kB / 3.712 GB, free: 18.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/12.12, allocations: 1.254 MB / 3.713 GB, free: 18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005822/12.12, allocations: 56.02 kB / 3.713 GB, free: 17.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000797/12.12, allocations: 0.8273 MB / 3.714 GB, free: 17.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008016/12.12, allocations: 0.547 MB / 3.714 GB, free: 17.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/12.12, allocations: 36.75 kB / 3.714 GB, free: 17.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/12.12, allocations: 383.2 kB / 3.715 GB, free: 16.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/12.12, allocations: 0.9114 MB / 3.716 GB, free: 16.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/12.13, allocations: 1.334 MB / 3.717 GB, free: 16.44 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00308/12.13, allocations: 1.162 MB / 3.718 GB, free: 16.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-05/12.13, allocations: 2.406 kB / 3.718 GB, free: 16.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.008646/12.14, allocations: 2.793 MB / 3.721 GB, free: 16.11 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001712/12.14, allocations: 4.245 MB / 3.725 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.394e-05/12.14, allocations: 13.2 kB / 3.725 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00439/12.14, allocations: 0.5194 MB / 3.725 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003807/12.15, allocations: 454 kB / 3.726 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/12.15, allocations: 2.701 MB / 3.728 GB, free: 9.531 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/12.16, allocations: 259.7 kB / 3.729 GB, free: 9.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006405/12.16, allocations: 96.59 kB / 3.729 GB, free: 9.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/12.16, allocations: 2.719 kB / 3.729 GB, free: 9.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00684/12.16, allocations: 2.534 MB / 3.731 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.495e-05/12.16, allocations: 11.38 kB / 3.731 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009056/12.16, allocations: 194.4 kB / 3.732 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/12.17, allocations: 471.3 kB / 3.732 GB, free: 9.258 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/12.17, allocations: 1.876 MB / 3.734 GB, free: 7.691 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/12.17, allocations: 257 kB / 3.734 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/12.17, allocations: 95.78 kB / 3.734 GB, free: 7.656 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.0008449/12.17, allocations: 285.2 kB / 3.734 GB, free: 7.453 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000609/12.18, allocations: 187 kB / 3.735 GB, free: 7.359 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/12.19, allocations: 7.365 MB / 3.742 GB, free: 4.109 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/12.19, allocations: 81.77 kB / 3.742 GB, free: 4.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/12.19, allocations: 3.938 kB / 3.742 GB, free: 4.086 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01155/12.2, allocations: 6.434 MB / 3.748 GB, free: 15.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02681/12.23, allocations: 11.06 MB / 3.759 GB, free: 6.016 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.202e-05/12.23, allocations: 12.09 kB / 3.759 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/12.23, allocations: 358.3 kB / 3.759 GB, free: 5.711 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004546/12.24, allocations: 1.259 MB / 3.761 GB, free: 4.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005556/12.24, allocations: 65.75 kB / 3.761 GB, free: 4.605 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/12.24, allocations: 3.191 MB / 3.764 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-05/12.24, allocations: 11.94 kB / 3.764 GB, free: 1.469 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3933/12.63, allocations: 7.145 MB / 3.771 GB, free: 56.51 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002327/12.64, allocations: 0.6964 MB / 3.771 GB, free: 56.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008693/12.64, allocations: 59.94 kB / 3.771 GB, free: 56.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/12.64, allocations: 178.5 kB / 3.772 GB, free: 56.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007088/12.64, allocations: 149.9 kB / 3.772 GB, free: 56.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002992/12.64, allocations: 71.3 kB / 3.772 GB, free: 56.42 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002855/12.64, allocations: 1.062 MB / 3.773 GB, free: 56.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.453e-06/12.64, allocations: 1.281 kB / 3.773 GB, free: 56.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01403/12.66, allocations: 2.536 MB / 3.775 GB, free: 56.26 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.0303/12.69, allocations: 11.17 MB / 3.786 GB, free: 53.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01054/12.7, allocations: 4.414 MB / 3.791 GB, free: 53.11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/12.7, allocations: 3.531 kB / 3.791 GB, free: 53.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005041/12.7, allocations: 2.363 MB / 3.793 GB, free: 52.97 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007641/12.71, allocations: 0.8288 MB / 3.794 GB, free: 52.94 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3458/13.06, allocations: 126.4 MB / 3.917 GB, free: 24.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/13.06, allocations: 2.122 MB / 3.919 GB, free: 22.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002449/13.06, allocations: 1.219 MB / 3.92 GB, free: 22.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/13.06, allocations: 0 / 3.92 GB, free: 22.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.362/18.43, allocations: 121.7 MB / 4.039 GB, free: 37.64 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat