Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.528/2.528, allocations: 270 MB / 283.6 MB, free: 1.883 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.906e-05/3.914e-05, allocations: 4 kB / 348.5 MB, free: 2.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.411, allocations: 61.87 MB / 410.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.764/9.175, allocations: 2.831 GB / 3.231 GB, free: 70.93 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/9.176, allocations: 79.55 kB / 3.231 GB, free: 70.89 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.62/13.8, allocations: 0.8772 GB / 4.109 GB, free: 37.24 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.306e-06/13.8, allocations: 0 / 4.109 GB, free: 37.24 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003/13.8, allocations: 63.66 kB / 4.109 GB, free: 37.23 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.01757/13.81, allocations: 3.834 MB / 4.112 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/13.81, allocations: 11.47 kB / 4.112 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001379/13.81, allocations: 268 kB / 4.113 GB, free: 34.94 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008757/13.82, allocations: 0.7886 MB / 4.113 GB, free: 34.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008807/13.83, allocations: 1.939 MB / 4.115 GB, free: 32.86 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003223/13.83, allocations: 165.1 kB / 4.115 GB, free: 32.71 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009954/13.83, allocations: 179.6 kB / 4.116 GB, free: 32.54 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/13.85, allocations: 3.273 MB / 4.119 GB, free: 29.74 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/13.85, allocations: 7.938 kB / 4.119 GB, free: 29.73 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008678/13.85, allocations: 84.39 kB / 4.119 GB, free: 29.66 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003193/13.85, allocations: 150.2 kB / 4.119 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/13.86, allocations: 2.886 MB / 4.122 GB, free: 27.07 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.03113/13.89, allocations: 14.23 MB / 4.136 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006725/13.9, allocations: 1.975 MB / 4.138 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002491/13.9, allocations: 0.983 MB / 4.139 GB, free: 9.082 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5324/14.43, allocations: 24.61 MB / 4.163 GB, free: 55.05 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007248/14.44, allocations: 1.585 MB / 4.164 GB, free: 54.93 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00215/14.44, allocations: 171.9 kB / 4.164 GB, free: 54.93 MB / 0.573 GB Notification: Performance of pre-optimization done (n=146): time 1.456e-05/14.44, allocations: 0 / 4.164 GB, free: 54.93 MB / 0.573 GB Notification: Performance of matching and sorting (n=158): time 0.03186/14.47, allocations: 6.912 MB / 4.171 GB, free: 54.16 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002026/14.47, allocations: 262.6 kB / 4.171 GB, free: 53.88 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006197/14.48, allocations: 1.396 MB / 4.173 GB, free: 53.7 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007256/14.48, allocations: 54.23 kB / 4.173 GB, free: 53.67 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001995/14.48, allocations: 0.8856 MB / 4.174 GB, free: 53.41 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001471/14.48, allocations: 0.529 MB / 4.174 GB, free: 53.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004527/14.48, allocations: 37.44 kB / 4.174 GB, free: 53.14 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002727/14.48, allocations: 374.6 kB / 4.175 GB, free: 52.84 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004365/14.49, allocations: 0.9301 MB / 4.176 GB, free: 52.84 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003213/14.49, allocations: 1.295 MB / 4.177 GB, free: 52.45 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/14.5, allocations: 1.147 MB / 4.178 GB, free: 52.37 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-05/14.5, allocations: 3.625 kB / 4.178 GB, free: 52.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01019/14.51, allocations: 2.977 MB / 4.181 GB, free: 52.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009144/14.51, allocations: 3.845 MB / 4.185 GB, free: 48.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.962e-05/14.51, allocations: 12.38 kB / 4.185 GB, free: 48.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005144/14.51, allocations: 0.5902 MB / 4.185 GB, free: 48.03 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/14.52, allocations: 443.3 kB / 4.186 GB, free: 48.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/14.52, allocations: 2.816 MB / 4.188 GB, free: 45.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/14.52, allocations: 238.5 kB / 4.189 GB, free: 45.94 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006822/14.52, allocations: 91.97 kB / 4.189 GB, free: 45.94 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/14.52, allocations: 3.938 kB / 4.189 GB, free: 45.94 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007269/14.53, allocations: 2.574 MB / 4.191 GB, free: 45.81 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/14.53, allocations: 17.95 kB / 4.191 GB, free: 45.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009498/14.53, allocations: 191.6 kB / 4.191 GB, free: 45.78 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/14.54, allocations: 454.9 kB / 4.192 GB, free: 45.78 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/14.54, allocations: 1.875 MB / 4.194 GB, free: 44.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003879/14.54, allocations: 230.5 kB / 4.194 GB, free: 44.22 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006366/14.54, allocations: 87.22 kB / 4.194 GB, free: 44.22 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 (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_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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008557/14.54, allocations: 287.8 kB / 4.194 GB, free: 44.05 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007334/14.54, allocations: 201.3 kB / 4.194 GB, free: 43.95 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/14.56, allocations: 7.452 MB / 4.202 GB, free: 43.32 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-05/14.56, allocations: 78.39 kB / 4.202 GB, free: 43.32 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/14.56, allocations: 5.812 kB / 4.202 GB, free: 43.32 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01125/14.57, allocations: 6.514 MB / 4.208 GB, free: 42.45 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02108/14.59, allocations: 10.39 MB / 4.218 GB, free: 41.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/14.59, allocations: 0 / 4.218 GB, free: 41.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002915/14.59, allocations: 344.9 kB / 4.219 GB, free: 41.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005105/14.6, allocations: 1.582 MB / 4.22 GB, free: 41.73 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005316/14.6, allocations: 63.33 kB / 4.22 GB, free: 41.73 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/14.6, allocations: 3.472 MB / 4.224 GB, free: 39.64 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/14.6, allocations: 0 / 4.224 GB, free: 39.64 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01422/14.62, allocations: 7.07 MB / 4.231 GB, free: 39.05 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/14.62, allocations: 0.7384 MB / 4.231 GB, free: 38.76 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/14.62, allocations: 48.97 kB / 4.231 GB, free: 38.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004297/14.62, allocations: 194.8 kB / 4.231 GB, free: 38.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006378/14.63, allocations: 132.1 kB / 4.232 GB, free: 38.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003383/14.63, allocations: 80.3 kB / 4.232 GB, free: 38.74 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003957/14.63, allocations: 1.256 MB / 4.233 GB, free: 38.58 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.293e-06/14.63, allocations: 0 / 4.233 GB, free: 38.58 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01791/14.65, allocations: 2.74 MB / 4.236 GB, free: 38.46 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03619/14.68, allocations: 9.91 MB / 4.245 GB, free: 37.15 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01345/14.7, allocations: 4.617 MB / 4.25 GB, free: 36.84 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/14.7, allocations: 0.8438 kB / 4.25 GB, free: 36.84 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005033/14.7, allocations: 2.233 MB / 4.252 GB, free: 36.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008621/14.71, allocations: 0.9726 MB / 4.253 GB, free: 36.68 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/14.73, allocations: 6.893 MB / 4.26 GB, free: 35.44 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002234/14.73, allocations: 2.186 MB / 4.262 GB, free: 34.67 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007939/14.74, allocations: 2.396 MB / 4.264 GB, free: 34.62 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/14.74, allocations: 1.197 MB / 4.265 GB, free: 34.62 MB / 0.573 GB Notification: Performance of SimCode: time 1.553e-06/14.74, allocations: 0 / 4.265 GB, free: 34.62 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7726/15.52, allocations: 120.1 MB / 4.383 GB, free: 65.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/15.52, allocations: 240.5 kB / 4.383 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.51/25.03, allocations: 0 / 4.383 GB, free: 64.89 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat