Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.759e-05, allocations: 4 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1452, allocations: 61.88 MB / 410.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.884/9.029, allocations: 2.771 GB / 3.171 GB, free: 79.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003413/9.029, allocations: 86.56 kB / 3.171 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.206/12.24, allocations: 0.5592 GB / 3.731 GB, free: 48.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.834e-06/12.24, allocations: 0 / 3.731 GB, free: 48.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.147e-05/12.24, allocations: 29.97 kB / 3.731 GB, free: 48.11 MB / 0.5261 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.009553/12.24, allocations: 2.039 MB / 3.733 GB, free: 47.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/12.24, allocations: 10.38 kB / 3.733 GB, free: 47.16 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003566/12.25, allocations: 138 kB / 3.733 GB, free: 47.12 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003352/12.25, allocations: 328.7 kB / 3.733 GB, free: 47.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001934/12.25, allocations: 0.6728 MB / 3.734 GB, free: 46.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/12.25, allocations: 299.5 kB / 3.734 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/12.25, allocations: 84 kB / 3.734 GB, free: 46.54 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004245/12.26, allocations: 1.48 MB / 3.736 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.499e-05/12.26, allocations: 6.281 kB / 3.736 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/12.26, allocations: 45.88 kB / 3.736 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-05/12.26, allocations: 36.77 kB / 3.736 GB, free: 46.26 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003946/12.26, allocations: 1.263 MB / 3.737 GB, free: 46.26 MB / 0.5261 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.01222/12.27, allocations: 6.403 MB / 3.743 GB, free: 42.19 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00332/12.28, allocations: 0.8994 MB / 3.744 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008736/12.28, allocations: 384.8 kB / 3.744 GB, free: 42.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04864/12.32, allocations: 15.6 MB / 3.76 GB, free: 32.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/12.32, allocations: 41.19 kB / 3.76 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 3.607e-06/12.32, allocations: 0 / 3.76 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=64): time 0.009534/12.33, allocations: 2.503 MB / 3.762 GB, free: 32.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/12.33, allocations: 168.9 kB / 3.762 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/12.34, allocations: 0.7105 MB / 3.763 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002678/12.34, allocations: 49.02 kB / 3.763 GB, free: 31.79 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004086/12.34, allocations: 437.5 kB / 3.763 GB, free: 31.59 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000292/12.34, allocations: 215.4 kB / 3.764 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/12.34, allocations: 19.72 kB / 3.764 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000161/12.34, allocations: 402.4 kB / 3.764 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009705/12.34, allocations: 377.3 kB / 3.764 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/12.34, allocations: 0.5954 MB / 3.765 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/12.34, allocations: 400.4 kB / 3.765 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/12.34, allocations: 3.781 kB / 3.765 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002928/12.34, allocations: 1.088 MB / 3.766 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/12.34, allocations: 9.875 kB / 3.766 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/12.34, allocations: 7.422 kB / 3.766 GB, free: 30.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005216/12.34, allocations: 95.44 kB / 3.766 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007233/12.35, allocations: 415.8 kB / 3.767 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00795/12.36, allocations: 6.395 MB / 3.773 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/12.36, allocations: 142.4 kB / 3.773 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/12.36, allocations: 36.81 kB / 3.773 GB, free: 24.96 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.0003495/12.36, allocations: 173.5 kB / 3.773 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/12.36, allocations: 85.56 kB / 3.774 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003672/12.37, allocations: 2.126 MB / 3.776 GB, free: 24.53 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/12.37, allocations: 22.31 kB / 3.776 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/12.37, allocations: 1.594 kB / 3.776 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/12.37, allocations: 7.297 kB / 3.776 GB, free: 24.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006967/12.37, allocations: 3.38 MB / 3.779 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/12.37, allocations: 0 / 3.779 GB, free: 24.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007068/12.38, allocations: 371.9 kB / 3.779 GB, free: 24.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005931/12.38, allocations: 102.8 kB / 3.779 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/12.38, allocations: 17.47 kB / 3.779 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008032/12.39, allocations: 6.391 MB / 3.786 GB, free: 18.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/12.39, allocations: 2.062 kB / 3.786 GB, free: 18.24 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004177/12.39, allocations: 2.064 MB / 3.788 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007869/12.39, allocations: 346 kB / 3.788 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003726/12.39, allocations: 29.14 kB / 3.788 GB, free: 17.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001894/12.4, allocations: 117.3 kB / 3.788 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005229/12.4, allocations: 132.6 kB / 3.788 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/12.4, allocations: 21.86 kB / 3.788 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001783/12.4, allocations: 0.8712 MB / 3.789 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.62e-07/12.4, allocations: 0 / 3.789 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007288/12.41, allocations: 1.302 MB / 3.79 GB, free: 17.3 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.01712/12.42, allocations: 4.769 MB / 3.795 GB, free: 31.63 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007504/12.43, allocations: 1.165 MB / 3.796 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/12.43, allocations: 3.062 kB / 3.796 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00637/12.44, allocations: 0.847 MB / 3.797 GB, free: 31.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004929/12.44, allocations: 0.5288 MB / 3.798 GB, free: 31.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/12.45, allocations: 2.573 MB / 3.8 GB, free: 30.65 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/12.45, allocations: 1.243 MB / 3.801 GB, free: 29.89 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002141/12.46, allocations: 489.8 kB / 3.802 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/12.46, allocations: 486.8 kB / 3.802 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of SimCode: time 1.873e-06/12.46, allocations: 0 / 3.802 GB, free: 29.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1725/12.63, allocations: 69.22 MB / 3.87 GB, free: 4.926 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003742/12.63, allocations: 246.9 kB / 3.87 GB, free: 4.586 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.801/18.43, allocations: 8 kB / 3.87 GB, free: 4.578 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat