Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.842/2.842, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 6.059e-05/6.064e-05, allocations: 7.984 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4127, allocations: 58.83 MB / 382.3 MB, free: 10.23 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.43/8.843, allocations: 2.825 GB / 3.199 GB, free: 98.24 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/8.843, allocations: 78.77 kB / 3.199 GB, free: 98.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.383/13.23, allocations: 0.7996 GB / 3.998 GB, free: 34.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.934e-06/13.23, allocations: 0 / 3.998 GB, free: 34.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003349/13.23, allocations: 71.81 kB / 3.998 GB, free: 34.09 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02035/13.25, allocations: 3.964 MB / 4.002 GB, free: 32.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/13.25, allocations: 19.44 kB / 4.002 GB, free: 32.12 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001352/13.25, allocations: 285.2 kB / 4.002 GB, free: 32.08 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008862/13.26, allocations: 0.8425 MB / 4.003 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008562/13.27, allocations: 2.083 MB / 4.005 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/13.27, allocations: 180.2 kB / 4.005 GB, free: 31.47 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/13.27, allocations: 207.1 kB / 4.006 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/13.28, allocations: 3.687 MB / 4.009 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-05/13.28, allocations: 9.094 kB / 4.009 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004588/13.28, allocations: 91.39 kB / 4.009 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003167/13.28, allocations: 166.9 kB / 4.01 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01181/13.29, allocations: 3.4 MB / 4.013 GB, free: 30.91 MB / 0.5261 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.03241/13.32, allocations: 14.94 MB / 4.027 GB, free: 22.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00722/13.33, allocations: 2.14 MB / 4.03 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/13.33, allocations: 1.095 MB / 4.031 GB, free: 22.19 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07957/13.41, allocations: 24.61 MB / 4.055 GB, free: 22.68 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006296/13.42, allocations: 1.704 MB / 4.056 GB, free: 22.55 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002008/13.42, allocations: 203.6 kB / 4.056 GB, free: 22.46 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=162): time 8.877e-06/13.42, allocations: 0 / 4.056 GB, free: 22.46 MB / 0.5418 GB Notification: Performance of matching and sorting (n=174): time 0.0302/13.45, allocations: 7.503 MB / 4.064 GB, free: 20.08 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002707/13.45, allocations: 417.5 kB / 4.064 GB, free: 19.6 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003461/13.46, allocations: 1.543 MB / 4.066 GB, free: 18.98 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0006302/13.46, allocations: 60.27 kB / 4.066 GB, free: 18.92 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.001186/13.46, allocations: 0.9859 MB / 4.067 GB, free: 18.16 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/13.46, allocations: 0.581 MB / 4.067 GB, free: 17.71 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/13.46, allocations: 36.84 kB / 4.067 GB, free: 17.68 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0002525/13.46, allocations: 388.5 kB / 4.068 GB, free: 17.34 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002888/13.46, allocations: 1.078 MB / 4.069 GB, free: 16.95 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003436/13.47, allocations: 1.496 MB / 4.07 GB, free: 16.06 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/13.47, allocations: 1.317 MB / 4.072 GB, free: 15.52 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/13.47, allocations: 8 kB / 4.072 GB, free: 15.51 MB / 0.5418 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01013/13.48, allocations: 3.35 MB / 4.075 GB, free: 12.54 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.00192/13.48, allocations: 4.06 MB / 4.079 GB, free: 8.164 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.643e-05/13.48, allocations: 15.95 kB / 4.079 GB, free: 8.148 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00863/13.49, allocations: 0.9545 MB / 4.08 GB, free: 7.445 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00409/13.5, allocations: 467.1 kB / 4.08 GB, free: 7.062 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004429/13.5, allocations: 3.15 MB / 4.083 GB, free: 4.02 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004454/13.5, allocations: 240.7 kB / 4.083 GB, free: 3.832 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007402/13.5, allocations: 104.2 kB / 4.084 GB, free: 3.742 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/13.51, allocations: 7.938 kB / 4.084 GB, free: 3.734 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01084/13.52, allocations: 3.027 MB / 4.087 GB, free: 1.086 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.868e-05/13.52, allocations: 12 kB / 4.087 GB, free: 1.074 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002255/13.52, allocations: 356.3 kB / 4.087 GB, free: 0.7891 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/13.52, allocations: 484.2 kB / 4.087 GB, free: 400 kB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006597/13.53, allocations: 4.049 MB / 4.091 GB, free: 12.39 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004211/13.53, allocations: 240.1 kB / 4.092 GB, free: 12.2 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000771/13.53, allocations: 98.59 kB / 4.092 GB, free: 12.12 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0009888/13.54, allocations: 305.8 kB / 4.092 GB, free: 11.8 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008124/13.54, allocations: 217.4 kB / 4.092 GB, free: 11.59 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01887/13.56, allocations: 7.844 MB / 4.1 GB, free: 4.559 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001195/13.56, allocations: 77.72 kB / 4.1 GB, free: 4.512 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/13.56, allocations: 3.328 kB / 4.1 GB, free: 4.512 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4719/14.03, allocations: 6.907 MB / 4.107 GB, free: 63.18 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02397/14.05, allocations: 10.96 MB / 4.117 GB, free: 62.55 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/14.05, allocations: 1.156 kB / 4.117 GB, free: 62.55 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003066/14.05, allocations: 357.1 kB / 4.118 GB, free: 62.55 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008359/14.06, allocations: 2.523 MB / 4.12 GB, free: 62.46 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005944/14.06, allocations: 67.91 kB / 4.12 GB, free: 62.46 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/14.07, allocations: 4.109 MB / 4.124 GB, free: 60.38 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/14.07, allocations: 0 / 4.124 GB, free: 60.38 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/14.08, allocations: 7.808 MB / 4.132 GB, free: 59.88 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002719/14.09, allocations: 0.7807 MB / 4.133 GB, free: 59.72 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/14.09, allocations: 55.64 kB / 4.133 GB, free: 59.72 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003819/14.09, allocations: 202 kB / 4.133 GB, free: 59.71 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007453/14.09, allocations: 143 kB / 4.133 GB, free: 59.71 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003184/14.09, allocations: 72.59 kB / 4.133 GB, free: 59.71 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.003355/14.1, allocations: 1.368 MB / 4.134 GB, free: 59.55 MB / 0.5574 GB Notification: Performance of sort global known variables: time 8.52e-07/14.1, allocations: 5.219 kB / 4.134 GB, free: 59.55 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01439/14.11, allocations: 2.861 MB / 4.137 GB, free: 59.55 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03151/14.14, allocations: 10.37 MB / 4.147 GB, free: 58.27 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0134/14.16, allocations: 5.284 MB / 4.152 GB, free: 57.71 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/14.16, allocations: 3.031 kB / 4.152 GB, free: 57.71 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.005587/14.16, allocations: 2.348 MB / 4.155 GB, free: 57.56 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009002/14.17, allocations: 0.9641 MB / 4.156 GB, free: 57.54 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/14.19, allocations: 7.398 MB / 4.163 GB, free: 56.07 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002795/14.2, allocations: 2.301 MB / 4.165 GB, free: 55.3 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.008631/14.21, allocations: 2.441 MB / 4.168 GB, free: 55.26 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002774/14.21, allocations: 1.284 MB / 4.169 GB, free: 55.25 MB / 0.5574 GB Notification: Performance of SimCode: time 1.512e-06/14.21, allocations: 0 / 4.169 GB, free: 55.25 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3437/14.55, allocations: 126 MB / 4.292 GB, free: 9.617 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/14.55, allocations: 236.1 kB / 4.292 GB, free: 9.309 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.628/23.18, allocations: 0 / 4.292 GB, free: 9.309 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat