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.036/2.036, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.398e-05/2.396e-05, allocations: 4 kB / 267.6 MB, free: 5.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.69 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.733/7.84, allocations: 2.485 GB / 2.794 GB, free: 103.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/7.841, allocations: 87.14 kB / 2.794 GB, free: 103.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.809/10.65, allocations: 0.5312 GB / 3.326 GB, free: 40.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.094e-06/10.65, allocations: 0 / 3.326 GB, free: 40.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.432e-05/10.65, allocations: 21.41 kB / 3.326 GB, free: 40.7 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.008389/10.66, allocations: 2.003 MB / 3.328 GB, free: 39.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/10.66, allocations: 7.344 kB / 3.328 GB, free: 39.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/10.66, allocations: 313 kB / 3.328 GB, free: 39.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/10.66, allocations: 0.6956 MB / 3.329 GB, free: 39.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/10.66, allocations: 275.2 kB / 3.329 GB, free: 39.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/10.66, allocations: 49.84 kB / 3.329 GB, free: 39.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002262/10.67, allocations: 0.9791 MB / 3.33 GB, free: 39.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/10.67, allocations: 1.134 MB / 3.331 GB, free: 38.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.584e-05/10.67, allocations: 2.344 kB / 3.331 GB, free: 38.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/10.67, allocations: 3.719 kB / 3.331 GB, free: 38.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-05/10.67, allocations: 48.25 kB / 3.331 GB, free: 38.84 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.07007/10.74, allocations: 27.17 MB / 3.358 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/10.74, allocations: 0.5087 MB / 3.358 GB, free: 21.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006665/10.74, allocations: 321.7 kB / 3.358 GB, free: 21.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003476/10.74, allocations: 400.8 kB / 3.359 GB, free: 20.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/10.74, allocations: 44.69 kB / 3.359 GB, free: 20.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=54): time 2.885e-06/10.74, allocations: 0 / 3.359 GB, free: 20.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=59): time 0.006268/10.75, allocations: 1.883 MB / 3.361 GB, free: 20.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/10.75, allocations: 139.6 kB / 3.361 GB, free: 20.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000811/10.75, allocations: 0.5169 MB / 3.361 GB, free: 19.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.764e-05/10.75, allocations: 29.52 kB / 3.361 GB, free: 19.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003688/10.75, allocations: 0.509 MB / 3.362 GB, free: 19.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/10.75, allocations: 192.7 kB / 3.362 GB, free: 19.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.671e-05/10.75, allocations: 0 / 3.362 GB, free: 19.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.115e-05/10.75, allocations: 348.8 kB / 3.362 GB, free: 19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007933/10.75, allocations: 363.6 kB / 3.363 GB, free: 18.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009399/10.75, allocations: 0.6186 MB / 3.363 GB, free: 18.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/10.75, allocations: 407.1 kB / 3.364 GB, free: 18.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/10.75, allocations: 3.719 kB / 3.364 GB, free: 18.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002691/10.75, allocations: 1.019 MB / 3.365 GB, free: 17.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/10.75, allocations: 6.312 kB / 3.365 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/10.75, allocations: 7.812 kB / 3.365 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004367/10.76, allocations: 101.1 kB / 3.365 GB, free: 17.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006877/10.76, allocations: 419.3 kB / 3.365 GB, free: 17.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007338/10.77, allocations: 6.208 MB / 3.371 GB, free: 11.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/10.77, allocations: 131.3 kB / 3.371 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/10.77, allocations: 43.81 kB / 3.371 GB, free: 11.87 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.0003525/10.77, allocations: 155.2 kB / 3.372 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001797/10.77, allocations: 0.675 MB / 3.372 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/10.77, allocations: 78.48 kB / 3.372 GB, free: 11.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/10.78, allocations: 1.56 MB / 3.374 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/10.78, allocations: 18.09 kB / 3.374 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/10.78, allocations: 0 / 3.374 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/10.78, allocations: 3.656 kB / 3.374 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00509/10.78, allocations: 2.69 MB / 3.376 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/10.78, allocations: 3.906 kB / 3.376 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006448/10.79, allocations: 348.9 kB / 3.377 GB, free: 9.336 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004397/10.79, allocations: 97.55 kB / 3.377 GB, free: 9.254 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.917e-05/10.79, allocations: 7.562 kB / 3.377 GB, free: 9.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008634/10.8, allocations: 6.195 MB / 3.383 GB, free: 18.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/10.8, allocations: 4.031 kB / 3.383 GB, free: 18.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/10.8, allocations: 1.728 MB / 3.385 GB, free: 17.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/10.8, allocations: 221.5 kB / 3.385 GB, free: 17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/10.8, allocations: 15.05 kB / 3.385 GB, free: 16.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/10.8, allocations: 101.6 kB / 3.385 GB, free: 16.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004002/10.8, allocations: 126.5 kB / 3.385 GB, free: 16.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.572e-05/10.8, allocations: 23.28 kB / 3.385 GB, free: 16.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008087/10.8, allocations: 0.4919 MB / 3.386 GB, free: 16.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.11e-07/10.8, allocations: 0 / 3.386 GB, free: 16.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006187/10.81, allocations: 1.222 MB / 3.387 GB, free: 15.19 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.0133/10.82, allocations: 4.597 MB / 3.391 GB, free: 11.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007213/10.83, allocations: 1.099 MB / 3.392 GB, free: 10.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/10.83, allocations: 0 / 3.392 GB, free: 10.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005948/10.84, allocations: 0.734 MB / 3.393 GB, free: 9.562 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003022/10.84, allocations: 349.1 kB / 3.393 GB, free: 9.316 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008848/10.85, allocations: 2.252 MB / 3.396 GB, free: 7.289 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/10.85, allocations: 1.152 MB / 3.397 GB, free: 6.273 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/10.85, allocations: 401.8 kB / 3.397 GB, free: 5.922 MB / 458.7 MB Notification: Performance of SimCode: time 1.282e-06/10.85, allocations: 0 / 3.397 GB, free: 5.922 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.619/15.47, allocations: 63.33 MB / 3.459 GB, free: 48.11 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