Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.505/2.505, allocations: 235.1 MB / 242.2 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.225e-05, allocations: 4 kB / 299.5 MB, free: 6.348 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4197, allocations: 54.86 MB / 354.4 MB, free: 28 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.232/8.652, allocations: 2.596 GB / 2.942 GB, free: 104.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003259/8.652, allocations: 81.81 kB / 2.942 GB, free: 104.8 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.092/11.74, allocations: 0.5449 GB / 3.487 GB, free: 46.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.096e-06/11.74, allocations: 5.125 kB / 3.487 GB, free: 46.66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.201e-05/11.74, allocations: 26.02 kB / 3.487 GB, free: 46.66 MB / 490.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.009556/11.75, allocations: 2.04 MB / 3.489 GB, free: 45.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/11.75, allocations: 6.875 kB / 3.489 GB, free: 45.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003493/11.76, allocations: 321.8 kB / 3.489 GB, free: 45.74 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002091/11.76, allocations: 0.6948 MB / 3.49 GB, free: 45.46 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/11.76, allocations: 281.3 kB / 3.49 GB, free: 45.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/11.76, allocations: 46 kB / 3.49 GB, free: 45.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002312/11.76, allocations: 0.9773 MB / 3.491 GB, free: 45.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/11.76, allocations: 1.14 MB / 3.492 GB, free: 44.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.007e-05/11.76, allocations: 3.719 kB / 3.492 GB, free: 44.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/11.76, allocations: 3.562 kB / 3.492 GB, free: 44.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-05/11.76, allocations: 43.91 kB / 3.492 GB, free: 44.93 MB / 490.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.077/11.84, allocations: 27.3 MB / 3.519 GB, free: 27.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/11.84, allocations: 0.5103 MB / 3.519 GB, free: 27.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006734/11.84, allocations: 321.7 kB / 3.52 GB, free: 27.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004013/11.84, allocations: 403.8 kB / 3.52 GB, free: 27.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/11.84, allocations: 38.31 kB / 3.52 GB, free: 27.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=54): time 4.178e-06/11.84, allocations: 0 / 3.52 GB, free: 27.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=59): time 0.006847/11.85, allocations: 1.891 MB / 3.522 GB, free: 26.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/11.85, allocations: 137 kB / 3.522 GB, free: 26.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000923/11.85, allocations: 0.519 MB / 3.523 GB, free: 26.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/11.85, allocations: 34.27 kB / 3.523 GB, free: 26.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004135/11.85, allocations: 485.6 kB / 3.523 GB, free: 26.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/11.85, allocations: 190.8 kB / 3.523 GB, free: 26.28 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/11.85, allocations: 4 kB / 3.523 GB, free: 26.28 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/11.85, allocations: 387.2 kB / 3.524 GB, free: 25.96 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008262/11.85, allocations: 355.6 kB / 3.524 GB, free: 25.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009694/11.86, allocations: 0.6241 MB / 3.525 GB, free: 25.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/11.86, allocations: 410.9 kB / 3.525 GB, free: 25.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/11.86, allocations: 7.781 kB / 3.525 GB, free: 25.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002984/11.86, allocations: 1.042 MB / 3.526 GB, free: 25.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/11.86, allocations: 7.219 kB / 3.526 GB, free: 25.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/11.86, allocations: 9.719 kB / 3.526 GB, free: 25.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/11.86, allocations: 90.78 kB / 3.526 GB, free: 25.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007236/11.87, allocations: 421.6 kB / 3.527 GB, free: 25.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009301/11.88, allocations: 6.215 MB / 3.533 GB, free: 35.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002152/11.88, allocations: 132.7 kB / 3.533 GB, free: 35.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/11.88, allocations: 44.52 kB / 3.533 GB, free: 35.91 MB / 0.4948 GB 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.0004676/11.88, allocations: 152.9 kB / 3.533 GB, free: 35.79 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002124/11.88, allocations: 0.6781 MB / 3.534 GB, free: 35.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/11.88, allocations: 69.62 kB / 3.534 GB, free: 35.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/11.89, allocations: 1.573 MB / 3.535 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-05/11.89, allocations: 10.94 kB / 3.535 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/11.89, allocations: 3.906 kB / 3.535 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/11.89, allocations: 7.281 kB / 3.535 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006853/11.89, allocations: 2.692 MB / 3.538 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/11.89, allocations: 0 / 3.538 GB, free: 35.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006764/11.9, allocations: 347.5 kB / 3.538 GB, free: 35.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004777/11.9, allocations: 93.33 kB / 3.538 GB, free: 35.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/11.9, allocations: 14 kB / 3.538 GB, free: 35.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009009/11.91, allocations: 6.182 MB / 3.544 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/11.91, allocations: 3.953 kB / 3.544 GB, free: 29.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/11.91, allocations: 1.72 MB / 3.546 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005467/11.91, allocations: 227.3 kB / 3.546 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/11.91, allocations: 17.95 kB / 3.546 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/11.91, allocations: 99.38 kB / 3.546 GB, free: 28.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004058/11.91, allocations: 123.4 kB / 3.547 GB, free: 28.94 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-05/11.91, allocations: 21.58 kB / 3.547 GB, free: 28.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009114/11.92, allocations: 0.4937 MB / 3.547 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.71e-07/11.92, allocations: 4 kB / 3.547 GB, free: 28.84 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006657/11.92, allocations: 1.235 MB / 3.548 GB, free: 28.68 MB / 0.4948 GB 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.01529/11.94, allocations: 4.625 MB / 3.553 GB, free: 27.03 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006899/11.94, allocations: 1.09 MB / 3.554 GB, free: 27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/11.94, allocations: 4.719 kB / 3.554 GB, free: 27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005895/11.95, allocations: 0.7478 MB / 3.555 GB, free: 26.99 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/11.95, allocations: 327.4 kB / 3.555 GB, free: 26.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00864/11.96, allocations: 2.232 MB / 3.557 GB, free: 26.26 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009339/11.96, allocations: 1.169 MB / 3.558 GB, free: 25.55 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00192/11.97, allocations: 0.5347 MB / 3.559 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008275/11.97, allocations: 395.5 kB / 3.559 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/11.97, allocations: 0 / 3.559 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1656/12.13, allocations: 50.99 MB / 3.609 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/12.13, allocations: 191.5 kB / 3.609 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.592/16.72, allocations: 3.938 kB / 3.609 GB, free: 10.38 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat