Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.441/2.441, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.738e-05, allocations: 3.688 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.238/1.351, allocations: 315.9 MB / 0.5959 GB, free: 69.65 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/1.351, allocations: 79.64 kB / 0.596 GB, free: 69.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064/3.415, allocations: 265.1 MB / 0.8549 GB, free: 63.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.465e-06/3.415, allocations: 0 / 0.8549 GB, free: 63.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002185/3.415, allocations: 34.5 kB / 0.8549 GB, free: 63.45 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.009662/3.425, allocations: 1.812 MB / 0.8567 GB, free: 62.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/3.425, allocations: 11.56 kB / 0.8567 GB, free: 62.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001515/3.426, allocations: 170.7 kB / 0.8568 GB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004904/3.431, allocations: 1.115 MB / 0.8579 GB, free: 62.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/3.432, allocations: 135.9 kB / 0.8581 GB, free: 62.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004141/3.432, allocations: 62.73 kB / 0.8581 GB, free: 62.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004908/3.437, allocations: 1.596 MB / 0.8597 GB, free: 62.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004854/3.442, allocations: 1.603 MB / 0.8612 GB, free: 62.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/3.442, allocations: 6.094 kB / 0.8612 GB, free: 62.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/3.442, allocations: 7.172 kB / 0.8612 GB, free: 62.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00031/3.443, allocations: 113.6 kB / 0.8614 GB, free: 62.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02169/3.464, allocations: 6.142 MB / 0.8674 GB, free: 60.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/3.467, allocations: 1.129 MB / 0.8685 GB, free: 60.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001999/3.47, allocations: 0.685 MB / 0.8691 GB, free: 60.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01053/3.48, allocations: 4.2 MB / 0.8732 GB, free: 57.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/3.48, allocations: 42.22 kB / 0.8733 GB, free: 57.66 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001898/3.482, allocations: 167.4 kB / 0.8734 GB, free: 57.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 6.352e-06/3.482, allocations: 3.75 kB / 0.8734 GB, free: 57.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.02389/3.506, allocations: 4.135 MB / 0.8775 GB, free: 57.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/3.506, allocations: 142.4 kB / 0.8776 GB, free: 56.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/3.508, allocations: 0.8184 MB / 0.8784 GB, free: 56.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003627/3.508, allocations: 29.33 kB / 0.8784 GB, free: 56.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005616/3.509, allocations: 0.6091 MB / 0.879 GB, free: 56.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005249/3.51, allocations: 375 kB / 0.8794 GB, free: 56.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/3.51, allocations: 3.219 kB / 0.8794 GB, free: 56.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/3.51, allocations: 367.2 kB / 0.8797 GB, free: 55.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/3.512, allocations: 0.608 MB / 0.8803 GB, free: 55.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002002/3.514, allocations: 0.9328 MB / 0.8812 GB, free: 55.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0225/3.536, allocations: 2.315 MB / 0.8835 GB, free: 55.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.703e-05/3.536, allocations: 5.875 kB / 0.8835 GB, free: 55.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02728/3.564, allocations: 3.563 MB / 0.887 GB, free: 55.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009191/3.565, allocations: 3.494 MB / 0.8904 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/3.565, allocations: 8.406 kB / 0.8904 GB, free: 51.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01382/3.579, allocations: 1.081 MB / 0.8915 GB, free: 51.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/3.582, allocations: 296.9 kB / 0.8917 GB, free: 51.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007852/3.59, allocations: 1.899 MB / 0.8936 GB, free: 51.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003079/3.593, allocations: 55.36 kB / 0.8937 GB, free: 51.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003604/3.593, allocations: 69.92 kB / 0.8937 GB, free: 51.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/3.593, allocations: 3.656 kB / 0.8937 GB, free: 51.19 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02307/3.616, allocations: 2.967 MB / 0.8966 GB, free: 51.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.39e-05/3.616, allocations: 7 kB / 0.8966 GB, free: 51.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01298/3.629, allocations: 0.9175 MB / 0.8975 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/3.632, allocations: 309.4 kB / 0.8978 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002935/3.635, allocations: 1.281 MB / 0.8991 GB, free: 50.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/3.638, allocations: 57.75 kB / 0.8991 GB, free: 50.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002506/3.638, allocations: 66.62 kB / 0.8992 GB, free: 50.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0006542/3.639, allocations: 147.7 kB / 0.8993 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008776/3.648, allocations: 1.812 MB / 0.9011 GB, free: 50.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005783/3.648, allocations: 129.8 kB / 0.9012 GB, free: 50.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/3.659, allocations: 2.133 MB / 0.9033 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/3.659, allocations: 14.91 kB / 0.9033 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/3.659, allocations: 0 / 0.9033 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/3.659, allocations: 6.797 kB / 0.9033 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01311/3.672, allocations: 3.45 MB / 0.9067 GB, free: 49.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/3.672, allocations: 0 / 0.9067 GB, free: 49.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/3.674, allocations: 191.7 kB / 0.9069 GB, free: 49.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005921/3.68, allocations: 0.8003 MB / 0.9077 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/3.681, allocations: 17.39 kB / 0.9077 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006538/3.687, allocations: 1.883 MB / 0.9095 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/3.687, allocations: 0 / 0.9095 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/3.698, allocations: 2.88 MB / 0.9123 GB, free: 49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/3.699, allocations: 377.2 kB / 0.9127 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004457/3.7, allocations: 0 / 0.9127 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/3.702, allocations: 70.2 kB / 0.9128 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003744/3.702, allocations: 97.69 kB / 0.9128 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002041/3.702, allocations: 55.2 kB / 0.9129 GB, free: 48.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001275/3.704, allocations: 0.5963 MB / 0.9135 GB, free: 48.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/3.704, allocations: 0 / 0.9135 GB, free: 48.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005219/3.709, allocations: 1.156 MB / 0.9146 GB, free: 48.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01526/3.724, allocations: 4.369 MB / 0.9189 GB, free: 47.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009983/3.734, allocations: 2.423 MB / 0.9212 GB, free: 47.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/3.734, allocations: 5.406 kB / 0.9213 GB, free: 47.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003607/3.738, allocations: 0.7899 MB / 0.922 GB, free: 47.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0058/3.744, allocations: 0.517 MB / 0.9225 GB, free: 47.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/3.757, allocations: 2.949 MB / 0.9254 GB, free: 46.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/3.758, allocations: 1.318 MB / 0.9267 GB, free: 45.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004673/3.763, allocations: 0.5748 MB / 0.9273 GB, free: 45.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/3.764, allocations: 0.5199 MB / 0.9278 GB, free: 45.88 MB / 410.7 MB Notification: Performance of SimCode: time 2.134e-06/3.764, allocations: 0 / 0.9278 GB, free: 45.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1685/3.933, allocations: 49.74 MB / 0.9763 GB, free: 12.99 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003562/3.933, allocations: 131.3 kB / 0.9765 GB, free: 12.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.055/9.988, allocations: 4.031 kB / 0.9765 GB, free: 12.79 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat