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.055/2.055, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.233e-05/4.258e-05, allocations: 3.938 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.631/7.741, allocations: 2.486 GB / 2.8 GB, free: 81.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/7.741, allocations: 83.95 kB / 2.8 GB, free: 81.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.64/10.38, allocations: 0.5364 GB / 3.337 GB, free: 33.28 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.583e-06/10.38, allocations: 0 / 3.337 GB, free: 33.28 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.617e-05/10.38, allocations: 22.19 kB / 3.337 GB, free: 33.28 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.008593/10.39, allocations: 2.004 MB / 3.339 GB, free: 32.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/10.39, allocations: 7.875 kB / 3.339 GB, free: 32.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002683/10.39, allocations: 137.9 kB / 3.339 GB, free: 32.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003179/10.39, allocations: 311.9 kB / 3.339 GB, free: 31.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/10.4, allocations: 0.7001 MB / 3.34 GB, free: 31.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/10.4, allocations: 301.9 kB / 3.34 GB, free: 31.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002037/10.4, allocations: 78.22 kB / 3.34 GB, free: 31.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004053/10.4, allocations: 1.469 MB / 3.342 GB, free: 30.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/10.4, allocations: 7.75 kB / 3.342 GB, free: 30.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/10.4, allocations: 35.56 kB / 3.342 GB, free: 30.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.304e-05/10.4, allocations: 46.88 kB / 3.342 GB, free: 30.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003675/10.4, allocations: 1.245 MB / 3.343 GB, free: 29.95 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.01128/10.42, allocations: 6.369 MB / 3.349 GB, free: 23.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003131/10.42, allocations: 0.8777 MB / 3.35 GB, free: 23.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008114/10.42, allocations: 373 kB / 3.35 GB, free: 22.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.054/10.47, allocations: 18.61 MB / 3.368 GB, free: 3.684 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/10.47, allocations: 39.12 kB / 3.369 GB, free: 3.637 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 3.176e-06/10.47, allocations: 4 kB / 3.369 GB, free: 3.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=64): time 0.008973/10.48, allocations: 2.469 MB / 3.371 GB, free: 1.109 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/10.48, allocations: 166.8 kB / 3.371 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/10.48, allocations: 0.6989 MB / 3.372 GB, free: 212 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/10.48, allocations: 49.69 kB / 3.372 GB, free: 156 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004754/10.48, allocations: 473.6 kB / 3.372 GB, free: 15.69 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/10.48, allocations: 214.9 kB / 3.372 GB, free: 15.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/10.48, allocations: 16 kB / 3.373 GB, free: 15.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/10.48, allocations: 354.8 kB / 3.373 GB, free: 15.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/10.49, allocations: 381.9 kB / 3.373 GB, free: 14.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/10.49, allocations: 0.6436 MB / 3.374 GB, free: 13.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/10.49, allocations: 425.8 kB / 3.374 GB, free: 13.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/10.49, allocations: 4 kB / 3.374 GB, free: 13.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003173/10.49, allocations: 1.083 MB / 3.375 GB, free: 12.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/10.49, allocations: 8 kB / 3.375 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/10.49, allocations: 12 kB / 3.375 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005575/10.49, allocations: 88.8 kB / 3.375 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007393/10.5, allocations: 427.4 kB / 3.376 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009836/10.51, allocations: 6.412 MB / 3.382 GB, free: 4.969 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/10.51, allocations: 143.7 kB / 3.382 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/10.51, allocations: 47.98 kB / 3.382 GB, free: 4.781 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.0004032/10.51, allocations: 173.3 kB / 3.382 GB, free: 4.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/10.51, allocations: 86.97 kB / 3.383 GB, free: 4.523 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004292/10.52, allocations: 2.067 MB / 3.385 GB, free: 2.438 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.005e-05/10.52, allocations: 24 kB / 3.385 GB, free: 2.414 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/10.52, allocations: 4 kB / 3.385 GB, free: 2.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/10.52, allocations: 7.922 kB / 3.385 GB, free: 2.402 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3372/10.85, allocations: 3.298 MB / 3.388 GB, free: 52.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/10.85, allocations: 4.75 kB / 3.388 GB, free: 52.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0071/10.86, allocations: 372.5 kB / 3.388 GB, free: 52.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005497/10.86, allocations: 94.33 kB / 3.388 GB, free: 52.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/10.86, allocations: 21.02 kB / 3.388 GB, free: 52.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008295/10.87, allocations: 6.383 MB / 3.394 GB, free: 47.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/10.87, allocations: 2.203 kB / 3.394 GB, free: 47.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004333/10.87, allocations: 2.042 MB / 3.396 GB, free: 46.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006122/10.88, allocations: 316 kB / 3.397 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/10.88, allocations: 32.05 kB / 3.397 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/10.88, allocations: 114.7 kB / 3.397 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/10.88, allocations: 133.4 kB / 3.397 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.509e-05/10.88, allocations: 28.56 kB / 3.397 GB, free: 46.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001543/10.88, allocations: 0.7637 MB / 3.398 GB, free: 46.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/10.88, allocations: 1.219 kB / 3.398 GB, free: 46.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007036/10.89, allocations: 1.279 MB / 3.399 GB, free: 46.45 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.01532/10.9, allocations: 4.74 MB / 3.404 GB, free: 45.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007542/10.91, allocations: 1.171 MB / 3.405 GB, free: 45.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/10.91, allocations: 0.9688 kB / 3.405 GB, free: 45.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00625/10.92, allocations: 0.836 MB / 3.406 GB, free: 45.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004611/10.92, allocations: 0.5041 MB / 3.406 GB, free: 45.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/10.93, allocations: 2.547 MB / 3.409 GB, free: 44.56 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/10.93, allocations: 1.225 MB / 3.41 GB, free: 43.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/10.93, allocations: 476.2 kB / 3.41 GB, free: 43.85 MB / 458.7 MB Notification: Performance of SimCode: time 2.254e-06/10.93, allocations: 1.219 kB / 3.41 GB, free: 43.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.339/15.27, allocations: 68.94 MB / 3.478 GB, free: 40.56 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