Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.454e-05/4.464e-05, allocations: 4 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1343, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.009/8.143, allocations: 2.545 GB / 2.86 GB, free: 10.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/8.144, allocations: 72.34 kB / 2.86 GB, free: 10.08 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.505/12.65, allocations: 0.782 GB / 3.642 GB, free: 26.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.003e-06/12.65, allocations: 0 / 3.642 GB, free: 26.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003555/12.65, allocations: 65.95 kB / 3.642 GB, free: 26.54 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02052/12.67, allocations: 3.829 MB / 3.645 GB, free: 24.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/12.67, allocations: 10.84 kB / 3.645 GB, free: 24.64 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/12.67, allocations: 291.2 kB / 3.646 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008883/12.68, allocations: 0.8059 MB / 3.647 GB, free: 24.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008923/12.69, allocations: 2.161 MB / 3.649 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003136/12.69, allocations: 176.8 kB / 3.649 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/12.69, allocations: 197.8 kB / 3.649 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/12.7, allocations: 3.665 MB / 3.653 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.915e-05/12.7, allocations: 6.562 kB / 3.653 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004761/12.7, allocations: 88.97 kB / 3.653 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003281/12.7, allocations: 164.4 kB / 3.653 GB, free: 23.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/12.72, allocations: 3.376 MB / 3.656 GB, free: 23.42 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.0429/12.76, allocations: 14.74 MB / 3.671 GB, free: 14.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007103/12.77, allocations: 2.112 MB / 3.673 GB, free: 14.74 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002565/12.77, allocations: 1.048 MB / 3.674 GB, free: 14.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06114/12.83, allocations: 18.92 MB / 3.692 GB, free: 18.53 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00609/12.84, allocations: 1.664 MB / 3.694 GB, free: 18.39 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00192/12.84, allocations: 189.3 kB / 3.694 GB, free: 18.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 7.845e-06/12.84, allocations: 7.938 kB / 3.694 GB, free: 18.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.02979/12.87, allocations: 7.339 MB / 3.701 GB, free: 17.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002857/12.87, allocations: 415.4 kB / 3.701 GB, free: 16.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/12.87, allocations: 1.487 MB / 3.703 GB, free: 16.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006238/12.87, allocations: 57.83 kB / 3.703 GB, free: 16.06 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/12.87, allocations: 0.9936 MB / 3.704 GB, free: 15.29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/12.88, allocations: 0.5695 MB / 3.704 GB, free: 14.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/12.88, allocations: 35.44 kB / 3.705 GB, free: 14.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002531/12.88, allocations: 387.2 kB / 3.705 GB, free: 14.49 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/12.88, allocations: 1.054 MB / 3.706 GB, free: 14.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003315/12.88, allocations: 1.512 MB / 3.707 GB, free: 13.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003514/12.89, allocations: 1.311 MB / 3.709 GB, free: 12.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.731e-05/12.89, allocations: 3.938 kB / 3.709 GB, free: 12.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009196/12.89, allocations: 3.287 MB / 3.712 GB, free: 10.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001945/12.9, allocations: 4.585 MB / 3.716 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.791e-05/12.9, allocations: 12 kB / 3.716 GB, free: 5.496 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/12.91, allocations: 0.9536 MB / 3.717 GB, free: 4.793 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005611/12.91, allocations: 477.3 kB / 3.718 GB, free: 4.402 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006208/12.92, allocations: 3.159 MB / 3.721 GB, free: 1.352 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005505/12.93, allocations: 243.8 kB / 3.721 GB, free: 1.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007499/12.93, allocations: 102.4 kB / 3.721 GB, free: 1.07 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/12.93, allocations: 4 kB / 3.721 GB, free: 1.066 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01432/12.94, allocations: 2.996 MB / 3.724 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.534e-05/12.94, allocations: 19.28 kB / 3.724 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00289/12.94, allocations: 349.6 kB / 3.724 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00542/12.95, allocations: 0.4893 MB / 3.725 GB, free: 13.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007999/12.96, allocations: 4.041 MB / 3.729 GB, free: 9.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005071/12.96, allocations: 231.5 kB / 3.729 GB, free: 9.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000951/12.96, allocations: 105 kB / 3.729 GB, free: 9.566 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_b.phase,pipe1.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_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001229/12.96, allocations: 303.6 kB / 3.73 GB, free: 9.266 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009632/12.97, allocations: 214.5 kB / 3.73 GB, free: 9.055 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02299/12.99, allocations: 7.762 MB / 3.737 GB, free: 2.094 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001617/12.99, allocations: 81.05 kB / 3.737 GB, free: 2.047 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/12.99, allocations: 0 / 3.737 GB, free: 2.047 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4341/13.42, allocations: 6.794 MB / 3.744 GB, free: 55.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02497/13.45, allocations: 10.77 MB / 3.755 GB, free: 54.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.299e-05/13.45, allocations: 0 / 3.755 GB, free: 54.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00313/13.45, allocations: 347.3 kB / 3.755 GB, free: 54.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008965/13.46, allocations: 2.499 MB / 3.757 GB, free: 54.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005807/13.46, allocations: 64.11 kB / 3.757 GB, free: 54.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004626/13.47, allocations: 4.113 MB / 3.761 GB, free: 52.75 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/13.47, allocations: 0 / 3.761 GB, free: 52.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01629/13.48, allocations: 7.651 MB / 3.769 GB, free: 52.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003311/13.48, allocations: 0.7496 MB / 3.77 GB, free: 52.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001156/13.49, allocations: 52.55 kB / 3.77 GB, free: 52.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004527/13.49, allocations: 196.5 kB / 3.77 GB, free: 52.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008108/13.49, allocations: 139 kB / 3.77 GB, free: 52.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003798/13.49, allocations: 69.14 kB / 3.77 GB, free: 52.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004274/13.5, allocations: 1.231 MB / 3.771 GB, free: 51.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.92e-07/13.5, allocations: 3.344 kB / 3.771 GB, free: 51.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01621/13.51, allocations: 2.799 MB / 3.774 GB, free: 51.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03806/13.55, allocations: 10.21 MB / 3.784 GB, free: 50.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01549/13.57, allocations: 5.169 MB / 3.789 GB, free: 50.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/13.57, allocations: 3.344 kB / 3.789 GB, free: 50.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005391/13.57, allocations: 2.289 MB / 3.791 GB, free: 49.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008073/13.58, allocations: 0.8891 MB / 3.792 GB, free: 49.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3993/13.98, allocations: 126.9 MB / 3.916 GB, free: 3.387 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3993/14.38, allocations: 2.291 MB / 3.918 GB, free: 51.69 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01021/14.39, allocations: 2.384 MB / 3.921 GB, free: 51.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003215/14.39, allocations: 1.274 MB / 3.922 GB, free: 51.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/14.39, allocations: 1.125 kB / 3.922 GB, free: 51.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3089/14.7, allocations: 122.8 MB / 4.042 GB, free: 28.03 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002686/14.7, allocations: 225 kB / 4.042 GB, free: 27.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.722/23.42, allocations: 4 kB / 4.042 GB, free: 27.72 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat