Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.514/2.514, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.191e-05/4.198e-05, allocations: 4 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 61.89 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.042/9.178, allocations: 2.851 GB / 3.252 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/9.178, allocations: 77.12 kB / 3.252 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.916/14.09, allocations: 0.9176 GB / 4.17 GB, free: 38.71 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.224e-06/14.09, allocations: 2.875 kB / 4.17 GB, free: 38.71 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003472/14.09, allocations: 68.86 kB / 4.17 GB, free: 38.7 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01941/14.11, allocations: 3.968 MB / 4.174 GB, free: 36.9 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/14.11, allocations: 12.75 kB / 4.174 GB, free: 36.9 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001327/14.12, allocations: 306.9 kB / 4.174 GB, free: 36.85 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009575/14.12, allocations: 0.8767 MB / 4.175 GB, free: 36.71 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00955/14.13, allocations: 2.103 MB / 4.177 GB, free: 36.25 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004023/14.13, allocations: 182.6 kB / 4.177 GB, free: 36.25 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/14.14, allocations: 208.3 kB / 4.177 GB, free: 36.24 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/14.15, allocations: 3.62 MB / 4.181 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001283/14.15, allocations: 6.688 kB / 4.181 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009506/14.15, allocations: 90.3 kB / 4.181 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003302/14.15, allocations: 168.9 kB / 4.181 GB, free: 35.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01199/14.16, allocations: 3.183 MB / 4.184 GB, free: 35.68 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.032/14.2, allocations: 15.63 MB / 4.199 GB, free: 26.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008308/14.2, allocations: 2.705 MB / 4.202 GB, free: 25.53 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003199/14.21, allocations: 1.164 MB / 4.203 GB, free: 25.51 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07962/14.29, allocations: 24.57 MB / 4.227 GB, free: 26.04 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006736/14.29, allocations: 1.728 MB / 4.229 GB, free: 25.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 8.275e-06/14.29, allocations: 0 / 4.229 GB, free: 25.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.03563/14.33, allocations: 7.863 MB / 4.236 GB, free: 23.44 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002059/14.33, allocations: 259.7 kB / 4.237 GB, free: 23.16 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003202/14.33, allocations: 1.415 MB / 4.238 GB, free: 22.62 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007296/14.33, allocations: 59.67 kB / 4.238 GB, free: 22.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001269/14.34, allocations: 0.9622 MB / 4.239 GB, free: 21.82 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001316/14.34, allocations: 0.6365 MB / 4.24 GB, free: 21.33 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/14.34, allocations: 38.16 kB / 4.24 GB, free: 21.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002727/14.34, allocations: 390.6 kB / 4.24 GB, free: 20.96 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/14.34, allocations: 1.031 MB / 4.241 GB, free: 20.58 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003633/14.34, allocations: 1.489 MB / 4.243 GB, free: 19.68 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003462/14.35, allocations: 1.273 MB / 4.244 GB, free: 19.17 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/14.35, allocations: 3.562 kB / 4.244 GB, free: 19.17 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.009212/14.36, allocations: 3.119 MB / 4.247 GB, free: 17.97 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001703/14.36, allocations: 4.481 MB / 4.251 GB, free: 13.15 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-05/14.36, allocations: 13.95 kB / 4.251 GB, free: 13.15 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/14.36, allocations: 231.7 kB / 4.251 GB, free: 13.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004655/14.37, allocations: 0.5194 MB / 4.252 GB, free: 12.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/14.37, allocations: 2.429 MB / 4.254 GB, free: 10.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005234/14.37, allocations: 308.9 kB / 4.255 GB, free: 9.953 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008568/14.37, allocations: 107.1 kB / 4.255 GB, free: 9.855 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/14.37, allocations: 4.625 kB / 4.255 GB, free: 9.852 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0084/14.38, allocations: 2.844 MB / 4.258 GB, free: 7.324 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/14.38, allocations: 16.16 kB / 4.258 GB, free: 7.309 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/14.38, allocations: 231.5 kB / 4.258 GB, free: 7.113 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/14.39, allocations: 0.5153 MB / 4.258 GB, free: 6.676 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/14.39, allocations: 2.424 MB / 4.261 GB, free: 4.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005061/14.39, allocations: 316.4 kB / 4.261 GB, free: 3.988 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000888/14.4, allocations: 102 kB / 4.261 GB, free: 3.898 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001161/14.4, allocations: 300.1 kB / 4.261 GB, free: 3.594 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008207/14.4, allocations: 213.5 kB / 4.262 GB, free: 3.383 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02033/14.42, allocations: 7.642 MB / 4.269 GB, free: 12.73 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/14.42, allocations: 86.12 kB / 4.269 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/14.42, allocations: 0 / 4.269 GB, free: 12.68 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01429/14.43, allocations: 6.573 MB / 4.276 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5485/14.98, allocations: 12.38 MB / 4.288 GB, free: 67.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.771e-05/14.98, allocations: 9.688 kB / 4.288 GB, free: 67.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003919/14.99, allocations: 444.4 kB / 4.288 GB, free: 67.01 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/14.99, allocations: 338 kB / 4.288 GB, free: 66.98 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006294/14.99, allocations: 76.34 kB / 4.288 GB, free: 66.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001948/14.99, allocations: 2.523 MB / 4.291 GB, free: 64.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/14.99, allocations: 10.84 kB / 4.291 GB, free: 64.91 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01792/15.01, allocations: 7.56 MB / 4.298 GB, free: 63.71 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002877/15.01, allocations: 0.7811 MB / 4.299 GB, free: 63.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/15.01, allocations: 59.66 kB / 4.299 GB, free: 63.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004232/15.02, allocations: 224 kB / 4.299 GB, free: 63.62 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008776/15.02, allocations: 180 kB / 4.299 GB, free: 63.61 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003994/15.02, allocations: 85.25 kB / 4.3 GB, free: 63.61 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003688/15.02, allocations: 1.259 MB / 4.301 GB, free: 63.45 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.82e-07/15.02, allocations: 0.5938 kB / 4.301 GB, free: 63.45 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01524/15.04, allocations: 2.781 MB / 4.304 GB, free: 63.45 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03501/15.07, allocations: 12.25 MB / 4.315 GB, free: 60.14 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01505/15.09, allocations: 5.103 MB / 4.32 GB, free: 59.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/15.09, allocations: 0 / 4.32 GB, free: 59.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006737/15.09, allocations: 2.657 MB / 4.323 GB, free: 59.66 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01072/15.1, allocations: 1.057 MB / 4.324 GB, free: 59.63 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03349/15.14, allocations: 7.565 MB / 4.331 GB, free: 58.26 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005167/15.14, allocations: 2.294 MB / 4.334 GB, free: 57.49 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0151/15.16, allocations: 2.599 MB / 4.336 GB, free: 57.44 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004772/15.16, allocations: 1.309 MB / 4.338 GB, free: 57.43 MB / 0.5886 GB Notification: Performance of SimCode: time 2.374e-06/15.16, allocations: 0 / 4.338 GB, free: 57.43 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.299/15.46, allocations: 125.2 MB / 4.46 GB, free: 27.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/15.46, allocations: 233.8 kB / 4.46 GB, free: 27.25 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.609/25.07, allocations: 4.922 kB / 4.46 GB, free: 27.25 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat