Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.544/2.544, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.284e-05/4.29e-05, allocations: 4 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1431, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.785/8.928, allocations: 2.83 GB / 3.231 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/8.929, allocations: 81.89 kB / 3.231 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.564/13.49, allocations: 0.8152 GB / 4.046 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.425e-06/13.49, allocations: 0 / 4.046 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003238/13.49, allocations: 71.88 kB / 4.046 GB, free: 13.64 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.02137/13.51, allocations: 3.953 MB / 4.05 GB, free: 9.613 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/13.51, allocations: 12.03 kB / 4.05 GB, free: 9.602 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001643/13.52, allocations: 295.1 kB / 4.05 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009171/13.53, allocations: 0.8337 MB / 4.051 GB, free: 8.469 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009261/13.53, allocations: 2.168 MB / 4.053 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/13.54, allocations: 180.1 kB / 4.053 GB, free: 6.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/13.54, allocations: 195.9 kB / 4.054 GB, free: 5.879 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01395/13.55, allocations: 3.706 MB / 4.057 GB, free: 1.965 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/13.55, allocations: 3.938 kB / 4.057 GB, free: 1.961 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001127/13.55, allocations: 87.97 kB / 4.057 GB, free: 1.875 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003479/13.55, allocations: 163.7 kB / 4.057 GB, free: 1.715 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/13.57, allocations: 3.411 MB / 4.061 GB, free: 14.3 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.5715/14.14, allocations: 14.93 MB / 4.075 GB, free: 38.89 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008557/14.15, allocations: 2.144 MB / 4.077 GB, free: 38.87 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003358/14.15, allocations: 1.089 MB / 4.078 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08491/14.23, allocations: 24.61 MB / 4.102 GB, free: 23.86 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006485/14.24, allocations: 1.707 MB / 4.104 GB, free: 23.74 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002089/14.24, allocations: 199.5 kB / 4.104 GB, free: 23.74 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 9.117e-06/14.24, allocations: 0 / 4.104 GB, free: 23.74 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.04779/14.29, allocations: 7.508 MB / 4.112 GB, free: 22.86 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001995/14.29, allocations: 415 kB / 4.112 GB, free: 22.39 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005793/14.3, allocations: 1.541 MB / 4.114 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009326/14.3, allocations: 61.42 kB / 4.114 GB, free: 22.13 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002209/14.3, allocations: 0.9856 MB / 4.115 GB, free: 21.85 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001807/14.3, allocations: 0.5832 MB / 4.115 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008636/14.3, allocations: 43.69 kB / 4.115 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003958/14.3, allocations: 385 kB / 4.116 GB, free: 21.25 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005171/14.31, allocations: 1.072 MB / 4.117 GB, free: 21.24 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005698/14.31, allocations: 1.501 MB / 4.118 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005538/14.32, allocations: 1.322 MB / 4.119 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-05/14.32, allocations: 3.938 kB / 4.119 GB, free: 20.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01599/14.34, allocations: 3.35 MB / 4.123 GB, free: 20.41 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001273/14.34, allocations: 4.061 MB / 4.127 GB, free: 16.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.986e-05/14.34, allocations: 13.78 kB / 4.127 GB, free: 16.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01321/14.35, allocations: 0.9515 MB / 4.128 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006067/14.36, allocations: 467.5 kB / 4.128 GB, free: 16.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/14.36, allocations: 3.157 MB / 4.131 GB, free: 30.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006452/14.37, allocations: 248.7 kB / 4.131 GB, free: 30.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000924/14.37, allocations: 101.1 kB / 4.131 GB, free: 30.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/14.37, allocations: 3.5 kB / 4.131 GB, free: 30.06 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01451/14.39, allocations: 3.024 MB / 4.134 GB, free: 29.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/14.39, allocations: 11.03 kB / 4.134 GB, free: 29.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003212/14.39, allocations: 357.3 kB / 4.135 GB, free: 29.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006496/14.4, allocations: 486.6 kB / 4.135 GB, free: 29.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008489/14.4, allocations: 4.053 MB / 4.139 GB, free: 27.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00605/14.41, allocations: 231.8 kB / 4.139 GB, free: 27.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/14.41, allocations: 104 kB / 4.139 GB, free: 27.05 MB / 0.573 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,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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.001368/14.41, allocations: 301 kB / 4.14 GB, free: 26.88 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/14.41, allocations: 217.9 kB / 4.14 GB, free: 26.77 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01874/14.43, allocations: 7.846 MB / 4.148 GB, free: 26.08 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.291e-05/14.43, allocations: 87.92 kB / 4.148 GB, free: 26.08 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/14.43, allocations: 3.953 kB / 4.148 GB, free: 26.07 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/14.44, allocations: 6.866 MB / 4.154 GB, free: 25.14 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/14.47, allocations: 10.97 MB / 4.165 GB, free: 24.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.839e-05/14.47, allocations: 0 / 4.165 GB, free: 24.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003185/14.47, allocations: 356.3 kB / 4.165 GB, free: 24.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00837/14.48, allocations: 2.527 MB / 4.168 GB, free: 24.31 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005761/14.48, allocations: 63.89 kB / 4.168 GB, free: 24.31 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004997/14.49, allocations: 4.117 MB / 4.172 GB, free: 22.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/14.49, allocations: 0 / 4.172 GB, free: 22.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/14.5, allocations: 7.806 MB / 4.18 GB, free: 21.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/14.5, allocations: 0.7831 MB / 4.18 GB, free: 21.23 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008527/14.5, allocations: 56.09 kB / 4.18 GB, free: 21.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003494/14.51, allocations: 202.1 kB / 4.181 GB, free: 21.21 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005237/14.51, allocations: 142.1 kB / 4.181 GB, free: 21.21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/14.51, allocations: 75.92 kB / 4.181 GB, free: 21.21 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003034/14.51, allocations: 1.363 MB / 4.182 GB, free: 21.05 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.623e-06/14.51, allocations: 0 / 4.182 GB, free: 21.05 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01321/14.52, allocations: 2.865 MB / 4.185 GB, free: 20.93 MB / 0.573 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.02978/14.55, allocations: 10.36 MB / 4.195 GB, free: 19.53 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0128/14.57, allocations: 5.285 MB / 4.2 GB, free: 18.97 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.587e-06/14.57, allocations: 5.938 kB / 4.2 GB, free: 18.97 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005214/14.57, allocations: 2.346 MB / 4.203 GB, free: 18.82 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008784/14.58, allocations: 0.9608 MB / 4.204 GB, free: 18.79 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/14.6, allocations: 7.406 MB / 4.211 GB, free: 17.03 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/14.61, allocations: 2.298 MB / 4.213 GB, free: 16.16 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007933/14.61, allocations: 2.444 MB / 4.215 GB, free: 16.11 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002503/14.62, allocations: 1.289 MB / 4.217 GB, free: 15.05 MB / 0.573 GB Notification: Performance of SimCode: time 1.633e-06/14.62, allocations: 0 / 4.217 GB, free: 15.05 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7507/15.37, allocations: 126.6 MB / 4.34 GB, free: 68.38 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/15.37, allocations: 237.9 kB / 4.34 GB, free: 68.07 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.522/24.89, allocations: 0 / 4.34 GB, free: 68.07 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat