Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.137/2.137, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.814e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3457, allocations: 44.49 MB / 294.2 MB, free: 14.43 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.465, allocations: 318.6 MB / 0.5985 GB, free: 112.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003548/1.465, allocations: 94.03 kB / 0.5986 GB, free: 112.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082/2.547, allocations: 188.9 MB / 0.7831 GB, free: 92.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.734e-06/2.547, allocations: 0 / 0.7831 GB, free: 92.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001071/2.547, allocations: 31.3 kB / 0.7831 GB, free: 92.83 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004528/2.552, allocations: 1.288 MB / 0.7843 GB, free: 92.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/2.552, allocations: 13 kB / 0.7844 GB, free: 92.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008049/2.553, allocations: 110 kB / 0.7845 GB, free: 92.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/2.555, allocations: 0.773 MB / 0.7852 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.109e-05/2.555, allocations: 22.5 kB / 0.7852 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/2.555, allocations: 33.62 kB / 0.7853 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002143/2.558, allocations: 0.8913 MB / 0.7861 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/2.56, allocations: 0.9459 MB / 0.7871 GB, free: 91.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/2.56, allocations: 7.25 kB / 0.7871 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/2.56, allocations: 10.88 kB / 0.7871 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/2.56, allocations: 63.67 kB / 0.7871 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01215/2.572, allocations: 4.271 MB / 0.7913 GB, free: 89.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/2.574, allocations: 0.5121 MB / 0.7918 GB, free: 89.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009115/2.575, allocations: 287.5 kB / 0.7921 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005829/2.581, allocations: 1.96 MB / 0.794 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/2.581, allocations: 38.73 kB / 0.794 GB, free: 88.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 5.601e-06/2.581, allocations: 0 / 0.794 GB, free: 88.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.01414/2.595, allocations: 1.719 MB / 0.7957 GB, free: 87.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/2.595, allocations: 161.4 kB / 0.7959 GB, free: 87.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/2.597, allocations: 0.6202 MB / 0.7965 GB, free: 87.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/2.597, allocations: 25.7 kB / 0.7965 GB, free: 87.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005566/2.598, allocations: 0.4908 MB / 0.797 GB, free: 87.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/2.598, allocations: 158.7 kB / 0.7971 GB, free: 86.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/2.598, allocations: 0 / 0.7971 GB, free: 86.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/2.598, allocations: 394.5 kB / 0.7975 GB, free: 86.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/2.599, allocations: 287.7 kB / 0.7978 GB, free: 86.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/2.601, allocations: 0.64 MB / 0.7984 GB, free: 86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01634/2.617, allocations: 1.367 MB / 0.7997 GB, free: 85.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.112e-05/2.617, allocations: 3.688 kB / 0.7997 GB, free: 85.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01928/2.637, allocations: 1.998 MB / 0.8017 GB, free: 85.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001368/2.638, allocations: 4.443 MB / 0.806 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/2.638, allocations: 14.86 kB / 0.806 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/2.64, allocations: 167.7 kB / 0.8062 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/2.642, allocations: 197.6 kB / 0.8064 GB, free: 80.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004372/2.646, allocations: 1.473 MB / 0.8078 GB, free: 79.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/2.649, allocations: 48.23 kB / 0.8079 GB, free: 79.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/2.649, allocations: 49.61 kB / 0.8079 GB, free: 79.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/2.649, allocations: 3.656 kB / 0.8079 GB, free: 79.38 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01642/2.665, allocations: 1.809 MB / 0.8097 GB, free: 78.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/2.665, allocations: 14.97 kB / 0.8097 GB, free: 78.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009114/2.666, allocations: 155.8 kB / 0.8099 GB, free: 78.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/2.668, allocations: 192.1 kB / 0.81 GB, free: 78.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/2.67, allocations: 1.391 MB / 0.8114 GB, free: 77.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/2.673, allocations: 41.83 kB / 0.8114 GB, free: 77.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/2.673, allocations: 43.69 kB / 0.8115 GB, free: 77.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003787/2.673, allocations: 155.5 kB / 0.8116 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003285/2.677, allocations: 0.6853 MB / 0.8123 GB, free: 77.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/2.677, allocations: 81.11 kB / 0.8124 GB, free: 77.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/2.68, allocations: 0.7889 MB / 0.8132 GB, free: 77.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/2.68, allocations: 3.281 kB / 0.8132 GB, free: 77.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/2.68, allocations: 2.469 kB / 0.8132 GB, free: 77.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/2.68, allocations: 3.938 kB / 0.8132 GB, free: 77.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004845/2.685, allocations: 1.499 MB / 0.8146 GB, free: 76.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/2.685, allocations: 7.875 kB / 0.8146 GB, free: 76.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006942/2.686, allocations: 83.25 kB / 0.8147 GB, free: 76.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009143/2.687, allocations: 154.2 kB / 0.8149 GB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/2.687, allocations: 15 kB / 0.8149 GB, free: 76.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/2.689, allocations: 1.376 MB / 0.8162 GB, free: 75.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/2.689, allocations: 7.781 kB / 0.8162 GB, free: 75.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004037/2.693, allocations: 1.1 MB / 0.8173 GB, free: 74.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/2.694, allocations: 170.5 kB / 0.8175 GB, free: 74.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005038/2.695, allocations: 7.469 kB / 0.8175 GB, free: 74.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/2.696, allocations: 37.42 kB / 0.8175 GB, free: 74.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/2.697, allocations: 50.7 kB / 0.8176 GB, free: 74.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/2.697, allocations: 19.66 kB / 0.8176 GB, free: 74.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001254/2.698, allocations: 465.5 kB / 0.818 GB, free: 74.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.698, allocations: 0 / 0.818 GB, free: 74.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005543/2.704, allocations: 0.7616 MB / 0.8188 GB, free: 74.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00909/2.713, allocations: 2.472 MB / 0.8212 GB, free: 72.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004878/2.718, allocations: 1.153 MB / 0.8223 GB, free: 72.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/2.718, allocations: 0 / 0.8223 GB, free: 72.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/2.719, allocations: 291.1 kB / 0.8226 GB, free: 71.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003579/2.723, allocations: 287.4 kB / 0.8229 GB, free: 71.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008219/2.731, allocations: 1.689 MB / 0.8245 GB, free: 70.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008743/2.732, allocations: 1.048 MB / 0.8255 GB, free: 69.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003228/2.735, allocations: 374.5 kB / 0.8259 GB, free: 69.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009035/2.736, allocations: 308.8 kB / 0.8262 GB, free: 68.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/2.736, allocations: 0 / 0.8262 GB, free: 68.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1364/2.873, allocations: 28.87 MB / 0.8544 GB, free: 40.64 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/2.873, allocations: 190.3 kB / 0.8546 GB, free: 40.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.901/6.773, allocations: 0 / 0.8546 GB, free: 40.44 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat