Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.562/2.562, allocations: 270 MB / 283.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.277e-05/4.291e-05, allocations: 0 / 348.5 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.3996, allocations: 61.87 MB / 410.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.9/9.3, allocations: 2.851 GB / 3.252 GB, free: 50.44 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/9.3, allocations: 76.83 kB / 3.252 GB, free: 50.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.514/14.81, allocations: 0.9176 GB / 4.17 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.244e-06/14.81, allocations: 0 / 4.17 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003489/14.81, allocations: 66.78 kB / 4.17 GB, free: 39.7 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.0199/14.83, allocations: 3.972 MB / 4.174 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/14.83, allocations: 14.47 kB / 4.174 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00143/14.84, allocations: 299.7 kB / 4.174 GB, free: 37.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009738/14.85, allocations: 0.8752 MB / 4.175 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009023/14.85, allocations: 2.1 MB / 4.177 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/14.86, allocations: 179.8 kB / 4.177 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/14.86, allocations: 209.9 kB / 4.177 GB, free: 37.38 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/14.87, allocations: 3.621 MB / 4.181 GB, free: 36.84 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.354e-05/14.87, allocations: 7.531 kB / 4.181 GB, free: 36.84 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004404/14.87, allocations: 92.28 kB / 4.181 GB, free: 36.84 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000326/14.87, allocations: 171 kB / 4.181 GB, free: 36.84 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/14.88, allocations: 3.179 MB / 4.184 GB, free: 36.82 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.0311/14.91, allocations: 15.63 MB / 4.199 GB, free: 27.39 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008185/14.92, allocations: 2.703 MB / 4.202 GB, free: 26.79 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002976/14.92, allocations: 1.165 MB / 4.203 GB, free: 26.77 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0786/15, allocations: 24.58 MB / 4.227 GB, free: 27.74 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007039/15.01, allocations: 1.729 MB / 4.229 GB, free: 27.62 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 1.144e-05/15.01, allocations: 3.172 kB / 4.229 GB, free: 27.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.05036/15.06, allocations: 7.871 MB / 4.236 GB, free: 26.56 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002592/15.06, allocations: 259.1 kB / 4.237 GB, free: 26.28 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/15.06, allocations: 1.411 MB / 4.238 GB, free: 26.09 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008838/15.07, allocations: 63.8 kB / 4.238 GB, free: 26.06 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001732/15.07, allocations: 0.9622 MB / 4.239 GB, free: 25.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001475/15.07, allocations: 0.6283 MB / 4.24 GB, free: 25.3 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003945/15.07, allocations: 43.94 kB / 4.24 GB, free: 25.29 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003176/15.07, allocations: 388.5 kB / 4.24 GB, free: 24.98 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004451/15.07, allocations: 1.034 MB / 4.241 GB, free: 24.98 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005405/15.08, allocations: 1.484 MB / 4.243 GB, free: 24.53 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00447/15.08, allocations: 1.284 MB / 4.244 GB, free: 24.44 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.227e-05/15.08, allocations: 0 / 4.244 GB, free: 24.44 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.009014/15.09, allocations: 3.111 MB / 4.247 GB, free: 24.16 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001855/15.09, allocations: 4.491 MB / 4.251 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.153e-05/15.09, allocations: 11.03 kB / 4.251 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/15.1, allocations: 230.5 kB / 4.251 GB, free: 19.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004637/15.1, allocations: 0.5251 MB / 4.252 GB, free: 19.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/15.1, allocations: 2.427 MB / 4.254 GB, free: 17.36 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0052/15.11, allocations: 312 kB / 4.255 GB, free: 17.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000719/15.11, allocations: 102.4 kB / 4.255 GB, free: 17.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/15.11, allocations: 3.469 kB / 4.255 GB, free: 17.34 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007995/15.12, allocations: 2.845 MB / 4.258 GB, free: 17.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.861e-05/15.12, allocations: 10.84 kB / 4.258 GB, free: 17.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/15.12, allocations: 236.2 kB / 4.258 GB, free: 17.15 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00445/15.12, allocations: 0.5145 MB / 4.258 GB, free: 17.15 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/15.13, allocations: 2.431 MB / 4.261 GB, free: 15.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004877/15.13, allocations: 303.7 kB / 4.261 GB, free: 15.03 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003921/15.13, allocations: 110 kB / 4.261 GB, free: 15.03 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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,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,junctionIdeal.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 (250): * Single equations (assignments): 244 * 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.0009426/15.13, allocations: 311.2 kB / 4.261 GB, free: 14.84 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006253/15.13, allocations: 213.1 kB / 4.262 GB, free: 14.74 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/15.15, allocations: 7.558 MB / 4.269 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/15.15, allocations: 82.02 kB / 4.269 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/15.15, allocations: 0 / 4.269 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01221/15.16, allocations: 6.565 MB / 4.275 GB, free: 12.99 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02679/15.19, allocations: 12.25 MB / 4.287 GB, free: 10.66 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/15.19, allocations: 3.875 kB / 4.287 GB, free: 10.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003541/15.19, allocations: 445 kB / 4.288 GB, free: 10.63 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/15.19, allocations: 338.8 kB / 4.288 GB, free: 10.52 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005421/15.19, allocations: 73.11 kB / 4.288 GB, free: 10.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/15.19, allocations: 2.532 MB / 4.291 GB, free: 24.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/15.19, allocations: 8.5 kB / 4.291 GB, free: 24.22 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01622/15.21, allocations: 7.562 MB / 4.298 GB, free: 20.36 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002745/15.21, allocations: 0.7788 MB / 4.299 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/15.22, allocations: 60.22 kB / 4.299 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004103/15.22, allocations: 224.5 kB / 4.299 GB, free: 19.79 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000838/15.22, allocations: 176.5 kB / 4.299 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003395/15.22, allocations: 90.25 kB / 4.299 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003156/15.22, allocations: 1.256 MB / 4.301 GB, free: 19.24 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.62e-07/15.22, allocations: 7.938 kB / 4.301 GB, free: 19.23 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01474/15.24, allocations: 2.779 MB / 4.303 GB, free: 18.69 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.0345/15.27, allocations: 12.25 MB / 4.315 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01619/15.29, allocations: 5.108 MB / 4.32 GB, free: 5.48 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/15.29, allocations: 4 kB / 4.32 GB, free: 5.477 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.007289/15.3, allocations: 2.653 MB / 4.323 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01022/15.31, allocations: 1.058 MB / 4.324 GB, free: 2.297 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02623/15.33, allocations: 7.562 MB / 4.331 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003492/15.34, allocations: 2.294 MB / 4.334 GB, free: 9.824 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01024/15.35, allocations: 2.604 MB / 4.336 GB, free: 8.266 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003544/15.35, allocations: 1.315 MB / 4.337 GB, free: 7.059 MB / 0.6042 GB Notification: Performance of SimCode: time 1.863e-06/15.35, allocations: 0 / 4.337 GB, free: 7.059 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9218/16.27, allocations: 125.1 MB / 4.46 GB, free: 72.94 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003207/16.27, allocations: 244.4 kB / 4.46 GB, free: 72.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.425/25.7, allocations: 2.156 kB / 4.46 GB, free: 72.62 MB / 0.6042 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat