Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.738/1.738, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.171e-05, allocations: 4 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.269, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.271/1.54, allocations: 399.6 MB / 0.6479 GB, free: 101.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/1.541, allocations: 85.41 kB / 0.6479 GB, free: 101.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017/2.558, allocations: 210.1 MB / 0.8531 GB, free: 63.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/2.558, allocations: 3.938 kB / 0.8531 GB, free: 63.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00018/2.558, allocations: 35.83 kB / 0.8531 GB, free: 63.05 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008366/2.567, allocations: 1.79 MB / 0.8549 GB, free: 61.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/2.567, allocations: 8.031 kB / 0.8549 GB, free: 61.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009458/2.568, allocations: 168.6 kB / 0.855 GB, free: 61.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/2.569, allocations: 166.2 kB / 0.8552 GB, free: 60.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003954/2.573, allocations: 0.9925 MB / 0.8562 GB, free: 59.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/2.573, allocations: 238.2 kB / 0.8564 GB, free: 59.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006269/2.574, allocations: 95.91 kB / 0.8565 GB, free: 59.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005183/2.579, allocations: 1.761 MB / 0.8582 GB, free: 57.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.782e-05/2.579, allocations: 4 kB / 0.8582 GB, free: 57.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002629/2.58, allocations: 42.8 kB / 0.8582 GB, free: 57.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/2.58, allocations: 97.98 kB / 0.8583 GB, free: 57.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005182/2.585, allocations: 1.71 MB / 0.86 GB, free: 55.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02165/2.607, allocations: 6.838 MB / 0.8667 GB, free: 48.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004315/2.611, allocations: 1.413 MB / 0.8681 GB, free: 47.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/2.613, allocations: 0.8241 MB / 0.8689 GB, free: 46.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009644/2.623, allocations: 3.964 MB / 0.8727 GB, free: 42.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/2.623, allocations: 55.55 kB / 0.8728 GB, free: 42.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.659e-06/2.623, allocations: 0 / 0.8728 GB, free: 42.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.0167/2.64, allocations: 4.597 MB / 0.8773 GB, free: 37.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/2.64, allocations: 145.5 kB / 0.8774 GB, free: 37.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/2.642, allocations: 0.9706 MB / 0.8784 GB, free: 36.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004483/2.642, allocations: 49.7 kB / 0.8784 GB, free: 36.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/2.643, allocations: 0.5161 MB / 0.8789 GB, free: 35.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000625/2.644, allocations: 419 kB / 0.8793 GB, free: 35.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/2.644, allocations: 24 kB / 0.8793 GB, free: 35.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/2.644, allocations: 366.8 kB / 0.8797 GB, free: 35.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/2.646, allocations: 0.738 MB / 0.8804 GB, free: 34.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/2.648, allocations: 0.987 MB / 0.8814 GB, free: 33.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002258/2.65, allocations: 0.8129 MB / 0.8822 GB, free: 32.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/2.65, allocations: 0 / 0.8822 GB, free: 32.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007017/2.657, allocations: 2.312 MB / 0.8844 GB, free: 30.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000477/2.658, allocations: 2.356 MB / 0.8867 GB, free: 27.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/2.658, allocations: 8 kB / 0.8867 GB, free: 27.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005969/2.664, allocations: 1.208 MB / 0.8879 GB, free: 26.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002045/2.666, allocations: 219.6 kB / 0.8881 GB, free: 26.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007985/2.674, allocations: 6.176 MB / 0.8941 GB, free: 19.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/2.677, allocations: 91.84 kB / 0.8942 GB, free: 19.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003221/2.677, allocations: 63.97 kB / 0.8943 GB, free: 19.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/2.677, allocations: 4 kB / 0.8943 GB, free: 19.56 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005597/2.683, allocations: 1.991 MB / 0.8962 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/2.683, allocations: 7.938 kB / 0.8963 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003176/2.686, allocations: 0.7434 MB / 0.897 GB, free: 16.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00211/2.688, allocations: 239.6 kB / 0.8972 GB, free: 16.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007358/2.696, allocations: 6.72 MB / 0.9038 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/2.697, allocations: 91.84 kB / 0.9039 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/2.698, allocations: 55.98 kB / 0.9039 GB, free: 9.266 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005768/2.698, allocations: 188.7 kB / 0.9041 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004205/2.699, allocations: 137.9 kB / 0.9042 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00692/2.706, allocations: 2.563 MB / 0.9067 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/2.706, allocations: 19.98 kB / 0.9067 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/2.706, allocations: 7.938 kB / 0.9068 GB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/2.706, allocations: 3.984 kB / 0.9068 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009906/2.716, allocations: 4.159 MB / 0.9108 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/2.716, allocations: 0 / 0.9108 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/2.717, allocations: 151.8 kB / 0.911 GB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005304/2.722, allocations: 1.191 MB / 0.9121 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/2.723, allocations: 35.97 kB / 0.9122 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2723/2.995, allocations: 6.191 MB / 0.9182 GB, free: 60.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/2.995, allocations: 2.312 kB / 0.9182 GB, free: 60.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009212/3.004, allocations: 3.531 MB / 0.9217 GB, free: 60.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/3.006, allocations: 436.2 kB / 0.9221 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003723/3.006, allocations: 30.09 kB / 0.9221 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/3.008, allocations: 98.34 kB / 0.9222 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/3.009, allocations: 140.8 kB / 0.9223 GB, free: 60.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002072/3.009, allocations: 50.34 kB / 0.9224 GB, free: 60.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001459/3.01, allocations: 0.7377 MB / 0.9231 GB, free: 60.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/3.01, allocations: 2.156 kB / 0.9231 GB, free: 60.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00485/3.015, allocations: 1.111 MB / 0.9242 GB, free: 60.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01152/3.027, allocations: 4.817 MB / 0.9289 GB, free: 59.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009941/3.037, allocations: 3.474 MB / 0.9323 GB, free: 58.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/3.037, allocations: 5.281 kB / 0.9323 GB, free: 58.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004325/3.041, allocations: 1.283 MB / 0.9335 GB, free: 58.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004521/3.046, allocations: 0.5375 MB / 0.9341 GB, free: 58.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/3.059, allocations: 3.137 MB / 0.9371 GB, free: 58.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009485/3.06, allocations: 1.29 MB / 0.9384 GB, free: 57.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/3.061, allocations: 0.5286 MB / 0.9389 GB, free: 57.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/3.061, allocations: 0 / 0.9389 GB, free: 57.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.925/6.986, allocations: 56.77 MB / 0.9943 GB, free: 41.17 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat