Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.477e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.296/2.403, allocations: 0.6806 GB / 0.9895 GB, free: 98.45 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/2.403, allocations: 82.31 kB / 0.9895 GB, free: 98.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.999/5.402, allocations: 0.5438 GB / 1.533 GB, free: 30.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.923e-06/5.402, allocations: 3.719 kB / 1.533 GB, free: 30.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002854/5.402, allocations: 60.55 kB / 1.533 GB, free: 30.01 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01268/5.415, allocations: 3.003 MB / 1.536 GB, free: 28.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/5.415, allocations: 12.03 kB / 1.536 GB, free: 28.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00494/5.42, allocations: 435.6 kB / 1.537 GB, free: 28.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00783/5.428, allocations: 1.929 MB / 1.539 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/5.428, allocations: 62.36 kB / 1.539 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005049/5.429, allocations: 97.25 kB / 1.539 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005184/5.434, allocations: 2.106 MB / 1.541 GB, free: 27.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005171/5.439, allocations: 2.342 MB / 1.543 GB, free: 27.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.616e-05/5.439, allocations: 3.562 kB / 1.543 GB, free: 27.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003118/5.44, allocations: 6.719 kB / 1.543 GB, free: 27.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002911/5.44, allocations: 155.8 kB / 1.543 GB, free: 27.51 MB / 442.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.02074/5.461, allocations: 10.7 MB / 1.554 GB, free: 21.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003926/5.465, allocations: 1.716 MB / 1.555 GB, free: 21.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001916/5.466, allocations: 0.9389 MB / 1.556 GB, free: 21.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001322/5.468, allocations: 447.8 kB / 1.557 GB, free: 21.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002098/5.47, allocations: 1.033 MB / 1.558 GB, free: 20.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 4.899e-06/5.47, allocations: 3.422 kB / 1.558 GB, free: 20.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=172): time 0.06313/5.533, allocations: 9.349 MB / 1.567 GB, free: 19.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/5.533, allocations: 253.2 kB / 1.567 GB, free: 19.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/5.535, allocations: 1.067 MB / 1.568 GB, free: 19.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006468/5.536, allocations: 29.64 kB / 1.568 GB, free: 19.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008293/5.537, allocations: 0.8652 MB / 1.569 GB, free: 18.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/5.538, allocations: 0.5649 MB / 1.57 GB, free: 18.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/5.538, allocations: 0 / 1.57 GB, free: 18.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/5.538, allocations: 399.2 kB / 1.57 GB, free: 17.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/5.541, allocations: 0.9554 MB / 1.571 GB, free: 17.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002644/5.543, allocations: 1.389 MB / 1.572 GB, free: 16.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/5.56, allocations: 2.304 MB / 1.575 GB, free: 16.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.991e-05/5.56, allocations: 6.781 kB / 1.575 GB, free: 16.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.02145/5.581, allocations: 3.842 MB / 1.578 GB, free: 15.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001581/5.583, allocations: 4.162 MB / 1.582 GB, free: 26.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.865e-05/5.583, allocations: 9.094 kB / 1.582 GB, free: 26.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006616/5.584, allocations: 174.4 kB / 1.583 GB, free: 26.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/5.588, allocations: 0.5494 MB / 1.583 GB, free: 26.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/5.591, allocations: 2.35 MB / 1.585 GB, free: 24.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/5.595, allocations: 169.6 kB / 1.586 GB, free: 24.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009204/5.596, allocations: 187.3 kB / 1.586 GB, free: 24.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/5.596, allocations: 6.562 kB / 1.586 GB, free: 24.33 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01922/5.615, allocations: 3.46 MB / 1.589 GB, free: 22.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/5.615, allocations: 11.25 kB / 1.589 GB, free: 22.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004922/5.616, allocations: 170.4 kB / 1.589 GB, free: 22.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/5.62, allocations: 0.5415 MB / 1.59 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/5.623, allocations: 2.343 MB / 1.592 GB, free: 19.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003443/5.626, allocations: 167.2 kB / 1.592 GB, free: 19.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007005/5.627, allocations: 185.9 kB / 1.592 GB, free: 19.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (250): * Single equations (assignments): 244 * 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.0009061/5.628, allocations: 233.8 kB / 1.593 GB, free: 18.82 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01913/5.647, allocations: 3.291 MB / 1.596 GB, free: 16.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008408/5.648, allocations: 185.8 kB / 1.596 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02459/5.672, allocations: 3.902 MB / 1.6 GB, free: 12.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/5.672, allocations: 16 kB / 1.6 GB, free: 12.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/5.672, allocations: 0 / 1.6 GB, free: 12.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02068/5.693, allocations: 3.408 MB / 1.603 GB, free: 9.902 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03403/5.727, allocations: 6.876 MB / 1.61 GB, free: 4.051 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/5.727, allocations: 4.094 kB / 1.61 GB, free: 4.047 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003896/5.731, allocations: 419.4 kB / 1.61 GB, free: 3.637 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007042/5.732, allocations: 167.3 kB / 1.61 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005428/5.732, allocations: 63.95 kB / 1.611 GB, free: 3.402 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/5.735, allocations: 3.023 MB / 1.613 GB, free: 192 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.534e-05/5.735, allocations: 15.86 kB / 1.613 GB, free: 180 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02518/5.761, allocations: 5.099 MB / 1.618 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/5.763, allocations: 0.4945 MB / 1.619 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008295/5.764, allocations: 23.98 kB / 1.619 GB, free: 10.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002769/5.767, allocations: 95.75 kB / 1.619 GB, free: 10.19 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005421/5.767, allocations: 161 kB / 1.619 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004342/5.768, allocations: 144 kB / 1.619 GB, free: 9.891 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00194/5.77, allocations: 0.7928 MB / 1.62 GB, free: 9.102 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/5.77, allocations: 0 / 1.62 GB, free: 9.102 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01015/5.78, allocations: 1.783 MB / 1.622 GB, free: 7.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (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) * 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 (184): * Single equations (assignments): 178 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.38/6.16, allocations: 9.629 MB / 1.631 GB, free: 59.85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01184/6.172, allocations: 3.953 MB / 1.635 GB, free: 59.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/6.172, allocations: 1.812 kB / 1.635 GB, free: 59.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003307/6.175, allocations: 1.365 MB / 1.636 GB, free: 59.34 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007269/6.182, allocations: 0.7707 MB / 1.637 GB, free: 59.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/6.209, allocations: 6.319 MB / 1.643 GB, free: 58.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/6.211, allocations: 1.692 MB / 1.645 GB, free: 57.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003879/6.215, allocations: 0.9999 MB / 1.646 GB, free: 57.58 MB / 474.7 MB Notification: Performance of SimCode: time 2.695e-06/6.215, allocations: 0 / 1.646 GB, free: 57.58 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.615/10.83, allocations: 91.05 MB / 1.735 GB, free: 46.86 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat