Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.998/1.998, allocations: 209.4 MB / 216.5 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.149e-05, allocations: 0 / 267.6 MB, free: 4.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 48.69 MB / 316.3 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.542/7.653, allocations: 2.545 GB / 2.854 GB, free: 47.17 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/7.654, allocations: 75.22 kB / 2.854 GB, free: 47.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.623/12.28, allocations: 0.834 GB / 3.688 GB, free: 22.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/12.28, allocations: 0 / 3.688 GB, free: 22.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003519/12.28, allocations: 54.84 kB / 3.688 GB, free: 22.79 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01749/12.3, allocations: 3.699 MB / 3.692 GB, free: 20.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/12.3, allocations: 9.969 kB / 3.692 GB, free: 20.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008348/12.3, allocations: 0.7539 MB / 3.693 GB, free: 20.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007899/12.31, allocations: 1.932 MB / 3.695 GB, free: 20.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/12.31, allocations: 84.28 kB / 3.695 GB, free: 20.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009443/12.31, allocations: 106 kB / 3.695 GB, free: 20.29 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007027/12.32, allocations: 2.322 MB / 3.697 GB, free: 20.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008569/12.33, allocations: 2.552 MB / 3.699 GB, free: 19.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.678e-05/12.33, allocations: 7.375 kB / 3.7 GB, free: 19.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/12.33, allocations: 9.094 kB / 3.7 GB, free: 19.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003062/12.33, allocations: 145 kB / 3.7 GB, free: 19.79 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.8061/13.14, allocations: 108.3 MB / 3.805 GB, free: 12.47 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/13.14, allocations: 1.412 MB / 3.807 GB, free: 12.44 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/13.14, allocations: 0.867 MB / 3.808 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05658/13.2, allocations: 17.54 MB / 3.825 GB, free: 16.89 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002722/13.2, allocations: 1.089 MB / 3.826 GB, free: 16.73 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001805/13.2, allocations: 140.8 kB / 3.826 GB, free: 16.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=132): time 1.173e-05/13.2, allocations: 0 / 3.826 GB, free: 16.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=144): time 0.03032/13.23, allocations: 7.188 MB / 3.833 GB, free: 15.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002262/13.23, allocations: 358 kB / 3.833 GB, free: 14.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002333/13.24, allocations: 1.075 MB / 3.834 GB, free: 14.69 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005052/13.24, allocations: 25.7 kB / 3.834 GB, free: 14.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/13.24, allocations: 0.9475 MB / 3.835 GB, free: 14.34 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000744/13.24, allocations: 479.4 kB / 3.836 GB, free: 14.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/13.24, allocations: 2.688 kB / 3.836 GB, free: 14.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002426/13.24, allocations: 377.3 kB / 3.836 GB, free: 13.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002182/13.24, allocations: 0.8869 MB / 3.837 GB, free: 13.79 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/13.24, allocations: 1.286 MB / 3.838 GB, free: 13.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01915/13.26, allocations: 2.659 MB / 3.841 GB, free: 13.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-05/13.26, allocations: 3.719 kB / 3.841 GB, free: 13.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.02576/13.29, allocations: 4.353 MB / 3.845 GB, free: 13.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001806/13.29, allocations: 4.31 MB / 3.849 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.75e-05/13.29, allocations: 9.969 kB / 3.849 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003904/13.29, allocations: 0.5283 MB / 3.85 GB, free: 8.535 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003632/13.3, allocations: 435.3 kB / 3.85 GB, free: 8.535 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004607/13.3, allocations: 2.932 MB / 3.853 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/13.31, allocations: 239 kB / 3.853 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006922/13.31, allocations: 90.67 kB / 3.853 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/13.31, allocations: 3.938 kB / 3.853 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02206/13.33, allocations: 3.81 MB / 3.857 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.152e-05/13.33, allocations: 9.812 kB / 3.857 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006909/13.33, allocations: 192.7 kB / 3.857 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/13.33, allocations: 459.7 kB / 3.858 GB, free: 22.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/13.34, allocations: 1.894 MB / 3.86 GB, free: 20.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003629/13.34, allocations: 206.6 kB / 3.86 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004512/13.34, allocations: 98.36 kB / 3.86 GB, free: 20.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008157/13.34, allocations: 225.8 kB / 3.86 GB, free: 20.52 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008865/13.35, allocations: 2.35 MB / 3.862 GB, free: 20.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007991/13.35, allocations: 174.7 kB / 3.863 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/13.36, allocations: 6.31 MB / 3.869 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.542e-05/13.36, allocations: 75.7 kB / 3.869 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/13.36, allocations: 3.688 kB / 3.869 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01086/13.38, allocations: 5.325 MB / 3.874 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/13.39, allocations: 8.464 MB / 3.882 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/13.39, allocations: 0 / 3.882 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002257/13.4, allocations: 284.9 kB / 3.883 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003872/13.4, allocations: 1.504 MB / 3.884 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004664/13.4, allocations: 31.41 kB / 3.884 GB, free: 18.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0047/13.41, allocations: 3.708 MB / 3.888 GB, free: 16.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/13.41, allocations: 0 / 3.888 GB, free: 16.24 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/13.42, allocations: 6.368 MB / 3.894 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/13.42, allocations: 0.6431 MB / 3.895 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008258/13.42, allocations: 19.64 kB / 3.895 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00284/13.43, allocations: 147.9 kB / 3.895 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004627/13.43, allocations: 120.6 kB / 3.895 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/13.43, allocations: 63.62 kB / 3.895 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002413/13.43, allocations: 0.9814 MB / 3.896 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.41e-07/13.43, allocations: 3.969 kB / 3.896 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01321/13.44, allocations: 2.553 MB / 3.898 GB, free: 15.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02866/13.47, allocations: 9.603 MB / 3.908 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01061/13.48, allocations: 4.174 MB / 3.912 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/13.48, allocations: 0 / 3.912 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004649/13.49, allocations: 1.941 MB / 3.914 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007524/13.49, allocations: 0.7963 MB / 3.914 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/13.52, allocations: 6.222 MB / 3.921 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003387/13.52, allocations: 2.087 MB / 3.923 GB, free: 3.371 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008741/13.53, allocations: 2.379 MB / 3.925 GB, free: 1.973 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002598/13.53, allocations: 1.089 MB / 3.926 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of SimCode: time 1.643e-06/13.53, allocations: 1.5 kB / 3.926 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6585/14.19, allocations: 96.28 MB / 4.02 GB, free: 69.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/14.19, allocations: 181.1 kB / 4.02 GB, free: 69.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.607/21.8, allocations: 0 / 4.02 GB, free: 69.22 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat