Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.28/2.28, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.689e-05, allocations: 0 / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3461, allocations: 44.49 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.18/1.526, allocations: 404.3 MB / 0.6821 GB, free: 48.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003901/1.526, allocations: 79.7 kB / 0.6822 GB, free: 48.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.067/2.594, allocations: 208.5 MB / 0.8858 GB, free: 17.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.415e-06/2.594, allocations: 4 kB / 0.8858 GB, free: 17.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001311/2.594, allocations: 31.94 kB / 0.8858 GB, free: 17.58 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007736/2.602, allocations: 1.796 MB / 0.8876 GB, free: 15.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.104e-05/2.602, allocations: 12.02 kB / 0.8876 GB, free: 15.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/2.603, allocations: 170.2 kB / 0.8877 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/2.606, allocations: 0.9842 MB / 0.8887 GB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/2.607, allocations: 198.5 kB / 0.8889 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/2.607, allocations: 63.91 kB / 0.889 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003929/2.611, allocations: 1.609 MB / 0.8905 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003734/2.615, allocations: 1.642 MB / 0.8921 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.671e-05/2.615, allocations: 0 / 0.8921 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/2.615, allocations: 0 / 0.8921 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001985/2.615, allocations: 102 kB / 0.8922 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/2.634, allocations: 6.562 MB / 0.8986 GB, free: 4.004 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003621/2.637, allocations: 1.398 MB / 0.9 GB, free: 2.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001806/2.639, allocations: 0.8094 MB / 0.9008 GB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3103/2.95, allocations: 3.863 MB / 0.9046 GB, free: 73.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/2.95, allocations: 51.83 kB / 0.9046 GB, free: 73.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 5.189e-06/2.95, allocations: 0 / 0.9046 GB, free: 73.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.03506/2.985, allocations: 6.473 MB / 0.9109 GB, free: 72.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/2.985, allocations: 167.3 kB / 0.9111 GB, free: 72.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/2.986, allocations: 0.6565 MB / 0.9117 GB, free: 72.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003455/2.987, allocations: 25.7 kB / 0.9118 GB, free: 72.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000507/2.987, allocations: 0.5384 MB / 0.9123 GB, free: 72.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005145/2.988, allocations: 395.6 kB / 0.9127 GB, free: 72.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/2.988, allocations: 0 / 0.9127 GB, free: 72.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/2.988, allocations: 362.9 kB / 0.913 GB, free: 71.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/2.99, allocations: 0.7238 MB / 0.9137 GB, free: 71.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/2.992, allocations: 0.9903 MB / 0.9147 GB, free: 71.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01675/3.008, allocations: 2.359 MB / 0.917 GB, free: 71.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/3.008, allocations: 3.188 kB / 0.917 GB, free: 71.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02154/3.03, allocations: 3.864 MB / 0.9208 GB, free: 71.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005734/3.031, allocations: 2.358 MB / 0.9231 GB, free: 68.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/3.031, allocations: 7.656 kB / 0.9231 GB, free: 68.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003728/3.034, allocations: 0.9918 MB / 0.924 GB, free: 68.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/3.036, allocations: 223.6 kB / 0.9243 GB, free: 68.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/3.048, allocations: 6.599 MB / 0.9307 GB, free: 64.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/3.051, allocations: 73.38 kB / 0.9308 GB, free: 64.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000288/3.051, allocations: 60.69 kB / 0.9308 GB, free: 64.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/3.051, allocations: 5.469 kB / 0.9308 GB, free: 64.73 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01755/3.069, allocations: 3.028 MB / 0.9338 GB, free: 64.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.961e-05/3.069, allocations: 7.656 kB / 0.9338 GB, free: 64.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002996/3.072, allocations: 0.7121 MB / 0.9345 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/3.074, allocations: 234.1 kB / 0.9347 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007584/3.082, allocations: 6.579 MB / 0.9411 GB, free: 59.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/3.084, allocations: 65.11 kB / 0.9412 GB, free: 59.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/3.084, allocations: 61.61 kB / 0.9413 GB, free: 59.73 MB / 410.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.0006129/3.085, allocations: 135.5 kB / 0.9414 GB, free: 59.62 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01126/3.096, allocations: 2.66 MB / 0.944 GB, free: 59.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005551/3.097, allocations: 111.5 kB / 0.9441 GB, free: 59.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/3.109, allocations: 3.066 MB / 0.9471 GB, free: 59.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/3.109, allocations: 22.69 kB / 0.9471 GB, free: 59.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/3.109, allocations: 0 / 0.9471 GB, free: 59.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.232e-05/3.109, allocations: 10.58 kB / 0.9471 GB, free: 59.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/3.125, allocations: 4.54 MB / 0.9516 GB, free: 58.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/3.125, allocations: 5.016 kB / 0.9516 GB, free: 58.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/3.127, allocations: 148.8 kB / 0.9517 GB, free: 58.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00379/3.13, allocations: 1.009 MB / 0.9527 GB, free: 58.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003434/3.131, allocations: 24.41 kB / 0.9527 GB, free: 58.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/3.142, allocations: 6.589 MB / 0.9591 GB, free: 54.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/3.142, allocations: 5.406 kB / 0.9592 GB, free: 54.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01371/3.156, allocations: 4.044 MB / 0.9631 GB, free: 54.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/3.157, allocations: 405.4 kB / 0.9635 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004097/3.158, allocations: 6.406 kB / 0.9635 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001839/3.16, allocations: 73.67 kB / 0.9636 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005048/3.16, allocations: 139.5 kB / 0.9637 GB, free: 54.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/3.16, allocations: 53.05 kB / 0.9637 GB, free: 54.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008822/3.161, allocations: 496.3 kB / 0.9642 GB, free: 54.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/3.161, allocations: 0 / 0.9642 GB, free: 54.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005142/3.166, allocations: 1.049 MB / 0.9652 GB, free: 54.19 MB / 410.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.01671/3.183, allocations: 5.287 MB / 0.9704 GB, free: 53.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009404/3.193, allocations: 3.423 MB / 0.9738 GB, free: 52.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/3.193, allocations: 3.281 kB / 0.9738 GB, free: 52.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00403/3.197, allocations: 1.268 MB / 0.975 GB, free: 52.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/3.201, allocations: 487.6 kB / 0.9755 GB, free: 52.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/3.213, allocations: 2.964 MB / 0.9784 GB, free: 52.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009911/3.214, allocations: 1.291 MB / 0.9796 GB, free: 51.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003462/3.218, allocations: 0.585 MB / 0.9802 GB, free: 51.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/3.219, allocations: 0.4886 MB / 0.9807 GB, free: 51.31 MB / 410.7 MB Notification: Performance of SimCode: time 9.41e-07/3.219, allocations: 0 / 0.9807 GB, free: 51.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1427/3.362, allocations: 48.81 MB / 1.028 GB, free: 28.01 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002972/3.362, allocations: 164.2 kB / 1.028 GB, free: 27.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.026/8.388, allocations: 3.094 kB / 1.028 GB, free: 27.82 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat