Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.101/2.101, allocations: 209.4 MB / 216.5 MB, free: 6.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.212e-05/2.226e-05, allocations: 3.938 kB / 267.6 MB, free: 4.961 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 48.7 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.612/7.727, allocations: 2.485 GB / 2.794 GB, free: 104.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/7.727, allocations: 87.03 kB / 2.794 GB, free: 104.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.928/10.66, allocations: 0.5312 GB / 3.326 GB, free: 42.92 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.194e-06/10.66, allocations: 3.031 kB / 3.326 GB, free: 42.92 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001172/10.66, allocations: 29.2 kB / 3.326 GB, free: 42.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.01007/10.67, allocations: 1.999 MB / 3.328 GB, free: 41.94 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/10.67, allocations: 9.969 kB / 3.328 GB, free: 41.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003814/10.67, allocations: 308.1 kB / 3.328 GB, free: 41.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/10.67, allocations: 0.7041 MB / 3.329 GB, free: 41.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002964/10.67, allocations: 273.3 kB / 3.329 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004209/10.67, allocations: 47.06 kB / 3.329 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003147/10.68, allocations: 0.9716 MB / 3.33 GB, free: 41.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003935/10.68, allocations: 1.146 MB / 3.331 GB, free: 41.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.603e-05/10.68, allocations: 4.125 kB / 3.331 GB, free: 41.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001985/10.68, allocations: 3.875 kB / 3.331 GB, free: 41.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.74e-05/10.68, allocations: 43.41 kB / 3.331 GB, free: 41.08 MB / 442.7 MB 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.07762/10.76, allocations: 27.17 MB / 3.358 GB, free: 23.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/10.76, allocations: 0.5087 MB / 3.358 GB, free: 23.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007893/10.76, allocations: 321.5 kB / 3.358 GB, free: 23.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004414/10.76, allocations: 403.4 kB / 3.359 GB, free: 23.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/10.76, allocations: 38 kB / 3.359 GB, free: 23.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=54): time 3.627e-06/10.76, allocations: 7.219 kB / 3.359 GB, free: 23.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=59): time 0.007789/10.77, allocations: 1.886 MB / 3.361 GB, free: 22.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/10.77, allocations: 134.8 kB / 3.361 GB, free: 22.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009936/10.77, allocations: 0.5137 MB / 3.361 GB, free: 22.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002738/10.77, allocations: 37.2 kB / 3.361 GB, free: 22.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004464/10.77, allocations: 478.6 kB / 3.362 GB, free: 22.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003246/10.77, allocations: 202.4 kB / 3.362 GB, free: 21.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.745e-05/10.77, allocations: 0 / 3.362 GB, free: 21.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/10.77, allocations: 382.5 kB / 3.362 GB, free: 21.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009112/10.77, allocations: 360.7 kB / 3.363 GB, free: 21.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/10.77, allocations: 0.6209 MB / 3.363 GB, free: 21.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/10.77, allocations: 405.3 kB / 3.364 GB, free: 21.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/10.77, allocations: 2.719 kB / 3.364 GB, free: 21.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003381/10.78, allocations: 1.049 MB / 3.365 GB, free: 21.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/10.78, allocations: 11.62 kB / 3.365 GB, free: 21.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/10.78, allocations: 8.656 kB / 3.365 GB, free: 21.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004684/10.78, allocations: 92.22 kB / 3.365 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007405/10.79, allocations: 426.1 kB / 3.365 GB, free: 21.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008291/10.79, allocations: 6.206 MB / 3.371 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/10.8, allocations: 134.5 kB / 3.371 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002774/10.8, allocations: 41.53 kB / 3.371 GB, free: 15.3 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004322/10.8, allocations: 156.7 kB / 3.372 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002205/10.8, allocations: 0.6654 MB / 3.372 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/10.8, allocations: 72.42 kB / 3.372 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/10.8, allocations: 1.572 MB / 3.374 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/10.8, allocations: 15.02 kB / 3.374 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/10.8, allocations: 3.344 kB / 3.374 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/10.8, allocations: 3.656 kB / 3.374 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006412/10.81, allocations: 2.686 MB / 3.376 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/10.81, allocations: 3.875 kB / 3.376 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006781/10.82, allocations: 350 kB / 3.377 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/10.82, allocations: 97.89 kB / 3.377 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/10.82, allocations: 15.42 kB / 3.377 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009321/10.83, allocations: 6.196 MB / 3.383 GB, free: 22.94 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.657e-06/10.83, allocations: 3.5 kB / 3.383 GB, free: 22.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003888/10.83, allocations: 1.716 MB / 3.385 GB, free: 21.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006148/10.83, allocations: 229.2 kB / 3.385 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005182/10.83, allocations: 22.94 kB / 3.385 GB, free: 21.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/10.83, allocations: 93.95 kB / 3.385 GB, free: 21.53 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005937/10.83, allocations: 120.7 kB / 3.385 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/10.83, allocations: 27.17 kB / 3.385 GB, free: 21.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001057/10.84, allocations: 0.4972 MB / 3.386 GB, free: 21 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.11e-07/10.84, allocations: 0 / 3.386 GB, free: 21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006903/10.84, allocations: 1.223 MB / 3.387 GB, free: 19.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01619/10.86, allocations: 4.601 MB / 3.391 GB, free: 15.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007105/10.87, allocations: 1.095 MB / 3.392 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/10.87, allocations: 3.938 kB / 3.392 GB, free: 14.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005999/10.87, allocations: 0.7424 MB / 3.393 GB, free: 14.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/10.88, allocations: 340.2 kB / 3.393 GB, free: 13.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009033/10.88, allocations: 2.219 MB / 3.396 GB, free: 11.94 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/10.89, allocations: 1.168 MB / 3.397 GB, free: 10.92 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00226/10.89, allocations: 0.5314 MB / 3.397 GB, free: 10.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/10.89, allocations: 392.8 kB / 3.398 GB, free: 10.24 MB / 458.7 MB Notification: Performance of SimCode: time 1.342e-06/10.89, allocations: 0 / 3.398 GB, free: 10.24 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.501/11.39, allocations: 50.82 MB / 3.447 GB, free: 46.33 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/11.39, allocations: 199.5 kB / 3.447 GB, free: 46.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.625/16.02, allocations: 3.125 kB / 3.447 GB, free: 46.12 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat