Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.119/2.119, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.623e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 48.71 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.335/2.44, allocations: 0.6807 GB / 0.9896 GB, free: 98.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/2.44, allocations: 76.36 kB / 0.9896 GB, free: 98.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.252/5.692, allocations: 0.6076 GB / 1.597 GB, free: 4.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.124e-06/5.692, allocations: 0 / 1.597 GB, free: 4.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003418/5.692, allocations: 67.77 kB / 1.597 GB, free: 4.457 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.01416/5.706, allocations: 3.173 MB / 1.6 GB, free: 1.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/5.706, allocations: 12.03 kB / 1.6 GB, free: 1.219 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004979/5.711, allocations: 460.6 kB / 1.601 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009093/5.72, allocations: 1.987 MB / 1.603 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/5.721, allocations: 63.98 kB / 1.603 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/5.722, allocations: 103.9 kB / 1.603 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00798/5.73, allocations: 2.185 MB / 1.605 GB, free: 12.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009333/5.739, allocations: 2.441 MB / 1.607 GB, free: 9.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-05/5.739, allocations: 7.938 kB / 1.608 GB, free: 9.812 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000464/5.74, allocations: 4 kB / 1.608 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003816/5.74, allocations: 163.1 kB / 1.608 GB, free: 9.648 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.4148/6.155, allocations: 11.16 MB / 1.619 GB, free: 31.17 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00513/6.16, allocations: 1.75 MB / 1.62 GB, free: 30.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002866/6.163, allocations: 1.02 MB / 1.621 GB, free: 30.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001539/6.165, allocations: 459.1 kB / 1.622 GB, free: 30.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003217/6.168, allocations: 1.107 MB / 1.623 GB, free: 30.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=163): time 6.562e-06/6.168, allocations: 0 / 1.623 GB, free: 30.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=191): time 0.07308/6.241, allocations: 10.25 MB / 1.633 GB, free: 29.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/6.241, allocations: 257.7 kB / 1.633 GB, free: 29.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/6.244, allocations: 1.096 MB / 1.634 GB, free: 29.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007483/6.245, allocations: 30.11 kB / 1.634 GB, free: 29.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/6.246, allocations: 0.9002 MB / 1.635 GB, free: 28.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001243/6.247, allocations: 0.6269 MB / 1.636 GB, free: 28.55 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/6.247, allocations: 0 / 1.636 GB, free: 28.55 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/6.248, allocations: 401.3 kB / 1.636 GB, free: 28.24 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002807/6.25, allocations: 1.001 MB / 1.637 GB, free: 28.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003939/6.254, allocations: 1.483 MB / 1.638 GB, free: 27.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01916/6.274, allocations: 2.356 MB / 1.641 GB, free: 27.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.348e-05/6.274, allocations: 3.938 kB / 1.641 GB, free: 27.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.03353/6.307, allocations: 4.054 MB / 1.645 GB, free: 27.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001499/6.309, allocations: 4.688 MB / 1.649 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.915e-05/6.309, allocations: 10.09 kB / 1.649 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/6.311, allocations: 274.7 kB / 1.65 GB, free: 22.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006936/6.318, allocations: 0.5731 MB / 1.65 GB, free: 22.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/6.321, allocations: 3.026 MB / 1.653 GB, free: 20.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006454/6.327, allocations: 177.3 kB / 1.653 GB, free: 20.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/6.329, allocations: 207.5 kB / 1.653 GB, free: 20.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/6.329, allocations: 5.031 kB / 1.653 GB, free: 20.06 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02896/6.358, allocations: 3.673 MB / 1.657 GB, free: 19.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.89e-05/6.358, allocations: 13.62 kB / 1.657 GB, free: 19.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/6.359, allocations: 277 kB / 1.657 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005006/6.364, allocations: 0.56 MB / 1.658 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002496/6.367, allocations: 3.031 MB / 1.661 GB, free: 17.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003703/6.37, allocations: 171.9 kB / 1.661 GB, free: 17.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000838/6.371, allocations: 200.1 kB / 1.661 GB, free: 17.33 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009988/6.372, allocations: 228.5 kB / 1.661 GB, free: 17.16 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02036/6.393, allocations: 3.563 MB / 1.665 GB, free: 16.94 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009016/6.394, allocations: 198.9 kB / 1.665 GB, free: 16.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0259/6.42, allocations: 4.399 MB / 1.669 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/6.42, allocations: 21.19 kB / 1.669 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/6.42, allocations: 0 / 1.669 GB, free: 16.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02109/6.441, allocations: 3.739 MB / 1.673 GB, free: 16.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03383/6.475, allocations: 7.437 MB / 1.68 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/6.475, allocations: 6.906 kB / 1.68 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003997/6.479, allocations: 448.1 kB / 1.681 GB, free: 14.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/6.48, allocations: 296.7 kB / 1.681 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000656/6.481, allocations: 84.25 kB / 1.681 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003845/6.485, allocations: 3.723 MB / 1.685 GB, free: 27.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/6.485, allocations: 7.344 kB / 1.685 GB, free: 27.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0256/6.51, allocations: 5.557 MB / 1.69 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002222/6.513, allocations: 0.5202 MB / 1.691 GB, free: 26.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009976/6.514, allocations: 24.53 kB / 1.691 GB, free: 26.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/6.517, allocations: 106.4 kB / 1.691 GB, free: 26.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007633/6.518, allocations: 175.9 kB / 1.691 GB, free: 26.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004895/6.518, allocations: 176.2 kB / 1.691 GB, free: 26.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001811/6.52, allocations: 0.8006 MB / 1.692 GB, free: 26.28 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.62e-07/6.52, allocations: 1.344 kB / 1.692 GB, free: 26.28 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01016/6.53, allocations: 1.882 MB / 1.694 GB, free: 26.28 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,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 (201): * Single equations (assignments): 194 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03509/6.565, allocations: 10.27 MB / 1.704 GB, free: 23.03 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01135/6.577, allocations: 4.226 MB / 1.708 GB, free: 22.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/6.577, allocations: 3.656 kB / 1.708 GB, free: 22.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/6.581, allocations: 1.501 MB / 1.709 GB, free: 22.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008192/6.589, allocations: 0.9037 MB / 1.71 GB, free: 22.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/6.614, allocations: 6.593 MB / 1.717 GB, free: 21.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/6.616, allocations: 1.743 MB / 1.718 GB, free: 20.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003775/6.62, allocations: 1.088 MB / 1.719 GB, free: 20.56 MB / 474.7 MB Notification: Performance of SimCode: time 1.513e-06/6.62, allocations: 0 / 1.719 GB, free: 20.56 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.126/11.75, allocations: 104 MB / 1.821 GB, free: 63.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat