Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.473/2.473, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.234e-05/4.245e-05, allocations: 4 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1433, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.794/8.938, allocations: 2.83 GB / 3.231 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/8.938, allocations: 76.41 kB / 3.231 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.568/13.51, allocations: 0.8083 GB / 4.039 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.794e-06/13.51, allocations: 0 / 4.039 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000349/13.51, allocations: 67.92 kB / 4.039 GB, free: 19.89 MB / 0.5417 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.02166/13.53, allocations: 3.973 MB / 4.043 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/13.53, allocations: 8.031 kB / 4.043 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001426/13.53, allocations: 295.1 kB / 4.043 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00905/13.54, allocations: 0.8374 MB / 4.044 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008686/13.55, allocations: 2.079 MB / 4.046 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003395/13.55, allocations: 176.1 kB / 4.046 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/13.55, allocations: 207.8 kB / 4.047 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/13.56, allocations: 3.699 MB / 4.05 GB, free: 8.277 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/13.56, allocations: 4 kB / 4.05 GB, free: 8.273 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005133/13.56, allocations: 87.97 kB / 4.05 GB, free: 8.188 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003116/13.56, allocations: 167.6 kB / 4.05 GB, free: 8.023 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/13.57, allocations: 3.4 MB / 4.054 GB, free: 4.621 MB / 0.5417 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.03593/13.61, allocations: 14.93 MB / 4.068 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007861/13.62, allocations: 2.145 MB / 4.07 GB, free: 2.305 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003195/13.62, allocations: 1.084 MB / 4.071 GB, free: 1.219 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5548/14.18, allocations: 24.62 MB / 4.096 GB, free: 32.07 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006864/14.18, allocations: 1.699 MB / 4.097 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001914/14.19, allocations: 198.3 kB / 4.097 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 7.043e-06/14.19, allocations: 0.5469 kB / 4.097 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.03126/14.22, allocations: 7.504 MB / 4.105 GB, free: 31.13 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/14.22, allocations: 416.4 kB / 4.105 GB, free: 30.66 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/14.22, allocations: 1.561 MB / 4.107 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006509/14.22, allocations: 56.2 kB / 4.107 GB, free: 30.4 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001124/14.22, allocations: 0.9793 MB / 4.108 GB, free: 30.12 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001105/14.22, allocations: 0.5827 MB / 4.108 GB, free: 29.83 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/14.22, allocations: 39.91 kB / 4.108 GB, free: 29.83 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001663/14.22, allocations: 385.3 kB / 4.109 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002892/14.23, allocations: 1.078 MB / 4.11 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/14.23, allocations: 1.497 MB / 4.111 GB, free: 29.06 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003439/14.23, allocations: 1.319 MB / 4.112 GB, free: 28.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.595e-05/14.23, allocations: 3.5 kB / 4.112 GB, free: 28.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009621/14.24, allocations: 3.35 MB / 4.116 GB, free: 28.69 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001047/14.24, allocations: 4.064 MB / 4.12 GB, free: 24.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.079e-05/14.24, allocations: 11.34 kB / 4.12 GB, free: 24.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00852/14.25, allocations: 0.9597 MB / 4.121 GB, free: 24.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004049/14.26, allocations: 468.2 kB / 4.121 GB, free: 24.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003916/14.26, allocations: 3.164 MB / 4.124 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00489/14.27, allocations: 235.1 kB / 4.124 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009011/14.27, allocations: 103.1 kB / 4.124 GB, free: 22.34 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/14.27, allocations: 11.77 kB / 4.124 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009172/14.28, allocations: 3.018 MB / 4.127 GB, free: 22.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.554e-05/14.28, allocations: 14.12 kB / 4.127 GB, free: 22.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002002/14.28, allocations: 356.3 kB / 4.128 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/14.28, allocations: 492.3 kB / 4.128 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005015/14.29, allocations: 4.044 MB / 4.132 GB, free: 19.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/14.29, allocations: 235.4 kB / 4.132 GB, free: 19.32 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000352/14.29, allocations: 99.31 kB / 4.133 GB, free: 19.32 MB / 0.5573 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.0008258/14.29, allocations: 308 kB / 4.133 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006003/14.29, allocations: 218.8 kB / 4.133 GB, free: 19.04 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/14.31, allocations: 7.849 MB / 4.141 GB, free: 18.35 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/14.31, allocations: 82.58 kB / 4.141 GB, free: 18.35 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/14.31, allocations: 3.797 kB / 4.141 GB, free: 18.35 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01187/14.32, allocations: 6.864 MB / 4.147 GB, free: 17.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/14.34, allocations: 10.97 MB / 4.158 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/14.34, allocations: 2.906 kB / 4.158 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003024/14.34, allocations: 345.6 kB / 4.159 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008068/14.35, allocations: 2.53 MB / 4.161 GB, free: 16.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006227/14.35, allocations: 69.16 kB / 4.161 GB, free: 16.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/14.36, allocations: 4.115 MB / 4.165 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/14.36, allocations: 0 / 4.165 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/14.37, allocations: 7.803 MB / 4.173 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002513/14.37, allocations: 0.7782 MB / 4.173 GB, free: 13.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007728/14.38, allocations: 60.89 kB / 4.174 GB, free: 13.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003244/14.38, allocations: 199 kB / 4.174 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/14.38, allocations: 142.2 kB / 4.174 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/14.38, allocations: 74.81 kB / 4.174 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002945/14.38, allocations: 1.369 MB / 4.175 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.72e-07/14.38, allocations: 0 / 4.175 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01378/14.4, allocations: 2.866 MB / 4.178 GB, free: 13.22 MB / 0.5573 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.03025/14.43, allocations: 10.37 MB / 4.188 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01241/14.44, allocations: 5.291 MB / 4.193 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/14.44, allocations: 0 / 4.193 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005026/14.44, allocations: 2.354 MB / 4.196 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008887/14.45, allocations: 0.9554 MB / 4.197 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02271/14.48, allocations: 7.4 MB / 4.204 GB, free: 9.672 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002256/14.48, allocations: 2.299 MB / 4.206 GB, free: 8.898 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008006/14.49, allocations: 2.439 MB / 4.208 GB, free: 8.852 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/14.49, allocations: 1.286 MB / 4.21 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of SimCode: time 1.753e-06/14.49, allocations: 0.875 kB / 4.21 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7835/15.27, allocations: 127.3 MB / 4.334 GB, free: 73.06 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001228/15.27, allocations: 237.8 kB / 4.334 GB, free: 72.75 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.399/24.67, allocations: 0.9062 kB / 4.334 GB, free: 72.75 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat