Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.502e-05, allocations: 0 / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.805/7.913, allocations: 2.545 GB / 2.86 GB, free: 9.742 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/7.914, allocations: 80.19 kB / 2.86 GB, free: 9.699 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448/12.36, allocations: 0.7755 GB / 3.635 GB, free: 25.94 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.214e-06/12.36, allocations: 0 / 3.635 GB, free: 25.94 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003633/12.36, allocations: 65.28 kB / 3.635 GB, free: 25.93 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.02054/12.38, allocations: 3.84 MB / 3.639 GB, free: 24.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/12.38, allocations: 9.781 kB / 3.639 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001344/12.38, allocations: 287.5 kB / 3.639 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008884/12.39, allocations: 0.8108 MB / 3.64 GB, free: 23.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008904/12.4, allocations: 2.08 MB / 3.642 GB, free: 23.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/12.4, allocations: 180.6 kB / 3.642 GB, free: 23.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/12.4, allocations: 193.6 kB / 3.642 GB, free: 23.37 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/12.42, allocations: 3.667 MB / 3.646 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.323e-05/12.42, allocations: 12.23 kB / 3.646 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005482/12.42, allocations: 87.31 kB / 3.646 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003264/12.42, allocations: 160.3 kB / 3.646 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/12.43, allocations: 3.374 MB / 3.65 GB, free: 22.81 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.03343/12.46, allocations: 14.75 MB / 3.664 GB, free: 14.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007149/12.47, allocations: 2.118 MB / 3.666 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/12.47, allocations: 1.045 MB / 3.667 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06189/12.54, allocations: 18.91 MB / 3.685 GB, free: 18.07 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006177/12.54, allocations: 1.666 MB / 3.687 GB, free: 17.94 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002105/12.54, allocations: 184.6 kB / 3.687 GB, free: 17.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 1.009e-05/12.54, allocations: 0 / 3.687 GB, free: 17.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.03102/12.58, allocations: 7.345 MB / 3.694 GB, free: 16.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002781/12.58, allocations: 416.6 kB / 3.695 GB, free: 16.37 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/12.58, allocations: 1.489 MB / 3.696 GB, free: 16.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006684/12.58, allocations: 64.05 kB / 3.696 GB, free: 16.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/12.58, allocations: 0.9898 MB / 3.697 GB, free: 15.75 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/12.58, allocations: 0.569 MB / 3.698 GB, free: 15.39 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002764/12.58, allocations: 38.91 kB / 3.698 GB, free: 15.39 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002509/12.58, allocations: 383.1 kB / 3.698 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/12.59, allocations: 1.054 MB / 3.699 GB, free: 15.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/12.59, allocations: 1.506 MB / 3.701 GB, free: 14.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003629/12.59, allocations: 1.315 MB / 3.702 GB, free: 13.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.157e-05/12.59, allocations: 3.75 kB / 3.702 GB, free: 13.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01055/12.6, allocations: 3.293 MB / 3.705 GB, free: 12.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002311/12.61, allocations: 4.583 MB / 3.71 GB, free: 7.434 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/12.61, allocations: 19.81 kB / 3.71 GB, free: 7.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008808/12.62, allocations: 0.9511 MB / 3.711 GB, free: 7.254 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/12.62, allocations: 471.5 kB / 3.711 GB, free: 7.211 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004382/12.62, allocations: 3.159 MB / 3.714 GB, free: 4.727 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/12.63, allocations: 240.6 kB / 3.714 GB, free: 4.664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007878/12.63, allocations: 101.6 kB / 3.715 GB, free: 4.648 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/12.63, allocations: 3.562 kB / 3.715 GB, free: 4.648 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009451/12.64, allocations: 2.973 MB / 3.717 GB, free: 2.297 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-05/12.64, allocations: 19.23 kB / 3.718 GB, free: 2.281 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/12.64, allocations: 354.8 kB / 3.718 GB, free: 1.996 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004258/12.65, allocations: 495.7 kB / 3.718 GB, free: 1.586 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006245/12.65, allocations: 4.048 MB / 3.722 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004166/12.66, allocations: 236.6 kB / 3.722 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007702/12.66, allocations: 99.53 kB / 3.723 GB, free: 13.32 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0009688/12.66, allocations: 296 kB / 3.723 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007982/12.66, allocations: 213.4 kB / 3.723 GB, free: 12.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/12.68, allocations: 7.764 MB / 3.731 GB, free: 5.852 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001324/12.68, allocations: 77.53 kB / 3.731 GB, free: 5.805 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/12.68, allocations: 0 / 3.731 GB, free: 5.805 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.425/13.1, allocations: 6.93 MB / 3.738 GB, free: 54.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02761/13.13, allocations: 10.77 MB / 3.748 GB, free: 53.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/13.13, allocations: 2.75 kB / 3.748 GB, free: 53.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/13.13, allocations: 343.3 kB / 3.748 GB, free: 53.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009406/13.14, allocations: 2.499 MB / 3.751 GB, free: 53.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006521/13.14, allocations: 65.44 kB / 3.751 GB, free: 53.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/13.15, allocations: 4.108 MB / 3.755 GB, free: 51.59 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/13.15, allocations: 3.438 kB / 3.755 GB, free: 51.59 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0168/13.17, allocations: 7.652 MB / 3.762 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002649/13.17, allocations: 0.754 MB / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009436/13.17, allocations: 51.56 kB / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003532/13.17, allocations: 196.9 kB / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006308/13.17, allocations: 136.7 kB / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002772/13.17, allocations: 72.28 kB / 3.764 GB, free: 50.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003/13.18, allocations: 1.234 MB / 3.765 GB, free: 50.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.91e-07/13.18, allocations: 0 / 3.765 GB, free: 50.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01438/13.19, allocations: 2.8 MB / 3.767 GB, free: 50.79 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.0315/13.22, allocations: 10.21 MB / 3.777 GB, free: 49.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01343/13.24, allocations: 5.168 MB / 3.782 GB, free: 48.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/13.24, allocations: 1.016 kB / 3.782 GB, free: 48.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005619/13.24, allocations: 2.295 MB / 3.785 GB, free: 48.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008482/13.25, allocations: 0.8827 MB / 3.786 GB, free: 48.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3893/13.64, allocations: 126.9 MB / 3.909 GB, free: 7.078 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/13.64, allocations: 2.291 MB / 3.912 GB, free: 5.285 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008115/13.65, allocations: 2.387 MB / 3.914 GB, free: 3.859 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002677/13.65, allocations: 1.27 MB / 3.915 GB, free: 2.691 MB / 490.7 MB Notification: Performance of SimCode: time 1.663e-06/13.65, allocations: 4 kB / 3.915 GB, free: 2.688 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7375/14.39, allocations: 122.7 MB / 4.035 GB, free: 30.82 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/14.39, allocations: 232.1 kB / 4.035 GB, free: 30.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.016/23.41, allocations: 0 / 4.035 GB, free: 30.52 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat