Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.046/2.046, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.37e-05, allocations: 3.984 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1139, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.843/7.957, allocations: 2.486 GB / 2.8 GB, free: 81.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/7.957, allocations: 80.58 kB / 2.8 GB, free: 81.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825/10.78, allocations: 0.5364 GB / 3.337 GB, free: 33.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.625e-06/10.78, allocations: 0 / 3.337 GB, free: 33.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.94e-05/10.78, allocations: 24.39 kB / 3.337 GB, free: 33.36 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.009719/10.79, allocations: 2.004 MB / 3.339 GB, free: 32.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/10.79, allocations: 7.656 kB / 3.339 GB, free: 32.21 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004424/10.79, allocations: 139.5 kB / 3.339 GB, free: 32.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003516/10.8, allocations: 312.2 kB / 3.339 GB, free: 32.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002298/10.8, allocations: 0.7002 MB / 3.34 GB, free: 31.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/10.8, allocations: 301.1 kB / 3.34 GB, free: 31.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/10.8, allocations: 78.69 kB / 3.34 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004778/10.8, allocations: 1.487 MB / 3.342 GB, free: 30.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.627e-05/10.8, allocations: 0 / 3.342 GB, free: 30.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001827/10.8, allocations: 37.75 kB / 3.342 GB, free: 30.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-05/10.8, allocations: 43.45 kB / 3.342 GB, free: 30.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00448/10.81, allocations: 1.273 MB / 3.343 GB, free: 29.83 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.01286/10.82, allocations: 6.358 MB / 3.349 GB, free: 23.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003346/10.83, allocations: 0.8869 MB / 3.35 GB, free: 23.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009285/10.83, allocations: 386.3 kB / 3.35 GB, free: 22.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05473/10.88, allocations: 18.6 MB / 3.368 GB, free: 3.465 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/10.88, allocations: 43.12 kB / 3.369 GB, free: 3.414 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 2.885e-06/10.88, allocations: 0 / 3.369 GB, free: 3.414 MB / 442.7 MB Notification: Performance of matching and sorting (n=64): time 0.009625/10.89, allocations: 2.468 MB / 3.371 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/10.89, allocations: 158.8 kB / 3.371 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/10.89, allocations: 0.7068 MB / 3.372 GB, free: 15.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/10.89, allocations: 45.7 kB / 3.372 GB, free: 15.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000495/10.89, allocations: 475.1 kB / 3.372 GB, free: 15.47 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00034/10.89, allocations: 209.5 kB / 3.372 GB, free: 15.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.474e-05/10.89, allocations: 20 kB / 3.373 GB, free: 15.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/10.89, allocations: 350.8 kB / 3.373 GB, free: 14.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/10.9, allocations: 385.8 kB / 3.373 GB, free: 14.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/10.9, allocations: 0.6533 MB / 3.374 GB, free: 13.74 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/10.9, allocations: 421.8 kB / 3.374 GB, free: 13.33 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/10.9, allocations: 4 kB / 3.374 GB, free: 13.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003417/10.9, allocations: 1.109 MB / 3.375 GB, free: 12.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/10.9, allocations: 8 kB / 3.375 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/10.9, allocations: 8 kB / 3.375 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005708/10.9, allocations: 93.36 kB / 3.375 GB, free: 12.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007594/10.91, allocations: 427.2 kB / 3.376 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/10.92, allocations: 6.419 MB / 3.382 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/10.92, allocations: 135.9 kB / 3.382 GB, free: 4.582 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/10.92, allocations: 47.98 kB / 3.382 GB, free: 4.535 MB / 458.7 MB 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.0004178/10.92, allocations: 173.6 kB / 3.382 GB, free: 4.363 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/10.92, allocations: 90.97 kB / 3.383 GB, free: 4.273 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/10.93, allocations: 2.083 MB / 3.385 GB, free: 2.172 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-05/10.93, allocations: 19.92 kB / 3.385 GB, free: 2.152 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/10.93, allocations: 0 / 3.385 GB, free: 2.152 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/10.93, allocations: 3.984 kB / 3.385 GB, free: 2.148 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3829/11.31, allocations: 3.299 MB / 3.388 GB, free: 52.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/11.31, allocations: 3.719 kB / 3.388 GB, free: 52.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007319/11.32, allocations: 370.5 kB / 3.388 GB, free: 52.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006565/11.32, allocations: 100.5 kB / 3.388 GB, free: 52.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002196/11.32, allocations: 19.92 kB / 3.388 GB, free: 52.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008522/11.33, allocations: 6.388 MB / 3.395 GB, free: 47.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/11.33, allocations: 1.312 kB / 3.395 GB, free: 47.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004672/11.33, allocations: 2.036 MB / 3.397 GB, free: 46.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007241/11.33, allocations: 326.3 kB / 3.397 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000345/11.33, allocations: 26.44 kB / 3.397 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/11.34, allocations: 119.1 kB / 3.397 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004782/11.34, allocations: 128.4 kB / 3.397 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/11.34, allocations: 26 kB / 3.397 GB, free: 46.62 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001678/11.34, allocations: 0.7653 MB / 3.398 GB, free: 46.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.61e-07/11.34, allocations: 2.312 kB / 3.398 GB, free: 46.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007376/11.34, allocations: 1.287 MB / 3.399 GB, free: 46.5 MB / 458.7 MB 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.01706/11.36, allocations: 4.708 MB / 3.404 GB, free: 45.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00794/11.37, allocations: 1.189 MB / 3.405 GB, free: 45.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/11.37, allocations: 5.469 kB / 3.405 GB, free: 45.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006604/11.38, allocations: 0.8391 MB / 3.406 GB, free: 45.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005031/11.38, allocations: 0.5059 MB / 3.406 GB, free: 45.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/11.39, allocations: 2.551 MB / 3.409 GB, free: 44.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/11.39, allocations: 1.222 MB / 3.41 GB, free: 43.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/11.39, allocations: 476.9 kB / 3.41 GB, free: 43.92 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/11.39, allocations: 3.375 kB / 3.41 GB, free: 43.92 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.259/15.65, allocations: 68.95 MB / 3.478 GB, free: 40.79 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat