Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.742/2.742, allocations: 270 MB / 283.6 MB, free: 1.887 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.444e-05, allocations: 4 kB / 348.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4002, allocations: 61.87 MB / 410.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.008/9.408, allocations: 2.771 GB / 3.171 GB, free: 131.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/9.409, allocations: 86.19 kB / 3.171 GB, free: 131.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.213/12.62, allocations: 0.5592 GB / 3.731 GB, free: 59.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.994e-06/12.62, allocations: 0.5469 kB / 3.731 GB, free: 59.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.42e-05/12.62, allocations: 26.58 kB / 3.731 GB, free: 59.2 MB / 0.5417 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.009752/12.63, allocations: 2.041 MB / 3.733 GB, free: 58.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/12.63, allocations: 7.75 kB / 3.733 GB, free: 58.57 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003596/12.63, allocations: 138.2 kB / 3.733 GB, free: 58.53 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003474/12.64, allocations: 320.3 kB / 3.733 GB, free: 58.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002165/12.64, allocations: 0.6778 MB / 3.734 GB, free: 58.24 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/12.64, allocations: 301.3 kB / 3.734 GB, free: 57.99 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/12.64, allocations: 84.75 kB / 3.734 GB, free: 57.98 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00476/12.64, allocations: 1.49 MB / 3.736 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.584e-05/12.64, allocations: 7.438 kB / 3.736 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/12.64, allocations: 36.53 kB / 3.736 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.062e-05/12.64, allocations: 41.84 kB / 3.736 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/12.65, allocations: 1.255 MB / 3.737 GB, free: 57.7 MB / 0.5417 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.0131/12.66, allocations: 6.4 MB / 3.743 GB, free: 53.65 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/12.66, allocations: 0.8928 MB / 3.744 GB, free: 53.6 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008848/12.67, allocations: 391.4 kB / 3.744 GB, free: 53.58 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0498/12.72, allocations: 15.6 MB / 3.76 GB, free: 44.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.824e-05/12.72, allocations: 44.14 kB / 3.76 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 3.928e-06/12.72, allocations: 2.078 kB / 3.76 GB, free: 44.15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.01083/12.73, allocations: 2.51 MB / 3.762 GB, free: 43.61 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/12.73, allocations: 161.4 kB / 3.762 GB, free: 43.42 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/12.73, allocations: 0.7105 MB / 3.763 GB, free: 43.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001763/12.73, allocations: 47.8 kB / 3.763 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004934/12.73, allocations: 439.7 kB / 3.763 GB, free: 43.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/12.73, allocations: 215.4 kB / 3.764 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/12.73, allocations: 19.47 kB / 3.764 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000201/12.73, allocations: 407 kB / 3.764 GB, free: 42.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/12.73, allocations: 377.2 kB / 3.764 GB, free: 42.62 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/12.73, allocations: 0.5877 MB / 3.765 GB, free: 42.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/12.73, allocations: 412.2 kB / 3.765 GB, free: 42.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/12.73, allocations: 0 / 3.765 GB, free: 42.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004469/12.74, allocations: 1.091 MB / 3.766 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/12.74, allocations: 7.281 kB / 3.766 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/12.74, allocations: 14.59 kB / 3.766 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007055/12.74, allocations: 88.44 kB / 3.766 GB, free: 42.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009695/12.75, allocations: 408.6 kB / 3.767 GB, free: 42.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/12.76, allocations: 6.401 MB / 3.773 GB, free: 36.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002816/12.76, allocations: 144.2 kB / 3.773 GB, free: 36.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001894/12.76, allocations: 44.84 kB / 3.773 GB, free: 36.45 MB / 0.5417 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.0004671/12.76, allocations: 172.1 kB / 3.773 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003672/12.76, allocations: 85.88 kB / 3.774 GB, free: 36.29 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005317/12.77, allocations: 2.113 MB / 3.776 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.011e-05/12.77, allocations: 20.16 kB / 3.776 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/12.77, allocations: 6.578 kB / 3.776 GB, free: 36.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/12.77, allocations: 3.422 kB / 3.776 GB, free: 36.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00985/12.78, allocations: 3.374 MB / 3.779 GB, free: 35.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/12.78, allocations: 7.156 kB / 3.779 GB, free: 35.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009632/12.79, allocations: 372.8 kB / 3.779 GB, free: 35.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007553/12.79, allocations: 105.6 kB / 3.779 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002062/12.79, allocations: 17.39 kB / 3.779 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/12.8, allocations: 6.39 MB / 3.786 GB, free: 29.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/12.8, allocations: 3.75 kB / 3.786 GB, free: 29.77 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004114/12.81, allocations: 2.056 MB / 3.788 GB, free: 29.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007334/12.81, allocations: 346.9 kB / 3.788 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003517/12.81, allocations: 29.69 kB / 3.788 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/12.81, allocations: 113.2 kB / 3.788 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000429/12.81, allocations: 137 kB / 3.788 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.216e-05/12.81, allocations: 25.45 kB / 3.788 GB, free: 29.13 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001659/12.81, allocations: 0.8661 MB / 3.789 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.81e-07/12.81, allocations: 1.281 kB / 3.789 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006884/12.82, allocations: 1.306 MB / 3.79 GB, free: 28.85 MB / 0.5417 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.01571/12.83, allocations: 4.78 MB / 3.795 GB, free: 27.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007395/12.84, allocations: 1.163 MB / 3.796 GB, free: 27.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/12.84, allocations: 0 / 3.796 GB, free: 27.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006277/12.85, allocations: 0.8473 MB / 3.797 GB, free: 27.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004898/12.85, allocations: 0.5217 MB / 3.798 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009067/12.86, allocations: 2.568 MB / 3.8 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007926/12.86, allocations: 1.245 MB / 3.801 GB, free: 25.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001881/12.86, allocations: 490.8 kB / 3.802 GB, free: 25.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008808/12.86, allocations: 486.8 kB / 3.802 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of SimCode: time 1.502e-06/12.86, allocations: 0 / 3.802 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1599/13.02, allocations: 69.23 MB / 3.87 GB, free: 22.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/13.02, allocations: 243 kB / 3.87 GB, free: 22.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.15/19.17, allocations: 3.719 kB / 3.87 GB, free: 22.25 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat