Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.362/2.362, allocations: 195 MB / 202.9 MB, free: 6.711 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.926e-05/4.946e-05, allocations: 4.078 kB / 249.8 MB, free: 5.273 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1065, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/1.316, allocations: 319 MB / 0.5989 GB, free: 66.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003346/1.317, allocations: 87.27 kB / 0.599 GB, free: 66.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934/3.251, allocations: 277.3 MB / 0.8698 GB, free: 60.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.425e-06/3.251, allocations: 0 / 0.8698 GB, free: 60.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002139/3.251, allocations: 41.2 kB / 0.8698 GB, free: 60.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.008395/3.26, allocations: 1.797 MB / 0.8716 GB, free: 59.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/3.26, allocations: 7.781 kB / 0.8716 GB, free: 59.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/3.261, allocations: 170.6 kB / 0.8717 GB, free: 59.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00498/3.266, allocations: 1.089 MB / 0.8728 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/3.267, allocations: 34.38 kB / 0.8728 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005228/3.267, allocations: 55.88 kB / 0.8729 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00481/3.272, allocations: 1.422 MB / 0.8743 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004755/3.277, allocations: 1.472 MB / 0.8757 GB, free: 58.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.407e-05/3.277, allocations: 3.938 kB / 0.8757 GB, free: 58.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/3.277, allocations: 0 / 0.8757 GB, free: 58.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002782/3.277, allocations: 106.5 kB / 0.8758 GB, free: 58.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/3.296, allocations: 6.311 MB / 0.882 GB, free: 55.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002449/3.299, allocations: 0.8437 MB / 0.8828 GB, free: 55.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/3.3, allocations: 0.5075 MB / 0.8833 GB, free: 55.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006881/3.307, allocations: 2.755 MB / 0.886 GB, free: 54.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/3.307, allocations: 51.19 kB / 0.886 GB, free: 54.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.739e-06/3.307, allocations: 0 / 0.886 GB, free: 54.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01922/3.327, allocations: 3.102 MB / 0.8891 GB, free: 53.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/3.327, allocations: 194.3 kB / 0.8893 GB, free: 53.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/3.329, allocations: 0.8513 MB / 0.8901 GB, free: 53.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00034/3.329, allocations: 27.95 kB / 0.8901 GB, free: 53.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006999/3.33, allocations: 0.6784 MB / 0.8908 GB, free: 53.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004537/3.33, allocations: 312.4 kB / 0.8911 GB, free: 52.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/3.331, allocations: 0 / 0.8911 GB, free: 52.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/3.331, allocations: 364.5 kB / 0.8914 GB, free: 52.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/3.332, allocations: 0.5186 MB / 0.8919 GB, free: 52.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/3.334, allocations: 0.9762 MB / 0.8929 GB, free: 51.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02203/3.356, allocations: 2.173 MB / 0.895 GB, free: 51.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.913e-05/3.356, allocations: 6.906 kB / 0.895 GB, free: 51.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.0259/3.382, allocations: 3.237 MB / 0.8982 GB, free: 51.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001378/3.384, allocations: 5.587 MB / 0.9036 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.357e-05/3.384, allocations: 13.19 kB / 0.9036 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002123/3.386, allocations: 325.9 kB / 0.904 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/3.389, allocations: 301.5 kB / 0.9042 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006113/3.395, allocations: 2.427 MB / 0.9066 GB, free: 44.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/3.398, allocations: 81.7 kB / 0.9067 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003143/3.398, allocations: 74.64 kB / 0.9068 GB, free: 44.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/3.398, allocations: 4.969 kB / 0.9068 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02465/3.423, allocations: 2.944 MB / 0.9096 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.033e-05/3.423, allocations: 14.69 kB / 0.9097 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001849/3.425, allocations: 264.8 kB / 0.9099 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/3.427, allocations: 306.6 kB / 0.9102 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004692/3.432, allocations: 2.191 MB / 0.9123 GB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/3.435, allocations: 80.67 kB / 0.9124 GB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/3.435, allocations: 68.17 kB / 0.9125 GB, free: 42.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005799/3.436, allocations: 157.4 kB / 0.9126 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007632/3.443, allocations: 1.329 MB / 0.9139 GB, free: 42.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004901/3.444, allocations: 134.5 kB / 0.9141 GB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007005/3.451, allocations: 1.526 MB / 0.9156 GB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/3.451, allocations: 11.12 kB / 0.9156 GB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/3.451, allocations: 0 / 0.9156 GB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/3.451, allocations: 8.484 kB / 0.9156 GB, free: 42.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009442/3.46, allocations: 2.66 MB / 0.9182 GB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/3.46, allocations: 0 / 0.9182 GB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/3.462, allocations: 153.2 kB / 0.9183 GB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/3.464, allocations: 312.5 kB / 0.9186 GB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/3.464, allocations: 15.06 kB / 0.9186 GB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004241/3.468, allocations: 2.254 MB / 0.9208 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/3.469, allocations: 3.781 kB / 0.9208 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007058/3.476, allocations: 2.137 MB / 0.9229 GB, free: 39.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005826/3.476, allocations: 217.3 kB / 0.9231 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004398/3.477, allocations: 6.844 kB / 0.9231 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/3.478, allocations: 54.83 kB / 0.9232 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/3.479, allocations: 97.66 kB / 0.9233 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/3.479, allocations: 38.02 kB / 0.9233 GB, free: 39.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001375/3.48, allocations: 0.635 MB / 0.9239 GB, free: 39.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/3.48, allocations: 2.938 kB / 0.9239 GB, free: 39.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005244/3.486, allocations: 1.108 MB / 0.925 GB, free: 39.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01164/3.497, allocations: 3.927 MB / 0.9289 GB, free: 38.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006899/3.504, allocations: 2.089 MB / 0.9309 GB, free: 38.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/3.504, allocations: 0 / 0.9309 GB, free: 38.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002278/3.507, allocations: 0.6516 MB / 0.9315 GB, free: 38.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004802/3.511, allocations: 471.6 kB / 0.932 GB, free: 38.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009661/3.521, allocations: 2.682 MB / 0.9346 GB, free: 37.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/3.522, allocations: 1.291 MB / 0.9359 GB, free: 36.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004361/3.527, allocations: 0.5885 MB / 0.9364 GB, free: 36.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/3.528, allocations: 0.5039 MB / 0.9369 GB, free: 36.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/3.528, allocations: 0 / 0.9369 GB, free: 36.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2071/3.735, allocations: 45.85 MB / 0.9817 GB, free: 9.277 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003179/3.735, allocations: 199.9 kB / 0.9819 GB, free: 9.012 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.823/9.559, allocations: 0 / 0.9819 GB, free: 9.012 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat