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.81/1.81, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.255e-05/3.256e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2676, allocations: 38.77 MB / 263.9 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.406/1.674, allocations: 399.6 MB / 0.6479 GB, free: 101.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/1.674, allocations: 82.16 kB / 0.648 GB, free: 101.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.059/2.733, allocations: 210 MB / 0.8531 GB, free: 63 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.547e-06/2.733, allocations: 0 / 0.8531 GB, free: 63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001658/2.733, allocations: 44.09 kB / 0.8531 GB, free: 62.95 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.008098/2.742, allocations: 1.785 MB / 0.8549 GB, free: 61.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/2.742, allocations: 8.031 kB / 0.8549 GB, free: 61.14 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006778/2.742, allocations: 172.6 kB / 0.8551 GB, free: 60.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009567/2.743, allocations: 158.3 kB / 0.8552 GB, free: 60.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003817/2.747, allocations: 1.003 MB / 0.8562 GB, free: 59.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/2.747, allocations: 231.1 kB / 0.8564 GB, free: 59.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/2.748, allocations: 95.75 kB / 0.8565 GB, free: 59.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004874/2.753, allocations: 1.764 MB / 0.8582 GB, free: 57.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.337e-05/2.753, allocations: 0 / 0.8582 GB, free: 57.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/2.753, allocations: 43.19 kB / 0.8583 GB, free: 57.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/2.753, allocations: 106 kB / 0.8584 GB, free: 57.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005018/2.758, allocations: 1.698 MB / 0.86 GB, free: 55.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02124/2.78, allocations: 6.844 MB / 0.8667 GB, free: 48.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004038/2.784, allocations: 1.405 MB / 0.8681 GB, free: 47.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/2.786, allocations: 0.8315 MB / 0.8689 GB, free: 46.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009186/2.795, allocations: 3.971 MB / 0.8728 GB, free: 42.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/2.795, allocations: 43.56 kB / 0.8728 GB, free: 42.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.628e-06/2.795, allocations: 0 / 0.8728 GB, free: 42.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01786/2.813, allocations: 4.607 MB / 0.8773 GB, free: 37.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.51e-05/2.813, allocations: 153.4 kB / 0.8775 GB, free: 37.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/2.815, allocations: 0.9667 MB / 0.8784 GB, free: 36.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004862/2.816, allocations: 49.7 kB / 0.8784 GB, free: 36.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004821/2.816, allocations: 0.5253 MB / 0.879 GB, free: 35.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005672/2.817, allocations: 416.4 kB / 0.8794 GB, free: 35.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/2.817, allocations: 28 kB / 0.8794 GB, free: 35.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/2.817, allocations: 357.9 kB / 0.8797 GB, free: 35.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/2.819, allocations: 0.7419 MB / 0.8804 GB, free: 34.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/2.821, allocations: 0.9909 MB / 0.8814 GB, free: 33.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00225/2.824, allocations: 0.8013 MB / 0.8822 GB, free: 32.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/2.824, allocations: 0 / 0.8822 GB, free: 32.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007301/2.831, allocations: 2.393 MB / 0.8845 GB, free: 30.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005525/2.832, allocations: 2.361 MB / 0.8868 GB, free: 27.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/2.832, allocations: 8 kB / 0.8868 GB, free: 27.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006151/2.838, allocations: 1.194 MB / 0.888 GB, free: 26.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/2.84, allocations: 227.6 kB / 0.8882 GB, free: 26.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008418/2.848, allocations: 6.164 MB / 0.8942 GB, free: 19.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/2.851, allocations: 95.84 kB / 0.8943 GB, free: 19.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003576/2.852, allocations: 72.22 kB / 0.8944 GB, free: 19.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/2.852, allocations: 4 kB / 0.8944 GB, free: 19.38 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006007/2.858, allocations: 1.985 MB / 0.8964 GB, free: 17.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/2.858, allocations: 8 kB / 0.8964 GB, free: 17.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003589/2.861, allocations: 0.7877 MB / 0.8971 GB, free: 16.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/2.864, allocations: 235.7 kB / 0.8974 GB, free: 16.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007806/2.871, allocations: 6.714 MB / 0.9039 GB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/2.874, allocations: 87.86 kB / 0.904 GB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/2.874, allocations: 63.97 kB / 0.9041 GB, free: 9.055 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.0006331/2.875, allocations: 180.7 kB / 0.9042 GB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004578/2.875, allocations: 134.4 kB / 0.9044 GB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007591/2.883, allocations: 2.561 MB / 0.9069 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/2.883, allocations: 20 kB / 0.9069 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/2.883, allocations: 0 / 0.9069 GB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-05/2.883, allocations: 7.969 kB / 0.9069 GB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/2.895, allocations: 4.164 MB / 0.9109 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-05/2.895, allocations: 0 / 0.9109 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001738/2.897, allocations: 151.8 kB / 0.9111 GB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005808/2.903, allocations: 1.191 MB / 0.9123 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004503/2.903, allocations: 39.97 kB / 0.9123 GB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2889/3.192, allocations: 6.187 MB / 0.9183 GB, free: 60.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/3.192, allocations: 0 / 0.9183 GB, free: 60.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00993/3.202, allocations: 3.536 MB / 0.9218 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/3.204, allocations: 438.4 kB / 0.9222 GB, free: 60.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004804/3.205, allocations: 25.7 kB / 0.9222 GB, free: 60.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002319/3.207, allocations: 92.14 kB / 0.9223 GB, free: 60.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006624/3.208, allocations: 138.9 kB / 0.9225 GB, free: 60.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/3.208, allocations: 58.47 kB / 0.9225 GB, free: 60.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00156/3.209, allocations: 0.7339 MB / 0.9232 GB, free: 60.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.92e-07/3.209, allocations: 0 / 0.9232 GB, free: 60.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00571/3.215, allocations: 1.116 MB / 0.9243 GB, free: 60.09 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.01252/3.228, allocations: 4.829 MB / 0.929 GB, free: 59.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01086/3.239, allocations: 3.491 MB / 0.9324 GB, free: 58.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/3.239, allocations: 3.812 kB / 0.9324 GB, free: 58.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004649/3.243, allocations: 1.291 MB / 0.9337 GB, free: 58.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005013/3.248, allocations: 0.5326 MB / 0.9342 GB, free: 58.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/3.262, allocations: 3.12 MB / 0.9373 GB, free: 57.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/3.263, allocations: 1.295 MB / 0.9385 GB, free: 57.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003967/3.267, allocations: 0.7112 MB / 0.9392 GB, free: 57.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/3.269, allocations: 0.4979 MB / 0.9397 GB, free: 57.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/3.269, allocations: 2.156 kB / 0.9397 GB, free: 57.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1459/3.414, allocations: 54.26 MB / 0.9927 GB, free: 42.71 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/3.415, allocations: 217.5 kB / 0.9929 GB, free: 42.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.243/8.658, allocations: 0 / 0.9929 GB, free: 42.48 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