Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.593/2.593, allocations: 235 MB / 247.2 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.453e-05/3.461e-05, allocations: 4 kB / 305 MB, free: 5.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4578/0.4579, allocations: 54.86 MB / 359.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.385/8.843, allocations: 2.597 GB / 2.948 GB, free: 111.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/8.843, allocations: 85.03 kB / 2.948 GB, free: 111.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.637/11.48, allocations: 0.5503 GB / 3.498 GB, free: 5.879 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.375e-06/11.48, allocations: 4 kB / 3.498 GB, free: 5.875 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.49e-05/11.48, allocations: 23.7 kB / 3.498 GB, free: 5.855 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.01034/11.49, allocations: 2.041 MB / 3.5 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/11.49, allocations: 8.031 kB / 3.5 GB, free: 3.77 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004465/11.49, allocations: 140.3 kB / 3.501 GB, free: 3.625 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003491/11.49, allocations: 320.6 kB / 3.501 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/11.5, allocations: 0.7032 MB / 3.502 GB, free: 2.582 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00032/11.5, allocations: 299.9 kB / 3.502 GB, free: 2.238 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/11.5, allocations: 83.94 kB / 3.502 GB, free: 2.156 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004861/11.5, allocations: 1.462 MB / 3.503 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.209e-05/11.5, allocations: 7.938 kB / 3.503 GB, free: 0.6055 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/11.5, allocations: 36 kB / 3.503 GB, free: 0.5703 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.067e-05/11.5, allocations: 38 kB / 3.503 GB, free: 0.5352 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4132/11.92, allocations: 1.247 MB / 3.505 GB, free: 51.33 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.01878/11.93, allocations: 6.357 MB / 3.511 GB, free: 47.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005055/11.94, allocations: 0.8819 MB / 3.512 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/11.94, allocations: 377.3 kB / 3.512 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06599/12.01, allocations: 18.69 MB / 3.53 GB, free: 35.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.539e-05/12.01, allocations: 42.12 kB / 3.53 GB, free: 35.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 2.826e-06/12.01, allocations: 0 / 3.53 GB, free: 35.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64): time 0.009985/12.02, allocations: 2.466 MB / 3.533 GB, free: 35.19 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/12.02, allocations: 171.6 kB / 3.533 GB, free: 35 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/12.02, allocations: 0.6986 MB / 3.534 GB, free: 34.87 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000182/12.02, allocations: 47.56 kB / 3.534 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/12.02, allocations: 456.8 kB / 3.534 GB, free: 34.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002575/12.02, allocations: 210.2 kB / 3.534 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/12.02, allocations: 19.06 kB / 3.534 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000156/12.02, allocations: 402.9 kB / 3.535 GB, free: 34.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/12.02, allocations: 386.9 kB / 3.535 GB, free: 34.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/12.02, allocations: 0.6403 MB / 3.536 GB, free: 33.92 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009429/12.02, allocations: 425.4 kB / 3.536 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/12.02, allocations: 0 / 3.536 GB, free: 33.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003036/12.03, allocations: 1.137 MB / 3.537 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/12.03, allocations: 14.06 kB / 3.537 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/12.03, allocations: 5.938 kB / 3.537 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000525/12.03, allocations: 91.97 kB / 3.537 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007207/12.03, allocations: 424.4 kB / 3.538 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00781/12.04, allocations: 6.398 MB / 3.544 GB, free: 28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/12.04, allocations: 142.7 kB / 3.544 GB, free: 28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/12.04, allocations: 50.23 kB / 3.544 GB, free: 28 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.0003491/12.04, allocations: 178.2 kB / 3.544 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/12.04, allocations: 92.08 kB / 3.544 GB, free: 27.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/12.05, allocations: 2.077 MB / 3.546 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.581e-05/12.05, allocations: 18.89 kB / 3.546 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/12.05, allocations: 0 / 3.546 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/12.05, allocations: 7.203 kB / 3.546 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006492/12.06, allocations: 3.302 MB / 3.55 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/12.06, allocations: 0 / 3.55 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006936/12.06, allocations: 373.8 kB / 3.55 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/12.06, allocations: 100.2 kB / 3.55 GB, free: 27.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/12.06, allocations: 17.47 kB / 3.55 GB, free: 27.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007664/12.07, allocations: 6.388 MB / 3.556 GB, free: 21.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/12.07, allocations: 5.531 kB / 3.556 GB, free: 21.41 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/12.07, allocations: 2.03 MB / 3.558 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006436/12.08, allocations: 321.2 kB / 3.559 GB, free: 20.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002943/12.08, allocations: 29.58 kB / 3.559 GB, free: 20.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/12.08, allocations: 118.7 kB / 3.559 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/12.08, allocations: 123.9 kB / 3.559 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/12.08, allocations: 31.8 kB / 3.559 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001374/12.08, allocations: 0.7627 MB / 3.56 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.61e-07/12.08, allocations: 2.656 kB / 3.56 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006783/12.09, allocations: 1.301 MB / 3.561 GB, free: 20.68 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.01455/12.1, allocations: 4.735 MB / 3.566 GB, free: 19.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00727/12.11, allocations: 1.175 MB / 3.567 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/12.11, allocations: 2.516 kB / 3.567 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006167/12.11, allocations: 0.8454 MB / 3.568 GB, free: 19.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004571/12.12, allocations: 0.5076 MB / 3.568 GB, free: 19.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009671/12.13, allocations: 2.522 MB / 3.571 GB, free: 18.68 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008298/12.13, allocations: 1.234 MB / 3.572 GB, free: 17.97 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001937/12.13, allocations: 0.4927 MB / 3.572 GB, free: 17.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008285/12.13, allocations: 469.6 kB / 3.573 GB, free: 17.95 MB / 0.4948 GB Notification: Performance of SimCode: time 1.203e-06/12.13, allocations: 0 / 3.573 GB, free: 17.95 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1577/12.29, allocations: 68.39 MB / 3.639 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000319/12.29, allocations: 238.7 kB / 3.64 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.443/17.73, allocations: 0 / 3.64 GB, free: 14.05 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat