Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.332/2.332, allocations: 235 MB / 247.2 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.129e-05/4.11e-05, allocations: 4 kB / 305 MB, free: 5.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.428, allocations: 54.85 MB / 359.9 MB, free: 3.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.897/8.325, allocations: 2.678 GB / 3.029 GB, free: 80.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/8.326, allocations: 75.22 kB / 3.029 GB, free: 80.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.447/13.77, allocations: 1.008 GB / 4.037 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.296e-06/13.77, allocations: 3.938 kB / 4.037 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004259/13.77, allocations: 64.77 kB / 4.037 GB, free: 23.67 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02564/13.8, allocations: 4.241 MB / 4.041 GB, free: 21.37 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.434e-05/13.8, allocations: 11.06 kB / 4.041 GB, free: 21.37 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002155/13.8, allocations: 316.8 kB / 4.041 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01494/13.82, allocations: 0.9387 MB / 4.042 GB, free: 20.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/13.83, allocations: 2.2 MB / 4.044 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004756/13.83, allocations: 201.5 kB / 4.044 GB, free: 18.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/13.83, allocations: 220 kB / 4.045 GB, free: 18.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0177/13.85, allocations: 3.852 MB / 4.048 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/13.85, allocations: 7.938 kB / 4.048 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007298/13.85, allocations: 95.97 kB / 4.049 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004242/13.85, allocations: 175.3 kB / 4.049 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/13.87, allocations: 3.4 MB / 4.052 GB, free: 11.9 MB / 0.5105 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.04425/13.91, allocations: 16.73 MB / 4.068 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/13.92, allocations: 3.026 MB / 4.071 GB, free: 8.152 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003712/13.92, allocations: 1.237 MB / 4.073 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5542/14.48, allocations: 18.61 MB / 4.091 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008116/14.49, allocations: 1.835 MB / 4.092 GB, free: 35.77 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 7.404e-06/14.49, allocations: 0 / 4.092 GB, free: 35.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.04262/14.53, allocations: 8.64 MB / 4.101 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/14.53, allocations: 260.8 kB / 4.101 GB, free: 34.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003395/14.53, allocations: 1.429 MB / 4.103 GB, free: 34.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007963/14.53, allocations: 70.52 kB / 4.103 GB, free: 34.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001325/14.54, allocations: 1.05 MB / 4.104 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001264/14.54, allocations: 0.7085 MB / 4.104 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/14.54, allocations: 49.66 kB / 4.104 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001806/14.54, allocations: 399.5 kB / 4.105 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/14.54, allocations: 1.121 MB / 4.106 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/14.54, allocations: 1.66 MB / 4.108 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003754/14.55, allocations: 1.396 MB / 4.109 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.362e-05/14.55, allocations: 5.938 kB / 4.109 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01036/14.56, allocations: 3.408 MB / 4.112 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001421/14.56, allocations: 5.655 MB / 4.118 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.872e-05/14.56, allocations: 18.33 kB / 4.118 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/14.56, allocations: 332.8 kB / 4.118 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005329/14.57, allocations: 0.5991 MB / 4.119 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/14.57, allocations: 3.08 MB / 4.122 GB, free: 23.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/14.58, allocations: 345.6 kB / 4.122 GB, free: 23.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000929/14.58, allocations: 125.8 kB / 4.122 GB, free: 23.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/14.58, allocations: 3.281 kB / 4.122 GB, free: 23.88 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008692/14.59, allocations: 3.116 MB / 4.125 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.371e-05/14.59, allocations: 18.89 kB / 4.125 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/14.59, allocations: 328.2 kB / 4.125 GB, free: 23.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005082/14.59, allocations: 0.5973 MB / 4.126 GB, free: 23.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/14.59, allocations: 3.078 MB / 4.129 GB, free: 21.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005445/14.6, allocations: 343.5 kB / 4.129 GB, free: 21.08 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009375/14.6, allocations: 121.5 kB / 4.13 GB, free: 21.08 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001557/14.6, allocations: 332.5 kB / 4.13 GB, free: 20.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/14.6, allocations: 224.8 kB / 4.13 GB, free: 20.78 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02516/14.63, allocations: 8.104 MB / 4.138 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000178/14.63, allocations: 90.27 kB / 4.138 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.191e-05/14.63, allocations: 3.562 kB / 4.138 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02024/14.65, allocations: 7.014 MB / 4.145 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03283/14.68, allocations: 13.02 MB / 4.158 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.241e-05/14.68, allocations: 7.031 kB / 4.158 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003907/14.69, allocations: 484.6 kB / 4.158 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002501/14.69, allocations: 449 kB / 4.159 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007368/14.69, allocations: 80.09 kB / 4.159 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/14.69, allocations: 3.217 MB / 4.162 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/14.69, allocations: 14.08 kB / 4.162 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01804/14.71, allocations: 8.093 MB / 4.17 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002925/14.71, allocations: 0.7994 MB / 4.17 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/14.71, allocations: 66.52 kB / 4.17 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004282/14.72, allocations: 233.2 kB / 4.171 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008131/14.72, allocations: 193.4 kB / 4.171 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003321/14.72, allocations: 96.69 kB / 4.171 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002808/14.72, allocations: 1.18 MB / 4.172 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.41e-07/14.72, allocations: 2.188 kB / 4.172 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01602/14.74, allocations: 2.917 MB / 4.175 GB, free: 12.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03453/14.77, allocations: 12.96 MB / 4.188 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01534/14.79, allocations: 5.546 MB / 4.193 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.615e-05/14.79, allocations: 5.312 kB / 4.193 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007167/14.8, allocations: 2.924 MB / 4.196 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01091/14.81, allocations: 1.132 MB / 4.197 GB, free: 8.668 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.904/15.71, allocations: 130.6 MB / 4.325 GB, free: 70.07 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002634/15.71, allocations: 2.387 MB / 4.327 GB, free: 69.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0101/15.72, allocations: 2.702 MB / 4.33 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003321/15.73, allocations: 1.414 MB / 4.331 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/15.73, allocations: 0 / 4.331 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3049/16.03, allocations: 133.1 MB / 4.461 GB, free: 23.84 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/16.03, allocations: 225.8 kB / 4.461 GB, free: 23.58 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.501/25.53, allocations: 0 / 4.461 GB, free: 23.58 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat