Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 235 MB / 247.6 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.478e-05/5.488e-05, allocations: 4 kB / 305 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4505, allocations: 54.85 MB / 359.9 MB, free: 2.609 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.007/8.458, allocations: 2.597 GB / 2.948 GB, free: 110.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/8.458, allocations: 84.98 kB / 2.948 GB, free: 110.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.571/11.03, allocations: 0.5503 GB / 3.498 GB, free: 8.289 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.166e-06/11.03, allocations: 4 kB / 3.498 GB, free: 8.285 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001202/11.03, allocations: 25.75 kB / 3.498 GB, free: 8.266 MB / 0.4948 GB 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.0105/11.04, allocations: 2.043 MB / 3.5 GB, free: 6.195 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/11.04, allocations: 8.031 kB / 3.5 GB, free: 6.188 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003809/11.04, allocations: 139.2 kB / 3.501 GB, free: 6.043 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003492/11.04, allocations: 316.6 kB / 3.501 GB, free: 5.734 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002325/11.05, allocations: 0.7008 MB / 3.502 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/11.05, allocations: 307.9 kB / 3.502 GB, free: 4.652 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/11.05, allocations: 87 kB / 3.502 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004917/11.05, allocations: 1.461 MB / 3.503 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/11.05, allocations: 0 / 3.503 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/11.05, allocations: 40 kB / 3.503 GB, free: 2.988 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.483e-05/11.05, allocations: 34 kB / 3.503 GB, free: 2.957 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004496/11.06, allocations: 1.249 MB / 3.505 GB, free: 1.707 MB / 0.4948 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.4628/11.52, allocations: 6.362 MB / 3.511 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003925/11.52, allocations: 0.8835 MB / 3.512 GB, free: 48.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/11.52, allocations: 375.8 kB / 3.512 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06459/11.59, allocations: 18.69 MB / 3.53 GB, free: 36.66 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/11.59, allocations: 47.69 kB / 3.53 GB, free: 36.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 3.046e-06/11.59, allocations: 0 / 3.53 GB, free: 36.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64): time 0.01091/11.6, allocations: 2.468 MB / 3.533 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/11.6, allocations: 165.4 kB / 3.533 GB, free: 35.92 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/11.6, allocations: 0.6961 MB / 3.534 GB, free: 35.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003234/11.6, allocations: 47.14 kB / 3.534 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004336/11.6, allocations: 477 kB / 3.534 GB, free: 35.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003187/11.6, allocations: 216.7 kB / 3.534 GB, free: 35.42 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.216e-05/11.6, allocations: 18.84 kB / 3.534 GB, free: 35.42 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001091/11.6, allocations: 349.2 kB / 3.535 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/11.6, allocations: 381.9 kB / 3.535 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/11.61, allocations: 0.6464 MB / 3.536 GB, free: 34.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/11.61, allocations: 424.4 kB / 3.536 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/11.61, allocations: 2.594 kB / 3.536 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003269/11.61, allocations: 1.079 MB / 3.537 GB, free: 34.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/11.61, allocations: 9.438 kB / 3.537 GB, free: 34.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/11.61, allocations: 10.7 kB / 3.537 GB, free: 34.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005754/11.61, allocations: 98.03 kB / 3.537 GB, free: 34.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007572/11.62, allocations: 422.6 kB / 3.538 GB, free: 34.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008479/11.63, allocations: 6.399 MB / 3.544 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/11.63, allocations: 142 kB / 3.544 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/11.63, allocations: 46.44 kB / 3.544 GB, free: 28.89 MB / 0.4948 GB 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003925/11.63, allocations: 177.7 kB / 3.544 GB, free: 28.79 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/11.63, allocations: 87.28 kB / 3.544 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003738/11.63, allocations: 2.079 MB / 3.546 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.149e-05/11.63, allocations: 18.64 kB / 3.546 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/11.63, allocations: 0 / 3.546 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/11.63, allocations: 5.984 kB / 3.546 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006882/11.64, allocations: 3.313 MB / 3.55 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/11.64, allocations: 0.75 kB / 3.55 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007088/11.65, allocations: 366.5 kB / 3.55 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/11.65, allocations: 103.2 kB / 3.55 GB, free: 28.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/11.65, allocations: 15.12 kB / 3.55 GB, free: 28.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008067/11.66, allocations: 6.387 MB / 3.556 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/11.66, allocations: 4.344 kB / 3.556 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004186/11.66, allocations: 2.036 MB / 3.558 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008466/11.66, allocations: 317.4 kB / 3.559 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005032/11.66, allocations: 27.55 kB / 3.559 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/11.66, allocations: 119.8 kB / 3.559 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005662/11.67, allocations: 133.4 kB / 3.559 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/11.67, allocations: 27.16 kB / 3.559 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001612/11.67, allocations: 0.7659 MB / 3.56 GB, free: 21.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.383e-06/11.67, allocations: 0 / 3.56 GB, free: 21.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007149/11.67, allocations: 1.299 MB / 3.561 GB, free: 21.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.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,Boundary_fixed.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 (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01499/11.69, allocations: 4.737 MB / 3.566 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007338/11.7, allocations: 1.176 MB / 3.567 GB, free: 20.15 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/11.7, allocations: 0 / 3.567 GB, free: 20.15 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006166/11.7, allocations: 0.837 MB / 3.568 GB, free: 20.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004906/11.71, allocations: 0.5061 MB / 3.568 GB, free: 20.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/11.72, allocations: 2.547 MB / 3.57 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001881/11.72, allocations: 1.221 MB / 3.572 GB, free: 34.87 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/11.72, allocations: 475.5 kB / 3.572 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.462e-06/11.72, allocations: 1.125 kB / 3.572 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.294/16.02, allocations: 69.09 MB / 3.64 GB, free: 30.98 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat