Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.575/2.575, allocations: 270 MB / 283.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.262e-05/4.284e-05, allocations: 4 kB / 348.5 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4132, allocations: 61.87 MB / 410.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.198/9.612, allocations: 2.847 GB / 3.248 GB, free: 54.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/9.612, allocations: 79.72 kB / 3.248 GB, free: 54.16 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.996/14.61, allocations: 0.8825 GB / 4.131 GB, free: 5.672 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.346e-06/14.61, allocations: 0 / 4.131 GB, free: 5.672 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0006107/14.61, allocations: 59.86 kB / 4.131 GB, free: 5.613 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02223/14.63, allocations: 3.761 MB / 4.135 GB, free: 1.785 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/14.63, allocations: 16.02 kB / 4.135 GB, free: 1.77 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001376/14.63, allocations: 274 kB / 4.135 GB, free: 1.492 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008927/14.64, allocations: 0.7776 MB / 4.136 GB, free: 0.7109 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4818/15.12, allocations: 1.965 MB / 4.138 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004687/15.12, allocations: 165.4 kB / 4.138 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001313/15.13, allocations: 184.8 kB / 4.138 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/15.14, allocations: 3.248 MB / 4.141 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-05/15.14, allocations: 9.062 kB / 4.141 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005407/15.14, allocations: 86.27 kB / 4.141 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002993/15.14, allocations: 144.8 kB / 4.141 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01029/15.15, allocations: 2.811 MB / 4.144 GB, free: 36.29 MB / 0.5573 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.02898/15.18, allocations: 14.06 MB / 4.158 GB, free: 27.92 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006722/15.18, allocations: 1.977 MB / 4.16 GB, free: 27.89 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/15.19, allocations: 1.056 MB / 4.161 GB, free: 27.88 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07962/15.27, allocations: 24.68 MB / 4.185 GB, free: 28.79 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006015/15.27, allocations: 1.624 MB / 4.186 GB, free: 28.66 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002014/15.27, allocations: 176.6 kB / 4.187 GB, free: 28.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 7.113e-06/15.27, allocations: 0 / 4.187 GB, free: 28.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.0291/15.3, allocations: 7.042 MB / 4.193 GB, free: 27.71 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001789/15.3, allocations: 262.2 kB / 4.194 GB, free: 27.43 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002862/15.31, allocations: 1.314 MB / 4.195 GB, free: 27.26 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006056/15.31, allocations: 57.11 kB / 4.195 GB, free: 27.23 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001045/15.31, allocations: 0.8893 MB / 4.196 GB, free: 26.96 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009765/15.31, allocations: 0.5533 MB / 4.196 GB, free: 26.67 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/15.31, allocations: 37.5 kB / 4.196 GB, free: 26.67 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002093/15.31, allocations: 372.3 kB / 4.197 GB, free: 26.37 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/15.31, allocations: 0.9402 MB / 4.198 GB, free: 26.36 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003012/15.32, allocations: 1.324 MB / 4.199 GB, free: 25.98 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003071/15.32, allocations: 1.162 MB / 4.2 GB, free: 25.89 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.826e-05/15.32, allocations: 5.219 kB / 4.2 GB, free: 25.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009866/15.33, allocations: 2.964 MB / 4.203 GB, free: 25.62 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001622/15.33, allocations: 3.842 MB / 4.207 GB, free: 21.58 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.67e-05/15.33, allocations: 7.406 kB / 4.207 GB, free: 21.58 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004464/15.34, allocations: 0.5168 MB / 4.207 GB, free: 21.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004064/15.34, allocations: 446.6 kB / 4.208 GB, free: 21.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003349/15.34, allocations: 2.709 MB / 4.21 GB, free: 19.47 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004596/15.35, allocations: 263.7 kB / 4.211 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007166/15.35, allocations: 100.5 kB / 4.211 GB, free: 19.46 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/15.35, allocations: 5.281 kB / 4.211 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007116/15.36, allocations: 2.585 MB / 4.213 GB, free: 19.32 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/15.36, allocations: 12.28 kB / 4.213 GB, free: 19.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008991/15.36, allocations: 198.2 kB / 4.213 GB, free: 19.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00387/15.36, allocations: 463.2 kB / 4.214 GB, free: 19.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/15.36, allocations: 1.872 MB / 4.216 GB, free: 17.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004238/15.37, allocations: 258.1 kB / 4.216 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005044/15.37, allocations: 97.36 kB / 4.216 GB, free: 17.73 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (211): * Single equations (assignments): 205 * 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.000822/15.37, allocations: 295.6 kB / 4.216 GB, free: 17.55 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006435/15.37, allocations: 196.2 kB / 4.217 GB, free: 17.45 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/15.38, allocations: 7.462 MB / 4.224 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001/15.38, allocations: 83.39 kB / 4.224 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/15.38, allocations: 0 / 4.224 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01152/15.39, allocations: 6.51 MB / 4.23 GB, free: 15.73 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02535/15.42, allocations: 11.26 MB / 4.241 GB, free: 30.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/15.42, allocations: 3.875 kB / 4.241 GB, free: 30.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003045/15.42, allocations: 366.4 kB / 4.242 GB, free: 30.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004189/15.43, allocations: 1.307 MB / 4.243 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005531/15.43, allocations: 68.83 kB / 4.243 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004705/15.43, allocations: 3.193 MB / 4.246 GB, free: 28.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.546e-05/15.43, allocations: 11.84 kB / 4.246 GB, free: 28.42 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0217/15.45, allocations: 7.297 MB / 4.253 GB, free: 27.16 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003252/15.46, allocations: 0.7333 MB / 4.254 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001374/15.46, allocations: 54.94 kB / 4.254 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00484/15.46, allocations: 190.8 kB / 4.254 GB, free: 26.83 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009219/15.46, allocations: 156 kB / 4.254 GB, free: 26.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003957/15.47, allocations: 79.14 kB / 4.254 GB, free: 26.82 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004351/15.47, allocations: 1.198 MB / 4.256 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.312e-06/15.47, allocations: 0 / 4.256 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01902/15.49, allocations: 2.63 MB / 4.258 GB, free: 26.56 MB / 0.5886 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (179): * Single equations (assignments): 153 * 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.04389/15.53, allocations: 11.41 MB / 4.269 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01744/15.55, allocations: 4.573 MB / 4.274 GB, free: 23.19 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/15.55, allocations: 3.812 kB / 4.274 GB, free: 23.19 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008049/15.56, allocations: 2.446 MB / 4.276 GB, free: 23.05 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01194/15.57, allocations: 0.9819 MB / 4.277 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0305/15.6, allocations: 6.959 MB / 4.284 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/15.61, allocations: 2.201 MB / 4.286 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01269/15.62, allocations: 2.48 MB / 4.288 GB, free: 20.83 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003855/15.62, allocations: 1.213 MB / 4.29 GB, free: 20.52 MB / 0.5886 GB Notification: Performance of SimCode: time 2.094e-06/15.62, allocations: 0 / 4.29 GB, free: 20.52 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8152/16.44, allocations: 119.3 MB / 4.406 GB, free: 79.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/16.44, allocations: 226.6 kB / 4.406 GB, free: 79.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.843/25.28, allocations: 0 / 4.406 GB, free: 79.1 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat