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 1.903/1.903, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.837e-05/3.847e-05, allocations: 4 kB / 273.2 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.828/7.932, allocations: 2.562 GB / 2.876 GB, free: 10.07 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/7.933, allocations: 77.39 kB / 2.876 GB, free: 10.03 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.453/12.39, allocations: 0.7788 GB / 3.655 GB, free: 26.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.964e-06/12.39, allocations: 0.9375 kB / 3.655 GB, free: 26.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000265/12.39, allocations: 63.02 kB / 3.655 GB, free: 26.88 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.01784/12.4, allocations: 3.535 MB / 3.659 GB, free: 25.13 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/12.4, allocations: 7.906 kB / 3.659 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009826/12.41, allocations: 265.7 kB / 3.659 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007941/12.41, allocations: 0.7583 MB / 3.66 GB, free: 24.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007765/12.42, allocations: 1.981 MB / 3.662 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/12.42, allocations: 169.5 kB / 3.662 GB, free: 24.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007691/12.42, allocations: 176.5 kB / 3.662 GB, free: 24.51 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/12.43, allocations: 3.307 MB / 3.665 GB, free: 24.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.7e-05/12.43, allocations: 12.78 kB / 3.665 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004079/12.43, allocations: 81.44 kB / 3.665 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002937/12.43, allocations: 144.5 kB / 3.665 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/12.45, allocations: 3.046 MB / 3.668 GB, free: 24 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.02617/12.47, allocations: 13.64 MB / 3.682 GB, free: 15.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006455/12.48, allocations: 1.956 MB / 3.684 GB, free: 15.72 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002556/12.48, allocations: 1.026 MB / 3.685 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05963/12.54, allocations: 18.86 MB / 3.703 GB, free: 19.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005857/12.55, allocations: 1.592 MB / 3.705 GB, free: 19.67 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001751/12.55, allocations: 182 kB / 3.705 GB, free: 19.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 7.725e-06/12.55, allocations: 0 / 3.705 GB, free: 19.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02804/12.58, allocations: 6.858 MB / 3.712 GB, free: 18.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/12.58, allocations: 260.2 kB / 3.712 GB, free: 18.34 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/12.58, allocations: 1.247 MB / 3.713 GB, free: 18.16 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006017/12.58, allocations: 58.48 kB / 3.713 GB, free: 18.13 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/12.58, allocations: 0.8876 MB / 3.714 GB, free: 17.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000944/12.58, allocations: 0.5424 MB / 3.714 GB, free: 17.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/12.58, allocations: 33.97 kB / 3.714 GB, free: 17.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/12.58, allocations: 384.2 kB / 3.715 GB, free: 17.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/12.58, allocations: 0.9102 MB / 3.716 GB, free: 17.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/12.59, allocations: 1.344 MB / 3.717 GB, free: 16.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/12.59, allocations: 1.158 MB / 3.718 GB, free: 16.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/12.59, allocations: 2 kB / 3.718 GB, free: 16.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.009078/12.6, allocations: 2.935 MB / 3.721 GB, free: 16.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001842/12.6, allocations: 4.351 MB / 3.725 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/12.6, allocations: 14.28 kB / 3.725 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004491/12.61, allocations: 0.5172 MB / 3.726 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/12.61, allocations: 452.9 kB / 3.726 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002835/12.61, allocations: 2.703 MB / 3.729 GB, free: 9.512 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/12.62, allocations: 254.5 kB / 3.729 GB, free: 9.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008392/12.62, allocations: 100.5 kB / 3.729 GB, free: 9.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/12.62, allocations: 3.219 kB / 3.729 GB, free: 9.48 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007831/12.63, allocations: 2.558 MB / 3.732 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/12.63, allocations: 16.41 kB / 3.732 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009408/12.63, allocations: 199.9 kB / 3.732 GB, free: 9.281 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003491/12.63, allocations: 472.1 kB / 3.732 GB, free: 9.254 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/12.63, allocations: 1.873 MB / 3.734 GB, free: 7.688 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003707/12.64, allocations: 255.8 kB / 3.734 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/12.64, allocations: 96.14 kB / 3.735 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.0007685/12.64, allocations: 295.3 kB / 3.735 GB, free: 7.449 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004452/12.64, allocations: 185.8 kB / 3.735 GB, free: 7.355 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/12.65, allocations: 7.357 MB / 3.742 GB, free: 4.094 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.675e-05/12.65, allocations: 77.91 kB / 3.742 GB, free: 4.074 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/12.65, allocations: 3.375 kB / 3.742 GB, free: 4.074 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01048/12.66, allocations: 6.433 MB / 3.749 GB, free: 80 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02588/12.69, allocations: 11.07 MB / 3.759 GB, free: 6.383 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/12.69, allocations: 4 kB / 3.759 GB, free: 6.379 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003008/12.69, allocations: 364.4 kB / 3.76 GB, free: 6.082 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004608/12.7, allocations: 1.267 MB / 3.761 GB, free: 5.023 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005222/12.7, allocations: 67.44 kB / 3.761 GB, free: 4.969 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003815/12.7, allocations: 3.199 MB / 3.764 GB, free: 1.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/12.7, allocations: 12.19 kB / 3.764 GB, free: 1.832 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4071/13.11, allocations: 7.276 MB / 3.771 GB, free: 55.79 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/13.11, allocations: 0.6954 MB / 3.772 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008052/13.11, allocations: 57.58 kB / 3.772 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003237/13.11, allocations: 180.6 kB / 3.772 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006586/13.12, allocations: 156.1 kB / 3.772 GB, free: 55.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/13.12, allocations: 72.11 kB / 3.772 GB, free: 55.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002547/13.12, allocations: 1.058 MB / 3.773 GB, free: 55.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/13.12, allocations: 0 / 3.773 GB, free: 55.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01411/13.13, allocations: 2.536 MB / 3.776 GB, free: 55.54 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.03324/13.17, allocations: 11.15 MB / 3.787 GB, free: 52.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01205/13.18, allocations: 4.528 MB / 3.791 GB, free: 52.36 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.514e-05/13.18, allocations: 5.125 kB / 3.791 GB, free: 52.36 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006107/13.18, allocations: 2.383 MB / 3.794 GB, free: 52.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008421/13.19, allocations: 0.8372 MB / 3.794 GB, free: 52.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.409/13.6, allocations: 126.4 MB / 3.918 GB, free: 24.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003103/13.6, allocations: 2.171 MB / 3.92 GB, free: 22.68 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008849/13.61, allocations: 2.42 MB / 3.922 GB, free: 21.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00283/13.62, allocations: 1.19 MB / 3.923 GB, free: 21.11 MB / 490.7 MB Notification: Performance of SimCode: time 1.784e-06/13.62, allocations: 0 / 3.923 GB, free: 21.11 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6678/14.28, allocations: 113.2 MB / 4.034 GB, free: 40.84 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/14.28, allocations: 228.9 kB / 4.034 GB, free: 40.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/22.26, allocations: 8 kB / 4.034 GB, free: 40.57 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