Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 171.2 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.721e-05, allocations: 4 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2711, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.289, allocations: 398.9 MB / 0.6418 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/1.289, allocations: 78.39 kB / 0.6419 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.254/2.544, allocations: 208.4 MB / 0.8455 GB, free: 70.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.544, allocations: 2.344 kB / 0.8455 GB, free: 70.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001582/2.544, allocations: 35.2 kB / 0.8455 GB, free: 70.01 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.007938/2.552, allocations: 1.789 MB / 0.8472 GB, free: 69.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/2.552, allocations: 7.031 kB / 0.8473 GB, free: 69.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000924/2.553, allocations: 157.1 kB / 0.8474 GB, free: 69.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/2.556, allocations: 1.003 MB / 0.8484 GB, free: 68.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/2.556, allocations: 198.8 kB / 0.8486 GB, free: 68.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/2.557, allocations: 56.06 kB / 0.8486 GB, free: 68.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003743/2.56, allocations: 1.608 MB / 0.8502 GB, free: 68.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/2.564, allocations: 1.633 MB / 0.8518 GB, free: 68.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/2.564, allocations: 2.938 kB / 0.8518 GB, free: 68.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/2.564, allocations: 3.969 kB / 0.8518 GB, free: 68.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001962/2.564, allocations: 101.6 kB / 0.8519 GB, free: 68.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01989/2.584, allocations: 6.555 MB / 0.8583 GB, free: 66.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003982/2.588, allocations: 1.388 MB / 0.8596 GB, free: 66.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002075/2.59, allocations: 0.8096 MB / 0.8604 GB, free: 66.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/2.601, allocations: 3.891 MB / 0.8642 GB, free: 64.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/2.601, allocations: 51.09 kB / 0.8643 GB, free: 64.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.79e-06/2.601, allocations: 0 / 0.8643 GB, free: 64.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.04363/2.645, allocations: 6.462 MB / 0.8706 GB, free: 62.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/2.645, allocations: 141.8 kB / 0.8707 GB, free: 62.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/2.647, allocations: 0.6603 MB / 0.8714 GB, free: 61.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004806/2.647, allocations: 25.7 kB / 0.8714 GB, free: 61.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006871/2.648, allocations: 0.5421 MB / 0.8719 GB, free: 61.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008279/2.649, allocations: 392.9 kB / 0.8723 GB, free: 61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/2.649, allocations: 1.781 kB / 0.8723 GB, free: 61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/2.649, allocations: 365.7 kB / 0.8727 GB, free: 60.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002388/2.652, allocations: 0.7296 MB / 0.8734 GB, free: 60.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002595/2.654, allocations: 0.9729 MB / 0.8743 GB, free: 59.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02139/2.676, allocations: 2.365 MB / 0.8766 GB, free: 59.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.015e-05/2.676, allocations: 3.188 kB / 0.8766 GB, free: 59.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02601/2.702, allocations: 3.855 MB / 0.8804 GB, free: 56.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006911/2.703, allocations: 2.36 MB / 0.8827 GB, free: 54.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/2.703, allocations: 4 kB / 0.8827 GB, free: 54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004719/2.707, allocations: 0.9959 MB / 0.8837 GB, free: 53.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/2.709, allocations: 219.4 kB / 0.8839 GB, free: 53.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/2.721, allocations: 6.605 MB / 0.8903 GB, free: 46.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/2.724, allocations: 72.19 kB / 0.8904 GB, free: 46.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000234/2.724, allocations: 63.83 kB / 0.8905 GB, free: 46.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/2.724, allocations: 6.656 kB / 0.8905 GB, free: 46.6 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01676/2.741, allocations: 3.024 MB / 0.8934 GB, free: 44.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/2.741, allocations: 4 kB / 0.8934 GB, free: 44.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/2.744, allocations: 0.7216 MB / 0.8941 GB, free: 43.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/2.746, allocations: 228.7 kB / 0.8944 GB, free: 43.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00766/2.753, allocations: 6.567 MB / 0.9008 GB, free: 36.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/2.756, allocations: 75.25 kB / 0.9008 GB, free: 36.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/2.756, allocations: 55.97 kB / 0.9009 GB, free: 36.08 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.0006213/2.757, allocations: 140.9 kB / 0.901 GB, free: 35.95 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01107/2.768, allocations: 2.659 MB / 0.9036 GB, free: 33.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004185/2.768, allocations: 110.7 kB / 0.9037 GB, free: 33.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/2.78, allocations: 3.069 MB / 0.9067 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.811e-05/2.78, allocations: 16 kB / 0.9067 GB, free: 30.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/2.78, allocations: 4 kB / 0.9067 GB, free: 30.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/2.78, allocations: 7.969 kB / 0.9068 GB, free: 30.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/2.796, allocations: 4.551 MB / 0.9112 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/2.796, allocations: 0 / 0.9112 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/2.797, allocations: 151.8 kB / 0.9113 GB, free: 25.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003639/2.801, allocations: 1.007 MB / 0.9123 GB, free: 24.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002528/2.801, allocations: 23.97 kB / 0.9123 GB, free: 24.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/2.812, allocations: 6.602 MB / 0.9188 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/2.812, allocations: 0 / 0.9188 GB, free: 17.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/2.826, allocations: 4.041 MB / 0.9227 GB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/2.827, allocations: 403.3 kB / 0.9231 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/2.828, allocations: 4 kB / 0.9231 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/2.83, allocations: 67.69 kB / 0.9232 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/2.83, allocations: 149 kB / 0.9233 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/2.83, allocations: 47.97 kB / 0.9234 GB, free: 12.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008589/2.831, allocations: 0.4913 MB / 0.9239 GB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/2.831, allocations: 0 / 0.9239 GB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004905/2.836, allocations: 1.046 MB / 0.9249 GB, free: 11.27 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.01713/2.853, allocations: 5.284 MB / 0.93 GB, free: 6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009248/2.863, allocations: 3.425 MB / 0.9334 GB, free: 2.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/2.863, allocations: 0 / 0.9334 GB, free: 2.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003829/2.866, allocations: 1.266 MB / 0.9346 GB, free: 1.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00389/2.87, allocations: 493 kB / 0.9351 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2651/3.135, allocations: 2.947 MB / 0.938 GB, free: 62.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/3.137, allocations: 1.294 MB / 0.9392 GB, free: 62.15 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003654/3.14, allocations: 0.5818 MB / 0.9398 GB, free: 62.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/3.141, allocations: 0.4898 MB / 0.9403 GB, free: 62.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/3.141, allocations: 1.969 kB / 0.9403 GB, free: 62.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1559/3.297, allocations: 48.73 MB / 0.9879 GB, free: 59.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/3.298, allocations: 164 kB / 0.988 GB, free: 59.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.644/7.942, allocations: 0 / 0.988 GB, free: 59.61 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat