Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.708/2.708, allocations: 270 MB / 283.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.77e-05/3.781e-05, allocations: 8 kB / 348.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4412/0.4412, allocations: 61.86 MB / 410.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.908/9.349, allocations: 2.847 GB / 3.248 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/9.35, allocations: 82.39 kB / 3.248 GB, free: 54.73 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.725/14.07, allocations: 0.8825 GB / 4.131 GB, free: 6.426 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.124e-06/14.07, allocations: 3.938 kB / 4.131 GB, free: 6.422 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003389/14.07, allocations: 63.98 kB / 4.131 GB, free: 6.359 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01897/14.09, allocations: 3.752 MB / 4.135 GB, free: 2.543 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/14.09, allocations: 12.03 kB / 4.135 GB, free: 2.531 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001331/14.1, allocations: 278.3 kB / 4.135 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008705/14.1, allocations: 0.7854 MB / 4.136 GB, free: 1.461 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4751/14.58, allocations: 1.966 MB / 4.138 GB, free: 36.47 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004869/14.58, allocations: 163.4 kB / 4.138 GB, free: 36.47 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/14.58, allocations: 184.3 kB / 4.138 GB, free: 36.47 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/14.59, allocations: 3.249 MB / 4.141 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.906e-05/14.59, allocations: 9.25 kB / 4.141 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003864/14.59, allocations: 83.52 kB / 4.141 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002975/14.59, allocations: 141.8 kB / 4.141 GB, free: 35.98 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009836/14.6, allocations: 2.814 MB / 4.144 GB, free: 35.98 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.02755/14.63, allocations: 14.08 MB / 4.158 GB, free: 27.67 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00652/14.64, allocations: 1.97 MB / 4.16 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002544/14.64, allocations: 1.06 MB / 4.161 GB, free: 27.64 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08851/14.73, allocations: 24.68 MB / 4.185 GB, free: 28.54 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009906/14.74, allocations: 1.626 MB / 4.186 GB, free: 28.42 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003038/14.74, allocations: 173.2 kB / 4.187 GB, free: 28.38 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.734e-05/14.74, allocations: 0 / 4.187 GB, free: 28.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.04713/14.79, allocations: 7.04 MB / 4.193 GB, free: 27.46 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002296/14.79, allocations: 259.6 kB / 4.194 GB, free: 27.18 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/14.79, allocations: 1.321 MB / 4.195 GB, free: 27.01 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007889/14.8, allocations: 58.98 kB / 4.195 GB, free: 26.98 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001647/14.8, allocations: 0.8849 MB / 4.196 GB, free: 26.71 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/14.8, allocations: 0.5533 MB / 4.196 GB, free: 26.44 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003877/14.8, allocations: 34.81 kB / 4.196 GB, free: 26.44 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003311/14.8, allocations: 380.9 kB / 4.197 GB, free: 26.13 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004027/14.8, allocations: 0.9322 MB / 4.198 GB, free: 26.13 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004968/14.81, allocations: 1.324 MB / 4.199 GB, free: 25.75 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004711/14.81, allocations: 1.167 MB / 4.2 GB, free: 25.66 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.29e-05/14.81, allocations: 3.531 kB / 4.2 GB, free: 25.66 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01294/14.83, allocations: 2.958 MB / 4.203 GB, free: 25.39 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001459/14.83, allocations: 3.839 MB / 4.207 GB, free: 21.35 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.479e-05/14.83, allocations: 13.06 kB / 4.207 GB, free: 21.35 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004417/14.83, allocations: 0.5116 MB / 4.207 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003875/14.84, allocations: 452.9 kB / 4.208 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002934/14.84, allocations: 2.709 MB / 4.21 GB, free: 19.24 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004605/14.84, allocations: 265.6 kB / 4.211 GB, free: 19.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000728/14.84, allocations: 93.19 kB / 4.211 GB, free: 19.23 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/14.84, allocations: 6.875 kB / 4.211 GB, free: 19.23 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007289/14.85, allocations: 2.595 MB / 4.213 GB, free: 19.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.553e-05/14.85, allocations: 9.906 kB / 4.213 GB, free: 19.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009248/14.85, allocations: 192 kB / 4.213 GB, free: 19.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004061/14.86, allocations: 465.5 kB / 4.214 GB, free: 19.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001744/14.86, allocations: 1.87 MB / 4.216 GB, free: 17.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004412/14.86, allocations: 261.6 kB / 4.216 GB, free: 17.51 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00069/14.86, allocations: 95.78 kB / 4.216 GB, free: 17.51 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009046/14.87, allocations: 290.3 kB / 4.216 GB, free: 17.34 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006676/14.87, allocations: 202.2 kB / 4.217 GB, free: 17.24 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01502/14.88, allocations: 7.452 MB / 4.224 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/14.88, allocations: 78.84 kB / 4.224 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/14.88, allocations: 3.906 kB / 4.224 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01174/14.89, allocations: 6.513 MB / 4.23 GB, free: 15.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/14.92, allocations: 11.26 MB / 4.241 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.346e-05/14.92, allocations: 4.562 kB / 4.241 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003001/14.92, allocations: 365.8 kB / 4.242 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/14.93, allocations: 1.306 MB / 4.243 GB, free: 30.42 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006052/14.93, allocations: 65.08 kB / 4.243 GB, free: 30.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003454/14.93, allocations: 3.203 MB / 4.246 GB, free: 28.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/14.93, allocations: 10.75 kB / 4.246 GB, free: 28.32 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/14.94, allocations: 7.287 MB / 4.253 GB, free: 27.07 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00259/14.95, allocations: 0.7387 MB / 4.254 GB, free: 26.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008946/14.95, allocations: 51.8 kB / 4.254 GB, free: 26.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00352/14.95, allocations: 198.5 kB / 4.254 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005898/14.95, allocations: 157 kB / 4.254 GB, free: 26.72 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003059/14.95, allocations: 76.17 kB / 4.254 GB, free: 26.72 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002867/14.95, allocations: 1.2 MB / 4.256 GB, free: 26.56 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.82e-07/14.95, allocations: 3.156 kB / 4.256 GB, free: 26.56 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01357/14.97, allocations: 2.636 MB / 4.258 GB, free: 26.46 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03095/15, allocations: 11.4 MB / 4.269 GB, free: 23.41 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0121/15.01, allocations: 4.576 MB / 4.274 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/15.01, allocations: 0 / 4.274 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005872/15.02, allocations: 2.447 MB / 4.276 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008979/15.03, allocations: 0.978 MB / 4.277 GB, free: 22.92 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/15.05, allocations: 6.963 MB / 4.284 GB, free: 21.54 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002325/15.05, allocations: 2.199 MB / 4.286 GB, free: 20.78 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008279/15.06, allocations: 2.484 MB / 4.288 GB, free: 20.73 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002529/15.06, allocations: 1.213 MB / 4.29 GB, free: 20.51 MB / 0.5886 GB Notification: Performance of SimCode: time 1.653e-06/15.06, allocations: 0 / 4.29 GB, free: 20.51 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8182/15.88, allocations: 119.3 MB / 4.406 GB, free: 78.58 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002689/15.88, allocations: 230.5 kB / 4.406 GB, free: 78.27 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.963/24.84, allocations: 0 / 4.406 GB, free: 78.27 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat