Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.558/2.558, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.699e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.381, allocations: 44.49 MB / 294.3 MB, free: 14.48 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.363/1.744, allocations: 404.2 MB / 0.6822 GB, free: 48.44 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/1.744, allocations: 83.33 kB / 0.6822 GB, free: 48.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292/3.036, allocations: 208.5 MB / 0.8858 GB, free: 17.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/3.036, allocations: 0 / 0.8858 GB, free: 17.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001975/3.036, allocations: 35.94 kB / 0.8859 GB, free: 17.82 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.009507/3.046, allocations: 1.784 MB / 0.8876 GB, free: 15.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.567e-05/3.046, allocations: 16.02 kB / 0.8876 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/3.048, allocations: 166.2 kB / 0.8878 GB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/3.052, allocations: 0.9919 MB / 0.8888 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003381/3.053, allocations: 198.5 kB / 0.889 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008041/3.054, allocations: 67.89 kB / 0.889 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005917/3.06, allocations: 1.609 MB / 0.8906 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006624/3.066, allocations: 1.642 MB / 0.8922 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.471e-05/3.066, allocations: 4 kB / 0.8922 GB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003442/3.067, allocations: 3.938 kB / 0.8922 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002582/3.067, allocations: 102 kB / 0.8923 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02695/3.094, allocations: 6.566 MB / 0.8987 GB, free: 4.242 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005335/3.099, allocations: 1.391 MB / 0.9001 GB, free: 2.836 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002498/3.102, allocations: 0.8016 MB / 0.9008 GB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3629/3.465, allocations: 3.876 MB / 0.9046 GB, free: 73.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.922e-05/3.465, allocations: 50.83 kB / 0.9047 GB, free: 73.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 7.935e-06/3.465, allocations: 0 / 0.9047 GB, free: 73.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04336/3.508, allocations: 6.464 MB / 0.911 GB, free: 73.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/3.509, allocations: 171.1 kB / 0.9112 GB, free: 73.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/3.51, allocations: 0.6599 MB / 0.9118 GB, free: 72.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000519/3.511, allocations: 28.45 kB / 0.9118 GB, free: 72.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006142/3.511, allocations: 0.5388 MB / 0.9124 GB, free: 72.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008661/3.512, allocations: 393.9 kB / 0.9127 GB, free: 72.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/3.512, allocations: 0 / 0.9127 GB, free: 72.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/3.513, allocations: 360.2 kB / 0.9131 GB, free: 72.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/3.515, allocations: 0.728 MB / 0.9138 GB, free: 72.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/3.518, allocations: 0.9829 MB / 0.9147 GB, free: 71.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02007/3.538, allocations: 2.363 MB / 0.9171 GB, free: 71.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.199e-05/3.538, allocations: 3.938 kB / 0.9171 GB, free: 71.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.02592/3.564, allocations: 3.862 MB / 0.9208 GB, free: 71.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005788/3.565, allocations: 2.359 MB / 0.9231 GB, free: 69.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.253e-05/3.565, allocations: 6.438 kB / 0.9231 GB, free: 69.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004634/3.569, allocations: 0.998 MB / 0.9241 GB, free: 69.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/3.572, allocations: 221.8 kB / 0.9243 GB, free: 69.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/3.586, allocations: 6.606 MB / 0.9308 GB, free: 65.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002947/3.589, allocations: 73.47 kB / 0.9308 GB, free: 65.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005226/3.589, allocations: 59.61 kB / 0.9309 GB, free: 65.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/3.589, allocations: 6.219 kB / 0.9309 GB, free: 65.17 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02053/3.61, allocations: 3.022 MB / 0.9339 GB, free: 65.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.769e-05/3.61, allocations: 7.812 kB / 0.9339 GB, free: 65.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003469/3.613, allocations: 0.7171 MB / 0.9346 GB, free: 65.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/3.616, allocations: 228.5 kB / 0.9348 GB, free: 65.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009174/3.625, allocations: 6.584 MB / 0.9412 GB, free: 60.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002601/3.628, allocations: 71.91 kB / 0.9413 GB, free: 60.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005252/3.628, allocations: 57.94 kB / 0.9413 GB, free: 60.17 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.0007292/3.629, allocations: 132.5 kB / 0.9415 GB, free: 60.06 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01392/3.643, allocations: 2.658 MB / 0.9441 GB, free: 59.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008689/3.644, allocations: 110.8 kB / 0.9442 GB, free: 59.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/3.659, allocations: 3.068 MB / 0.9472 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.597e-05/3.66, allocations: 22.61 kB / 0.9472 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/3.66, allocations: 3.469 kB / 0.9472 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-05/3.66, allocations: 10.92 kB / 0.9472 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/3.68, allocations: 4.531 MB / 0.9516 GB, free: 59.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/3.68, allocations: 0 / 0.9516 GB, free: 59.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/3.682, allocations: 150.4 kB / 0.9518 GB, free: 59.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004749/3.687, allocations: 1.019 MB / 0.9528 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000515/3.687, allocations: 18.28 kB / 0.9528 GB, free: 59.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01477/3.702, allocations: 6.585 MB / 0.9592 GB, free: 55.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/3.702, allocations: 0 / 0.9592 GB, free: 55.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/3.721, allocations: 4.049 MB / 0.9632 GB, free: 54.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/3.723, allocations: 402.5 kB / 0.9635 GB, free: 54.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000797/3.723, allocations: 5.812 kB / 0.9636 GB, free: 54.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002955/3.726, allocations: 71.69 kB / 0.9636 GB, free: 54.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009882/3.727, allocations: 140.7 kB / 0.9638 GB, free: 54.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004089/3.728, allocations: 53.22 kB / 0.9638 GB, free: 54.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001257/3.729, allocations: 498.7 kB / 0.9643 GB, free: 54.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.41e-07/3.729, allocations: 3.75 kB / 0.9643 GB, free: 54.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007777/3.737, allocations: 1.047 MB / 0.9653 GB, free: 54.63 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.02263/3.76, allocations: 5.295 MB / 0.9705 GB, free: 53.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01239/3.772, allocations: 3.42 MB / 0.9738 GB, free: 53.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/3.772, allocations: 3.812 kB / 0.9738 GB, free: 53.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005477/3.778, allocations: 1.269 MB / 0.9751 GB, free: 53.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005709/3.783, allocations: 494.7 kB / 0.9755 GB, free: 53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/3.799, allocations: 2.961 MB / 0.9784 GB, free: 52.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/3.801, allocations: 1.298 MB / 0.9797 GB, free: 51.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004317/3.805, allocations: 0.5759 MB / 0.9803 GB, free: 51.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/3.807, allocations: 0.4927 MB / 0.9807 GB, free: 51.74 MB / 410.7 MB Notification: Performance of SimCode: time 1.784e-06/3.807, allocations: 0 / 0.9807 GB, free: 51.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1671/3.974, allocations: 48.83 MB / 1.028 GB, free: 28.43 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002131/3.974, allocations: 176.8 kB / 1.029 GB, free: 28.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.515/10.49, allocations: 0 / 1.029 GB, free: 28.23 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat