Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.223/2.223, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.391e-05, allocations: 4 kB / 292.7 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1185, allocations: 50.41 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.15/1.268, allocations: 321.9 MB / 0.6495 GB, free: 34.18 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/1.268, allocations: 78.22 kB / 0.6495 GB, free: 34.14 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.586/2.855, allocations: 274.5 MB / 0.9176 GB, free: 75.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.683e-06/2.855, allocations: 0 / 0.9176 GB, free: 75.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001432/2.855, allocations: 38.2 kB / 0.9176 GB, free: 75.55 MB / 458.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.00725/2.862, allocations: 1.816 MB / 0.9194 GB, free: 74.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/2.862, allocations: 11.72 kB / 0.9194 GB, free: 74.74 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004157/2.863, allocations: 167 kB / 0.9196 GB, free: 74.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008366/2.863, allocations: 167.9 kB / 0.9197 GB, free: 74.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003598/2.867, allocations: 1.126 MB / 0.9208 GB, free: 74.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/2.867, allocations: 174.2 kB / 0.921 GB, free: 74.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/2.868, allocations: 99.23 kB / 0.9211 GB, free: 74.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004078/2.872, allocations: 1.725 MB / 0.9228 GB, free: 74.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/2.872, allocations: 5.75 kB / 0.9228 GB, free: 74.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002322/2.872, allocations: 47.44 kB / 0.9228 GB, free: 74.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/2.872, allocations: 108.5 kB / 0.9229 GB, free: 74.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004088/2.876, allocations: 1.728 MB / 0.9246 GB, free: 74.01 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01679/2.893, allocations: 6.371 MB / 0.9308 GB, free: 72.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/2.896, allocations: 1.143 MB / 0.932 GB, free: 71.99 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/2.898, allocations: 0.6997 MB / 0.9326 GB, free: 71.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008936/2.907, allocations: 4.272 MB / 0.9368 GB, free: 69.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.823e-05/2.907, allocations: 45.41 kB / 0.9369 GB, free: 69.59 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001786/2.909, allocations: 215.5 kB / 0.9371 GB, free: 69.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 5.931e-06/2.909, allocations: 0 / 0.9371 GB, free: 69.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.0138/2.923, allocations: 3.776 MB / 0.9407 GB, free: 68.97 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/2.923, allocations: 142.5 kB / 0.9409 GB, free: 68.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/2.925, allocations: 1.084 MB / 0.9419 GB, free: 68.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/2.925, allocations: 51.36 kB / 0.942 GB, free: 68.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005483/2.926, allocations: 0.6014 MB / 0.9426 GB, free: 68.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005199/2.926, allocations: 385.1 kB / 0.9429 GB, free: 68.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/2.927, allocations: 35.41 kB / 0.943 GB, free: 68.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/2.927, allocations: 357.3 kB / 0.9433 GB, free: 67.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/2.928, allocations: 0.6252 MB / 0.9439 GB, free: 67.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/2.93, allocations: 0.9458 MB / 0.9449 GB, free: 67.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/2.932, allocations: 0.7514 MB / 0.9456 GB, free: 67.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/2.932, allocations: 3.938 kB / 0.9456 GB, free: 67.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005516/2.938, allocations: 2.047 MB / 0.9476 GB, free: 67.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008074/2.938, allocations: 3.515 MB / 0.951 GB, free: 63.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/2.939, allocations: 14.09 kB / 0.951 GB, free: 63.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/2.951, allocations: 1.208 MB / 0.9522 GB, free: 63.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002489/2.954, allocations: 291.8 kB / 0.9525 GB, free: 63.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003651/2.958, allocations: 1.533 MB / 0.954 GB, free: 63.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/2.96, allocations: 85.09 kB / 0.9541 GB, free: 63.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/2.961, allocations: 71.61 kB / 0.9541 GB, free: 63.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/2.961, allocations: 3.781 kB / 0.9541 GB, free: 63.11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004921/2.966, allocations: 1.829 MB / 0.9559 GB, free: 63.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.803e-05/2.966, allocations: 9.875 kB / 0.9559 GB, free: 63.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01142/2.977, allocations: 1.058 MB / 0.957 GB, free: 63.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002478/2.98, allocations: 300.5 kB / 0.9573 GB, free: 63.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/2.983, allocations: 1.363 MB / 0.9586 GB, free: 62.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002547/2.985, allocations: 97.08 kB / 0.9587 GB, free: 62.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/2.986, allocations: 63.61 kB / 0.9587 GB, free: 62.52 MB / 458.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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005949/2.986, allocations: 190.8 kB / 0.9589 GB, free: 62.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/2.987, allocations: 149 kB / 0.9591 GB, free: 62.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006178/2.993, allocations: 1.991 MB / 0.961 GB, free: 62.22 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/2.993, allocations: 12.62 kB / 0.961 GB, free: 62.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/2.993, allocations: 0 / 0.961 GB, free: 62.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/2.993, allocations: 9.859 kB / 0.961 GB, free: 62.22 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008683/3.002, allocations: 3.41 MB / 0.9644 GB, free: 61.85 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/3.002, allocations: 0 / 0.9644 GB, free: 61.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/3.004, allocations: 195.2 kB / 0.9645 GB, free: 61.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006644/3.011, allocations: 0.9376 MB / 0.9655 GB, free: 61.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003154/3.011, allocations: 29.38 kB / 0.9655 GB, free: 61.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/3.014, allocations: 1.558 MB / 0.967 GB, free: 61.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/3.014, allocations: 0 / 0.967 GB, free: 61.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006784/3.021, allocations: 2.709 MB / 0.9697 GB, free: 61.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/3.022, allocations: 403.4 kB / 0.97 GB, free: 60.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003918/3.023, allocations: 24.94 kB / 0.9701 GB, free: 60.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/3.025, allocations: 93.58 kB / 0.9702 GB, free: 60.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002946/3.025, allocations: 100.2 kB / 0.9703 GB, free: 60.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001779/3.025, allocations: 48.91 kB / 0.9703 GB, free: 60.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001651/3.027, allocations: 0.8264 MB / 0.9711 GB, free: 60.72 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/3.027, allocations: 3.938 kB / 0.9711 GB, free: 60.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005053/3.032, allocations: 1.247 MB / 0.9723 GB, free: 60.51 MB / 458.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.00978/3.042, allocations: 4.253 MB / 0.9765 GB, free: 59.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00986/3.052, allocations: 2.568 MB / 0.979 GB, free: 58.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/3.052, allocations: 7.5 kB / 0.979 GB, free: 58.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003025/3.055, allocations: 0.8128 MB / 0.9798 GB, free: 58.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005304/3.06, allocations: 0.61 MB / 0.9804 GB, free: 58.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/3.072, allocations: 3.077 MB / 0.9834 GB, free: 57.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009209/3.072, allocations: 1.327 MB / 0.9847 GB, free: 56.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004087/3.077, allocations: 0.6773 MB / 0.9853 GB, free: 56.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/3.078, allocations: 0.5265 MB / 0.9859 GB, free: 56.18 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/3.078, allocations: 0 / 0.9859 GB, free: 56.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1396/3.217, allocations: 56.72 MB / 1.041 GB, free: 16.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/3.218, allocations: 183.6 kB / 1.041 GB, free: 15.96 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.277/8.495, allocations: 0 / 1.041 GB, free: 15.96 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat