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.869/1.869, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.538e-05/2.548e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.276, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.019/1.295, allocations: 398.9 MB / 0.6418 GB, free: 1.086 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/1.295, allocations: 81.77 kB / 0.6419 GB, free: 1.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.277/2.572, allocations: 208.4 MB / 0.8454 GB, free: 69.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/2.572, allocations: 2.844 kB / 0.8454 GB, free: 69.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001173/2.572, allocations: 33.28 kB / 0.8455 GB, free: 69.74 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.007085/2.579, allocations: 1.785 MB / 0.8472 GB, free: 68.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/2.579, allocations: 11.94 kB / 0.8472 GB, free: 68.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009699/2.58, allocations: 167 kB / 0.8474 GB, free: 68.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/2.584, allocations: 0.9923 MB / 0.8484 GB, free: 68.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/2.584, allocations: 204.3 kB / 0.8486 GB, free: 68.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002729/2.584, allocations: 56.5 kB / 0.8486 GB, free: 68.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003896/2.588, allocations: 1.606 MB / 0.8502 GB, free: 68.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003645/2.592, allocations: 1.628 MB / 0.8518 GB, free: 68.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.458e-05/2.592, allocations: 1.781 kB / 0.8518 GB, free: 68.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/2.592, allocations: 6.25 kB / 0.8518 GB, free: 68.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000202/2.592, allocations: 101.2 kB / 0.8519 GB, free: 68.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/2.61, allocations: 6.546 MB / 0.8583 GB, free: 66.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003592/2.614, allocations: 1.392 MB / 0.8596 GB, free: 66.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/2.615, allocations: 0.8124 MB / 0.8604 GB, free: 66.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008694/2.624, allocations: 3.888 MB / 0.8642 GB, free: 64.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/2.624, allocations: 48.75 kB / 0.8643 GB, free: 64.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.829e-06/2.624, allocations: 1.875 kB / 0.8643 GB, free: 64.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.03205/2.656, allocations: 6.469 MB / 0.8706 GB, free: 62.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/2.656, allocations: 146.5 kB / 0.8707 GB, free: 61.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/2.658, allocations: 0.6532 MB / 0.8714 GB, free: 61.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004226/2.658, allocations: 28.52 kB / 0.8714 GB, free: 61.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004591/2.659, allocations: 0.5512 MB / 0.8719 GB, free: 61.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005398/2.659, allocations: 397.8 kB / 0.8723 GB, free: 60.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/2.659, allocations: 0 / 0.8723 GB, free: 60.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/2.66, allocations: 368.1 kB / 0.8727 GB, free: 60.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/2.661, allocations: 0.7262 MB / 0.8734 GB, free: 60.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/2.663, allocations: 0.9812 MB / 0.8743 GB, free: 59.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01649/2.68, allocations: 2.358 MB / 0.8766 GB, free: 59.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.946e-05/2.68, allocations: 0 / 0.8766 GB, free: 59.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02167/2.701, allocations: 3.812 MB / 0.8803 GB, free: 56.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000548/2.702, allocations: 2.356 MB / 0.8826 GB, free: 54.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/2.702, allocations: 8 kB / 0.8827 GB, free: 54.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003751/2.706, allocations: 0.9953 MB / 0.8836 GB, free: 53.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/2.708, allocations: 221.6 kB / 0.8838 GB, free: 53.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/2.72, allocations: 6.602 MB / 0.8903 GB, free: 46.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002575/2.722, allocations: 67.03 kB / 0.8903 GB, free: 46.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/2.723, allocations: 67.06 kB / 0.8904 GB, free: 46.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/2.723, allocations: 4 kB / 0.8904 GB, free: 46.78 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01718/2.74, allocations: 3.023 MB / 0.8934 GB, free: 44.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/2.74, allocations: 8 kB / 0.8934 GB, free: 44.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002728/2.743, allocations: 0.6998 MB / 0.8941 GB, free: 43.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/2.745, allocations: 230.9 kB / 0.8943 GB, free: 43.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007807/2.753, allocations: 6.586 MB / 0.9007 GB, free: 36.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/2.755, allocations: 63.61 kB / 0.9008 GB, free: 36.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/2.755, allocations: 59.97 kB / 0.9008 GB, free: 36.67 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.0006018/2.756, allocations: 142.2 kB / 0.901 GB, free: 36.54 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01162/2.767, allocations: 2.654 MB / 0.9036 GB, free: 33.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006087/2.768, allocations: 114.7 kB / 0.9037 GB, free: 33.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/2.781, allocations: 3.065 MB / 0.9067 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.513e-05/2.781, allocations: 16 kB / 0.9067 GB, free: 30.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/2.781, allocations: 3.938 kB / 0.9067 GB, free: 30.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/2.781, allocations: 11.97 kB / 0.9067 GB, free: 30.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/2.797, allocations: 4.55 MB / 0.9111 GB, free: 26.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/2.797, allocations: 0 / 0.9111 GB, free: 26.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/2.799, allocations: 151.8 kB / 0.9113 GB, free: 26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003834/2.803, allocations: 1.007 MB / 0.9123 GB, free: 25.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004263/2.803, allocations: 19.97 kB / 0.9123 GB, free: 25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/2.815, allocations: 6.597 MB / 0.9187 GB, free: 18.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/2.815, allocations: 4.031 kB / 0.9187 GB, free: 18.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/2.829, allocations: 4.042 MB / 0.9227 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/2.831, allocations: 399.4 kB / 0.9231 GB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/2.831, allocations: 4 kB / 0.9231 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/2.834, allocations: 71.77 kB / 0.9231 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006226/2.834, allocations: 145 kB / 0.9233 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/2.835, allocations: 51.95 kB / 0.9233 GB, free: 13.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009158/2.835, allocations: 0.4889 MB / 0.9238 GB, free: 12.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.8e-07/2.835, allocations: 0 / 0.9238 GB, free: 12.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00626/2.842, allocations: 1.041 MB / 0.9248 GB, free: 11.87 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.01791/2.86, allocations: 5.296 MB / 0.93 GB, free: 6.586 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01015/2.87, allocations: 3.41 MB / 0.9333 GB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/2.87, allocations: 3.281 kB / 0.9333 GB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004351/2.874, allocations: 1.262 MB / 0.9345 GB, free: 1.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004489/2.879, allocations: 489.3 kB / 0.935 GB, free: 1.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2703/3.149, allocations: 2.98 MB / 0.9379 GB, free: 62.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/3.15, allocations: 1.289 MB / 0.9392 GB, free: 62.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/3.152, allocations: 0.5153 MB / 0.9397 GB, free: 62.22 MB / 362.7 MB Notification: Performance of SimCode: time 2.204e-06/3.152, allocations: 0 / 0.9397 GB, free: 62.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.838/6.99, allocations: 55.5 MB / 0.9939 GB, free: 57.74 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