Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 235.1 MB / 242.2 MB, free: 15.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.473e-05/2.474e-05, allocations: 0 / 299.5 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.375, allocations: 54.85 MB / 354.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.774/8.149, allocations: 2.676 GB / 3.022 GB, free: 99.24 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/8.149, allocations: 78.2 kB / 3.022 GB, free: 99.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.974/13.12, allocations: 0.8944 GB / 3.917 GB, free: 33.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.435e-06/13.12, allocations: 0 / 3.917 GB, free: 33.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003753/13.12, allocations: 63.84 kB / 3.917 GB, free: 33.39 MB / 0.5105 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.01868/13.14, allocations: 3.962 MB / 3.921 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/13.14, allocations: 12.75 kB / 3.921 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009458/13.15, allocations: 0.877 MB / 3.922 GB, free: 31.54 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009089/13.16, allocations: 2.1 MB / 3.924 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/13.16, allocations: 91.61 kB / 3.924 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/13.16, allocations: 125.2 kB / 3.924 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008088/13.17, allocations: 2.611 MB / 3.926 GB, free: 31.08 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009642/13.18, allocations: 2.843 MB / 3.929 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/13.18, allocations: 10.09 kB / 3.929 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005517/13.18, allocations: 6.594 kB / 3.929 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003356/13.18, allocations: 171.1 kB / 3.929 GB, free: 30.53 MB / 0.5105 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.4112/13.59, allocations: 109.6 MB / 4.036 GB, free: 21.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004838/13.6, allocations: 2.093 MB / 4.038 GB, free: 20.6 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002655/13.6, allocations: 1.055 MB / 4.039 GB, free: 20.58 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05343/13.65, allocations: 17.36 MB / 4.056 GB, free: 25.11 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003249/13.66, allocations: 1.222 MB / 4.058 GB, free: 24.95 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 6.542e-06/13.66, allocations: 0 / 4.058 GB, free: 24.95 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.0598/13.72, allocations: 9.433 MB / 4.067 GB, free: 22.86 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002213/13.72, allocations: 364.9 kB / 4.067 GB, free: 22.42 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002541/13.72, allocations: 1.088 MB / 4.068 GB, free: 21.72 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007651/13.72, allocations: 25.7 kB / 4.068 GB, free: 21.69 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00183/13.72, allocations: 1.021 MB / 4.069 GB, free: 21.09 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001321/13.72, allocations: 0.5781 MB / 4.07 GB, free: 20.62 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/13.72, allocations: 0 / 4.07 GB, free: 20.62 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002805/13.72, allocations: 392.3 kB / 4.07 GB, free: 20.29 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/13.73, allocations: 0.9966 MB / 4.071 GB, free: 19.77 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003268/13.73, allocations: 1.477 MB / 4.073 GB, free: 18.68 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/13.75, allocations: 1.947 MB / 4.074 GB, free: 17.64 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.843e-05/13.75, allocations: 4 kB / 4.074 GB, free: 17.64 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02067/13.77, allocations: 3.605 MB / 4.078 GB, free: 15.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002028/13.77, allocations: 4.953 MB / 4.083 GB, free: 10.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.008e-05/13.77, allocations: 12 kB / 4.083 GB, free: 10.38 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/13.77, allocations: 219.8 kB / 4.083 GB, free: 10.24 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004714/13.77, allocations: 0.5287 MB / 4.084 GB, free: 9.844 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/13.78, allocations: 2.458 MB / 4.086 GB, free: 7.531 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00508/13.78, allocations: 305.2 kB / 4.086 GB, free: 7.305 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008434/13.78, allocations: 108.1 kB / 4.086 GB, free: 7.23 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/13.78, allocations: 4 kB / 4.086 GB, free: 7.227 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01957/13.8, allocations: 3.167 MB / 4.089 GB, free: 5.441 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.305e-05/13.8, allocations: 12 kB / 4.089 GB, free: 5.43 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009017/13.8, allocations: 227.3 kB / 4.09 GB, free: 5.289 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004452/13.81, allocations: 0.5253 MB / 4.09 GB, free: 4.895 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/13.81, allocations: 2.459 MB / 4.093 GB, free: 2.582 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/13.82, allocations: 271.9 kB / 4.093 GB, free: 2.383 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005601/13.82, allocations: 109.4 kB / 4.093 GB, free: 2.309 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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,pipe1.statesFM[2].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,source.medium.phase,sink.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 (254): * Single equations (assignments): 248 * 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.0009347/13.82, allocations: 244.5 kB / 4.093 GB, free: 2.094 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02123/13.84, allocations: 3.046 MB / 4.096 GB, free: 292 kB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/13.84, allocations: 189.8 kB / 4.096 GB, free: 100 kB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4538/14.29, allocations: 6.951 MB / 4.103 GB, free: 94.44 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/14.29, allocations: 72.5 kB / 4.103 GB, free: 94.44 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/14.29, allocations: 2.375 kB / 4.103 GB, free: 94.44 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02295/14.32, allocations: 6.046 MB / 4.109 GB, free: 93.71 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03617/14.35, allocations: 11.05 MB / 4.12 GB, free: 92.49 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.364e-05/14.35, allocations: 7.156 kB / 4.12 GB, free: 92.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/14.36, allocations: 383.3 kB / 4.12 GB, free: 92.49 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/14.36, allocations: 332.5 kB / 4.121 GB, free: 92.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005021/14.36, allocations: 48.06 kB / 4.121 GB, free: 92.45 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/14.36, allocations: 2.635 MB / 4.123 GB, free: 90.39 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/14.36, allocations: 13.94 kB / 4.123 GB, free: 90.39 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02524/14.38, allocations: 7.505 MB / 4.131 GB, free: 89.27 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/14.39, allocations: 0.705 MB / 4.131 GB, free: 89.02 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/14.39, allocations: 27.48 kB / 4.131 GB, free: 89.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003551/14.39, allocations: 171.9 kB / 4.131 GB, free: 89.01 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007278/14.39, allocations: 158.2 kB / 4.132 GB, free: 89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000299/14.39, allocations: 84.77 kB / 4.132 GB, free: 89 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002238/14.4, allocations: 0.9888 MB / 4.133 GB, free: 88.89 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.31e-07/14.4, allocations: 5.719 kB / 4.133 GB, free: 88.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01313/14.41, allocations: 2.6 MB / 4.135 GB, free: 88.89 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (196): * Single equations (assignments): 171 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04046/14.45, allocations: 12.64 MB / 4.148 GB, free: 85.35 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01204/14.46, allocations: 4.768 MB / 4.152 GB, free: 85.04 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/14.46, allocations: 3 kB / 4.152 GB, free: 85.04 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005794/14.47, allocations: 2.394 MB / 4.155 GB, free: 84.91 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007811/14.47, allocations: 0.8332 MB / 4.155 GB, free: 84.89 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02274/14.5, allocations: 6.902 MB / 4.162 GB, free: 83.45 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002656/14.5, allocations: 2.199 MB / 4.164 GB, free: 82.68 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009079/14.51, allocations: 2.586 MB / 4.167 GB, free: 82.64 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003115/14.51, allocations: 1.24 MB / 4.168 GB, free: 82.63 MB / 0.573 GB Notification: Performance of SimCode: time 1.813e-06/14.51, allocations: 0 / 4.168 GB, free: 82.63 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2363/14.75, allocations: 100.6 MB / 4.266 GB, free: 59.31 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/14.75, allocations: 185.3 kB / 4.266 GB, free: 59.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/22.18, allocations: 0 / 4.266 GB, free: 59.11 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat