Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.614/2.614, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.89e-05/3.853e-05, allocations: 3.984 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4248, allocations: 58.83 MB / 382.3 MB, free: 10.24 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.687/9.112, allocations: 2.765 GB / 3.139 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003846/9.112, allocations: 87.14 kB / 3.139 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.718/11.83, allocations: 0.5534 GB / 3.692 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.024e-06/11.83, allocations: 0 / 3.692 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.209e-05/11.83, allocations: 24 kB / 3.692 GB, free: 8.855 MB / 0.5105 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.009857/11.84, allocations: 2.041 MB / 3.694 GB, free: 6.785 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/11.84, allocations: 8.031 kB / 3.694 GB, free: 6.777 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003904/11.84, allocations: 139.2 kB / 3.694 GB, free: 6.633 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00349/11.84, allocations: 320.2 kB / 3.694 GB, free: 6.32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/11.85, allocations: 0.6725 MB / 3.695 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/11.85, allocations: 304.8 kB / 3.695 GB, free: 5.27 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/11.85, allocations: 80 kB / 3.696 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004565/11.85, allocations: 1.489 MB / 3.697 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/11.85, allocations: 8.172 kB / 3.697 GB, free: 3.609 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/11.85, allocations: 43.95 kB / 3.697 GB, free: 3.566 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.27e-05/11.85, allocations: 34 kB / 3.697 GB, free: 3.535 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004208/11.86, allocations: 1.261 MB / 3.698 GB, free: 2.273 MB / 0.5105 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.01494/11.87, allocations: 6.396 MB / 3.705 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003963/11.88, allocations: 0.8903 MB / 3.705 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/11.88, allocations: 391.1 kB / 3.706 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4856/12.36, allocations: 15.59 MB / 3.721 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/12.36, allocations: 43.75 kB / 3.721 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 3.927e-06/12.36, allocations: 3.344 kB / 3.721 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.00974/12.37, allocations: 2.493 MB / 3.723 GB, free: 59.97 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.679e-05/12.37, allocations: 173.6 kB / 3.724 GB, free: 59.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/12.37, allocations: 0.7122 MB / 3.724 GB, free: 59.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001601/12.37, allocations: 50.77 kB / 3.724 GB, free: 59.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000392/12.37, allocations: 436.7 kB / 3.725 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/12.37, allocations: 217.6 kB / 3.725 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.424e-05/12.37, allocations: 17.84 kB / 3.725 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001526/12.37, allocations: 397.8 kB / 3.725 GB, free: 59.03 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/12.38, allocations: 380.4 kB / 3.726 GB, free: 59.03 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/12.38, allocations: 0.5984 MB / 3.726 GB, free: 58.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000922/12.38, allocations: 401.5 kB / 3.727 GB, free: 58.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/12.38, allocations: 5.844 kB / 3.727 GB, free: 58.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002981/12.38, allocations: 1.083 MB / 3.728 GB, free: 58.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/12.38, allocations: 11.55 kB / 3.728 GB, free: 58.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/12.38, allocations: 11.81 kB / 3.728 GB, free: 58.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005347/12.38, allocations: 94.86 kB / 3.728 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007295/12.39, allocations: 402.9 kB / 3.728 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008162/12.4, allocations: 6.406 MB / 3.735 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/12.4, allocations: 136.7 kB / 3.735 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/12.4, allocations: 42.52 kB / 3.735 GB, free: 52.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (103): * Single equations (assignments): 98 * 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.000361/12.4, allocations: 173 kB / 3.735 GB, free: 52.74 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/12.4, allocations: 89.38 kB / 3.735 GB, free: 52.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/12.4, allocations: 2.128 MB / 3.737 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/12.4, allocations: 21.2 kB / 3.737 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/12.4, allocations: 2.406 kB / 3.737 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/12.4, allocations: 5.25 kB / 3.737 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006664/12.41, allocations: 3.371 MB / 3.74 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/12.41, allocations: 0 / 3.74 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007063/12.42, allocations: 371.6 kB / 3.741 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005781/12.42, allocations: 107.9 kB / 3.741 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/12.42, allocations: 13.75 kB / 3.741 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007835/12.43, allocations: 6.381 MB / 3.747 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/12.43, allocations: 0.9375 kB / 3.747 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/12.43, allocations: 2.063 MB / 3.749 GB, free: 45.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007291/12.43, allocations: 346.3 kB / 3.749 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/12.43, allocations: 25.56 kB / 3.749 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/12.43, allocations: 122.3 kB / 3.75 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004149/12.43, allocations: 140 kB / 3.75 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.923e-05/12.43, allocations: 22.02 kB / 3.75 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001628/12.43, allocations: 0.8729 MB / 3.751 GB, free: 45.52 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.11e-07/12.43, allocations: 0 / 3.751 GB, free: 45.52 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006971/12.44, allocations: 1.299 MB / 3.752 GB, free: 45.52 MB / 0.5261 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,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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.01493/12.46, allocations: 4.756 MB / 3.756 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007289/12.46, allocations: 1.163 MB / 3.758 GB, free: 44.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/12.46, allocations: 0 / 3.758 GB, free: 44.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006262/12.47, allocations: 0.8585 MB / 3.758 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00487/12.48, allocations: 0.5195 MB / 3.759 GB, free: 44.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009405/12.49, allocations: 2.557 MB / 3.761 GB, free: 43.54 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008286/12.49, allocations: 1.244 MB / 3.763 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001857/12.49, allocations: 498.1 kB / 3.763 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008723/12.49, allocations: 484.9 kB / 3.764 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of SimCode: time 1.984e-06/12.49, allocations: 3.719 kB / 3.764 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2071/12.7, allocations: 69.23 MB / 3.831 GB, free: 39.58 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002868/12.7, allocations: 238.9 kB / 3.831 GB, free: 39.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.362/18.06, allocations: 3.844 kB / 3.831 GB, free: 39.27 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat