Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.36/2.36, allocations: 235 MB / 247.2 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.097e-05/4.106e-05, allocations: 7.984 kB / 305 MB, free: 5.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4824/0.4824, allocations: 54.85 MB / 359.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.898/8.381, allocations: 2.673 GB / 3.024 GB, free: 85.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/8.381, allocations: 78.14 kB / 3.024 GB, free: 85.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.387/12.77, allocations: 0.7985 GB / 3.823 GB, free: 26.64 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.703e-06/12.77, allocations: 0 / 3.823 GB, free: 26.64 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002805/12.77, allocations: 57.44 kB / 3.823 GB, free: 26.63 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01941/12.79, allocations: 3.654 MB / 3.826 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/12.79, allocations: 7.906 kB / 3.826 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001124/12.79, allocations: 272.4 kB / 3.826 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008495/12.8, allocations: 0.7778 MB / 3.827 GB, free: 24.26 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007903/12.81, allocations: 1.984 MB / 3.829 GB, free: 23.35 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/12.81, allocations: 174.7 kB / 3.829 GB, free: 23.28 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/12.81, allocations: 181.8 kB / 3.83 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/12.82, allocations: 3.294 MB / 3.833 GB, free: 21.85 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-05/12.82, allocations: 11.62 kB / 3.833 GB, free: 21.84 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/12.82, allocations: 80.05 kB / 3.833 GB, free: 21.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003/12.82, allocations: 151.2 kB / 3.833 GB, free: 21.77 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01054/12.83, allocations: 3.023 MB / 3.836 GB, free: 20.38 MB / 0.4948 GB 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.02613/12.86, allocations: 13.66 MB / 3.849 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006425/12.86, allocations: 1.946 MB / 3.851 GB, free: 5.723 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002676/12.87, allocations: 1.028 MB / 3.852 GB, free: 4.793 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06337/12.93, allocations: 18.9 MB / 3.871 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4278/13.36, allocations: 1.594 MB / 3.872 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001755/13.36, allocations: 168.2 kB / 3.872 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 8.977e-06/13.36, allocations: 1.688 kB / 3.872 GB, free: 45.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03148/13.39, allocations: 6.861 MB / 3.879 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/13.39, allocations: 255.6 kB / 3.879 GB, free: 44.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/13.39, allocations: 1.258 MB / 3.881 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006341/13.39, allocations: 57.89 kB / 3.881 GB, free: 44.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001227/13.4, allocations: 0.8839 MB / 3.881 GB, free: 44.42 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001103/13.4, allocations: 0.5508 MB / 3.882 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/13.4, allocations: 36.38 kB / 3.882 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001829/13.4, allocations: 381.2 kB / 3.882 GB, free: 43.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/13.4, allocations: 0.9205 MB / 3.883 GB, free: 43.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/13.4, allocations: 1.34 MB / 3.885 GB, free: 43.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003673/13.41, allocations: 1.165 MB / 3.886 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.032e-05/13.41, allocations: 8.734 kB / 3.886 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01198/13.42, allocations: 2.878 MB / 3.889 GB, free: 43.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009768/13.42, allocations: 4.362 MB / 3.893 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.199e-05/13.42, allocations: 10.47 kB / 3.893 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004582/13.43, allocations: 0.5203 MB / 3.893 GB, free: 38.42 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003971/13.43, allocations: 450.9 kB / 3.894 GB, free: 38.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/13.43, allocations: 2.711 MB / 3.896 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/13.44, allocations: 252.6 kB / 3.897 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007512/13.44, allocations: 99.16 kB / 3.897 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/13.44, allocations: 4.312 kB / 3.897 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008886/13.45, allocations: 2.518 MB / 3.899 GB, free: 36.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.061e-05/13.45, allocations: 12 kB / 3.899 GB, free: 36.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009402/13.45, allocations: 200.7 kB / 3.899 GB, free: 36.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/13.45, allocations: 464.9 kB / 3.9 GB, free: 36.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/13.45, allocations: 1.876 MB / 3.902 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/13.46, allocations: 254.7 kB / 3.902 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005907/13.46, allocations: 92.84 kB / 3.902 GB, free: 34.61 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0008493/13.46, allocations: 298.3 kB / 3.902 GB, free: 34.44 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007093/13.46, allocations: 192.7 kB / 3.902 GB, free: 34.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/13.47, allocations: 7.344 MB / 3.91 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-05/13.47, allocations: 82.19 kB / 3.91 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/13.47, allocations: 5.625 kB / 3.91 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01081/13.48, allocations: 6.416 MB / 3.916 GB, free: 32.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02274/13.51, allocations: 11.05 MB / 3.927 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-05/13.51, allocations: 7.531 kB / 3.927 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002888/13.51, allocations: 355.7 kB / 3.927 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004121/13.51, allocations: 1.304 MB / 3.928 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005108/13.51, allocations: 70.78 kB / 3.928 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/13.52, allocations: 3.198 MB / 3.932 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/13.52, allocations: 12.16 kB / 3.932 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/13.53, allocations: 7.145 MB / 3.939 GB, free: 28.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/13.53, allocations: 0.7044 MB / 3.939 GB, free: 27.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009841/13.53, allocations: 53.97 kB / 3.939 GB, free: 27.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003638/13.54, allocations: 189.3 kB / 3.94 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000754/13.54, allocations: 151.7 kB / 3.94 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/13.54, allocations: 75.78 kB / 3.94 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002391/13.54, allocations: 1.063 MB / 3.941 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.31e-07/13.54, allocations: 2.906 kB / 3.941 GB, free: 27.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01538/13.56, allocations: 2.558 MB / 3.943 GB, free: 27.57 MB / 0.5105 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.0368/13.59, allocations: 11.19 MB / 3.954 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01472/13.61, allocations: 4.602 MB / 3.959 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.537e-05/13.61, allocations: 0 / 3.959 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007239/13.62, allocations: 2.43 MB / 3.961 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009588/13.63, allocations: 0.8447 MB / 3.962 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8228/14.45, allocations: 128.7 MB / 4.088 GB, free: 72.69 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00389/14.45, allocations: 2.178 MB / 4.09 GB, free: 71.93 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009447/14.46, allocations: 2.426 MB / 4.092 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003466/14.47, allocations: 1.2 MB / 4.093 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of SimCode: time 2.004e-06/14.47, allocations: 0 / 4.093 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3272/14.79, allocations: 113.9 MB / 4.204 GB, free: 59.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002739/14.79, allocations: 220.6 kB / 4.205 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/22.86, allocations: 0 / 4.205 GB, free: 58.86 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat