Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.598/2.598, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.057e-05/4.073e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1405, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.194/9.335, allocations: 2.847 GB / 3.248 GB, free: 99.04 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/9.335, allocations: 77.72 kB / 3.248 GB, free: 99.04 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.181/13.52, allocations: 0.812 GB / 4.06 GB, free: 2.707 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.564e-06/13.52, allocations: 3.938 kB / 4.06 GB, free: 2.703 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003336/13.52, allocations: 63.92 kB / 4.06 GB, free: 2.641 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.4744/13.99, allocations: 3.657 MB / 4.063 GB, free: 37.95 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/13.99, allocations: 10 kB / 4.063 GB, free: 37.95 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001229/13.99, allocations: 271.3 kB / 4.064 GB, free: 37.91 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008803/14, allocations: 0.7859 MB / 4.064 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009187/14.01, allocations: 1.982 MB / 4.066 GB, free: 37.44 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/14.01, allocations: 164.1 kB / 4.066 GB, free: 37.43 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009608/14.01, allocations: 177.5 kB / 4.067 GB, free: 37.43 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/14.02, allocations: 3.328 MB / 4.07 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.575e-05/14.02, allocations: 6.688 kB / 4.07 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000436/14.02, allocations: 83.83 kB / 4.07 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003461/14.02, allocations: 142.1 kB / 4.07 GB, free: 36.95 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0124/14.04, allocations: 3.044 MB / 4.073 GB, free: 36.94 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.0324/14.07, allocations: 13.82 MB / 4.087 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007479/14.08, allocations: 1.988 MB / 4.088 GB, free: 28.77 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003077/14.08, allocations: 1.074 MB / 4.09 GB, free: 28.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08168/14.16, allocations: 24.67 MB / 4.114 GB, free: 29.65 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005837/14.17, allocations: 1.633 MB / 4.115 GB, free: 29.54 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001852/14.17, allocations: 182.3 kB / 4.115 GB, free: 29.49 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.481e-06/14.17, allocations: 3.75 kB / 4.115 GB, free: 29.49 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02813/14.2, allocations: 7.029 MB / 4.122 GB, free: 28.59 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/14.2, allocations: 259.8 kB / 4.123 GB, free: 28.3 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002842/14.2, allocations: 1.313 MB / 4.124 GB, free: 28.13 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006267/14.2, allocations: 58.8 kB / 4.124 GB, free: 28.1 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009696/14.2, allocations: 0.8677 MB / 4.125 GB, free: 27.84 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008714/14.2, allocations: 0.5525 MB / 4.125 GB, free: 27.54 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/14.2, allocations: 37.69 kB / 4.125 GB, free: 27.54 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001936/14.2, allocations: 380.8 kB / 4.126 GB, free: 27.23 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/14.21, allocations: 0.9326 MB / 4.127 GB, free: 27.23 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002665/14.21, allocations: 1.321 MB / 4.128 GB, free: 26.84 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002766/14.21, allocations: 1.167 MB / 4.129 GB, free: 26.76 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/14.21, allocations: 0 / 4.129 GB, free: 26.76 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008895/14.22, allocations: 2.96 MB / 4.132 GB, free: 26.48 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001512/14.22, allocations: 3.843 MB / 4.136 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.9e-05/14.22, allocations: 9.75 kB / 4.136 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004382/14.23, allocations: 0.5132 MB / 4.136 GB, free: 22.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003815/14.23, allocations: 457.2 kB / 4.137 GB, free: 22.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/14.23, allocations: 2.697 MB / 4.139 GB, free: 20.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00448/14.24, allocations: 266.8 kB / 4.139 GB, free: 20.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005307/14.24, allocations: 90.78 kB / 4.14 GB, free: 20.32 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/14.24, allocations: 4.5 kB / 4.14 GB, free: 20.32 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006725/14.25, allocations: 2.602 MB / 4.142 GB, free: 20.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/14.25, allocations: 6.844 kB / 4.142 GB, free: 20.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009177/14.25, allocations: 192.9 kB / 4.142 GB, free: 20.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003745/14.25, allocations: 461.4 kB / 4.143 GB, free: 20.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/14.25, allocations: 1.869 MB / 4.145 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/14.26, allocations: 254 kB / 4.145 GB, free: 18.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006943/14.26, allocations: 93.86 kB / 4.145 GB, free: 18.6 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.0009989/14.26, allocations: 295.9 kB / 4.145 GB, free: 18.42 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007823/14.26, allocations: 209.8 kB / 4.145 GB, free: 18.31 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01487/14.27, allocations: 7.452 MB / 4.153 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-05/14.27, allocations: 82.53 kB / 4.153 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/14.27, allocations: 0 / 4.153 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01062/14.28, allocations: 6.517 MB / 4.159 GB, free: 16.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02282/14.31, allocations: 11.22 MB / 4.17 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/14.31, allocations: 3.594 kB / 4.17 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002785/14.31, allocations: 369 kB / 4.17 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00404/14.31, allocations: 1.294 MB / 4.172 GB, free: 15.38 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004817/14.31, allocations: 66.81 kB / 4.172 GB, free: 15.38 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00384/14.32, allocations: 3.187 MB / 4.175 GB, free: 29.29 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/14.32, allocations: 5.906 kB / 4.175 GB, free: 29.29 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/14.33, allocations: 7.291 MB / 4.182 GB, free: 28.03 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/14.33, allocations: 0.7375 MB / 4.183 GB, free: 27.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006292/14.33, allocations: 51.3 kB / 4.183 GB, free: 27.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002799/14.34, allocations: 187.4 kB / 4.183 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/14.34, allocations: 154.7 kB / 4.183 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002316/14.34, allocations: 76.5 kB / 4.183 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00243/14.34, allocations: 1.197 MB / 4.184 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.31e-07/14.34, allocations: 0 / 4.184 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01215/14.35, allocations: 2.593 MB / 4.187 GB, free: 27.43 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,$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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.02826/14.38, allocations: 11.33 MB / 4.198 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01128/14.39, allocations: 4.626 MB / 4.202 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/14.39, allocations: 0 / 4.202 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005314/14.4, allocations: 2.428 MB / 4.205 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008571/14.41, allocations: 0.9114 MB / 4.206 GB, free: 23.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02045/14.43, allocations: 6.949 MB / 4.212 GB, free: 22.5 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002214/14.43, allocations: 2.184 MB / 4.215 GB, free: 21.65 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007923/14.44, allocations: 2.468 MB / 4.217 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/14.44, allocations: 1.2 MB / 4.218 GB, free: 20.63 MB / 0.5886 GB Notification: Performance of SimCode: time 1.513e-06/14.44, allocations: 0 / 4.218 GB, free: 20.63 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7727/15.21, allocations: 116.6 MB / 4.332 GB, free: 64 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002874/15.21, allocations: 224.8 kB / 4.332 GB, free: 63.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.553/23.77, allocations: 0 / 4.332 GB, free: 63.7 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat