Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 270 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.111e-05/4.12e-05, allocations: 5.828 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.146, allocations: 61.89 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.895/9.041, allocations: 2.83 GB / 3.231 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/9.041, allocations: 79.09 kB / 3.231 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.481/13.52, allocations: 0.8083 GB / 4.039 GB, free: 21.35 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.814e-06/13.52, allocations: 0 / 4.039 GB, free: 21.35 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003534/13.52, allocations: 67.92 kB / 4.039 GB, free: 21.29 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.0257/13.55, allocations: 3.957 MB / 4.043 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/13.55, allocations: 16.03 kB / 4.043 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/13.55, allocations: 295.1 kB / 4.043 GB, free: 16.94 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01311/13.56, allocations: 0.8296 MB / 4.044 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/13.57, allocations: 2.087 MB / 4.046 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004085/13.57, allocations: 176.1 kB / 4.046 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/13.58, allocations: 199.8 kB / 4.047 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0159/13.59, allocations: 3.706 MB / 4.05 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/13.59, allocations: 3.938 kB / 4.05 GB, free: 9.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006116/13.59, allocations: 91.91 kB / 4.05 GB, free: 9.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000413/13.59, allocations: 163.7 kB / 4.05 GB, free: 9.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01602/13.61, allocations: 3.411 MB / 4.054 GB, free: 6.016 MB / 0.5417 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.03469/13.64, allocations: 14.93 MB / 4.068 GB, free: 5.852 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00838/13.65, allocations: 2.145 MB / 4.07 GB, free: 3.699 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/13.66, allocations: 1.082 MB / 4.072 GB, free: 2.617 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5617/14.22, allocations: 24.61 MB / 4.096 GB, free: 33.41 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01092/14.23, allocations: 1.703 MB / 4.097 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003275/14.23, allocations: 198.7 kB / 4.097 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 1.95e-05/14.23, allocations: 3.562 kB / 4.097 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.05239/14.28, allocations: 7.497 MB / 4.105 GB, free: 32.47 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002205/14.28, allocations: 418.5 kB / 4.105 GB, free: 32 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006728/14.29, allocations: 1.555 MB / 4.107 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009217/14.29, allocations: 60.44 kB / 4.107 GB, free: 31.74 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002017/14.29, allocations: 0.9752 MB / 4.108 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/14.3, allocations: 0.5844 MB / 4.108 GB, free: 31.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004389/14.3, allocations: 37.16 kB / 4.108 GB, free: 31.17 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002794/14.3, allocations: 386.6 kB / 4.109 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005041/14.3, allocations: 1.077 MB / 4.11 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005653/14.31, allocations: 1.503 MB / 4.111 GB, free: 30.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005572/14.31, allocations: 1.318 MB / 4.112 GB, free: 30.32 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.038e-05/14.31, allocations: 2.906 kB / 4.112 GB, free: 30.32 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01762/14.33, allocations: 3.352 MB / 4.116 GB, free: 30.03 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001602/14.33, allocations: 4.062 MB / 4.12 GB, free: 25.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/14.33, allocations: 17.81 kB / 4.12 GB, free: 25.81 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01329/14.35, allocations: 0.9555 MB / 4.121 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006154/14.35, allocations: 467.3 kB / 4.121 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/14.36, allocations: 3.159 MB / 4.124 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006752/14.37, allocations: 227.5 kB / 4.124 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/14.37, allocations: 110.5 kB / 4.124 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/14.37, allocations: 10.36 kB / 4.124 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01619/14.38, allocations: 3.018 MB / 4.127 GB, free: 23.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.559e-05/14.38, allocations: 15.44 kB / 4.127 GB, free: 23.53 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003294/14.39, allocations: 352.6 kB / 4.128 GB, free: 23.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00625/14.39, allocations: 493.4 kB / 4.128 GB, free: 23.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008032/14.4, allocations: 4.045 MB / 4.132 GB, free: 20.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006235/14.41, allocations: 233.5 kB / 4.132 GB, free: 20.67 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/14.41, allocations: 104.1 kB / 4.133 GB, free: 20.67 MB / 0.5573 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.001333/14.41, allocations: 302.8 kB / 4.133 GB, free: 20.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/14.41, allocations: 217.4 kB / 4.133 GB, free: 20.39 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02475/14.44, allocations: 7.847 MB / 4.141 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001806/14.44, allocations: 83.44 kB / 4.141 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/14.44, allocations: 2.781 kB / 4.141 GB, free: 19.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02125/14.46, allocations: 6.871 MB / 4.147 GB, free: 18.76 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03461/14.49, allocations: 10.96 MB / 4.158 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.225e-05/14.49, allocations: 2.562 kB / 4.158 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004092/14.5, allocations: 353.6 kB / 4.159 GB, free: 18.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01181/14.51, allocations: 2.524 MB / 4.161 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007505/14.51, allocations: 67.64 kB / 4.161 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006491/14.52, allocations: 4.116 MB / 4.165 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/14.52, allocations: 0 / 4.165 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/14.54, allocations: 7.801 MB / 4.173 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002661/14.54, allocations: 0.7779 MB / 4.173 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009928/14.54, allocations: 57.19 kB / 4.174 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003733/14.54, allocations: 201.4 kB / 4.174 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007397/14.54, allocations: 144.4 kB / 4.174 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003146/14.54, allocations: 77.73 kB / 4.174 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003567/14.55, allocations: 1.369 MB / 4.175 GB, free: 14.69 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.603e-06/14.55, allocations: 0 / 4.175 GB, free: 14.69 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01535/14.56, allocations: 2.864 MB / 4.178 GB, free: 14.59 MB / 0.5573 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.03357/14.6, allocations: 10.38 MB / 4.188 GB, free: 13.17 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01424/14.61, allocations: 5.285 MB / 4.193 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/14.61, allocations: 0 / 4.193 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005938/14.62, allocations: 2.352 MB / 4.196 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009421/14.63, allocations: 0.9545 MB / 4.197 GB, free: 12.44 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02585/14.65, allocations: 7.392 MB / 4.204 GB, free: 11.03 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/14.66, allocations: 2.304 MB / 4.206 GB, free: 10.26 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00945/14.67, allocations: 2.449 MB / 4.208 GB, free: 10.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003065/14.67, allocations: 1.285 MB / 4.21 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of SimCode: time 1.943e-06/14.67, allocations: 0 / 4.21 GB, free: 9.441 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7742/15.44, allocations: 126.5 MB / 4.333 GB, free: 75.83 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/15.44, allocations: 228 kB / 4.333 GB, free: 75.53 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.229/24.67, allocations: 0 / 4.333 GB, free: 75.53 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat