Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.643e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2674, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.967/1.234, allocations: 310.4 MB / 0.5554 GB, free: 83.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/1.235, allocations: 78.14 kB / 0.5555 GB, free: 83.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7499/1.985, allocations: 129.3 MB / 0.6818 GB, free: 95.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.985, allocations: 0 / 0.6818 GB, free: 95.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.911e-05/1.985, allocations: 19.73 kB / 0.6818 GB, free: 95.7 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003539/1.989, allocations: 1.08 MB / 0.6829 GB, free: 95.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/1.989, allocations: 10.75 kB / 0.6829 GB, free: 95.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005566/1.989, allocations: 98.03 kB / 0.683 GB, free: 95.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/1.991, allocations: 0.6541 MB / 0.6836 GB, free: 94.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/1.991, allocations: 95.02 kB / 0.6837 GB, free: 94.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/1.991, allocations: 29.56 kB / 0.6837 GB, free: 94.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001911/1.993, allocations: 0.7437 MB / 0.6845 GB, free: 94.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/1.995, allocations: 0.8139 MB / 0.6853 GB, free: 94.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/1.995, allocations: 2.844 kB / 0.6853 GB, free: 94.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/1.995, allocations: 0 / 0.6853 GB, free: 94.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/1.996, allocations: 49.16 kB / 0.6853 GB, free: 94.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008307/2.004, allocations: 3.16 MB / 0.6884 GB, free: 92.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/2.005, allocations: 0.6208 MB / 0.689 GB, free: 92.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007126/2.006, allocations: 350.7 kB / 0.6893 GB, free: 92.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004258/2.01, allocations: 2.026 MB / 0.6913 GB, free: 91.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/2.01, allocations: 52.16 kB / 0.6914 GB, free: 91.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.116e-06/2.01, allocations: 0 / 0.6914 GB, free: 91.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.01093/2.021, allocations: 2.477 MB / 0.6938 GB, free: 90.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/2.021, allocations: 81.58 kB / 0.6939 GB, free: 90.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007553/2.022, allocations: 451.9 kB / 0.6943 GB, free: 89.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/2.022, allocations: 29.58 kB / 0.6943 GB, free: 89.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/2.022, allocations: 378.4 kB / 0.6947 GB, free: 89.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/2.023, allocations: 220.9 kB / 0.6949 GB, free: 89.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.801e-05/2.023, allocations: 3.781 kB / 0.6949 GB, free: 89.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/2.023, allocations: 339.9 kB / 0.6952 GB, free: 88.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007523/2.024, allocations: 341 kB / 0.6955 GB, free: 88.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008581/2.025, allocations: 490.6 kB / 0.696 GB, free: 88.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007107/2.032, allocations: 0.997 MB / 0.697 GB, free: 88.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.152e-05/2.032, allocations: 3.609 kB / 0.697 GB, free: 88.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.009312/2.041, allocations: 1.64 MB / 0.6986 GB, free: 87.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003633/2.041, allocations: 1.569 MB / 0.7001 GB, free: 86.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/2.041, allocations: 7.875 kB / 0.7001 GB, free: 86.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/2.043, allocations: 375.2 kB / 0.7005 GB, free: 86.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/2.044, allocations: 165.3 kB / 0.7006 GB, free: 86.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00305/2.047, allocations: 1.223 MB / 0.7018 GB, free: 85.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/2.048, allocations: 31.97 kB / 0.7019 GB, free: 85.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/2.049, allocations: 40.3 kB / 0.7019 GB, free: 85.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/2.049, allocations: 3.625 kB / 0.7019 GB, free: 85.37 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00723/2.056, allocations: 1.302 MB / 0.7032 GB, free: 85.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/2.056, allocations: 7.094 kB / 0.7032 GB, free: 85.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008836/2.057, allocations: 235.4 kB / 0.7034 GB, free: 84.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/2.058, allocations: 172.3 kB / 0.7036 GB, free: 84.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/2.059, allocations: 0.8198 MB / 0.7044 GB, free: 84.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008406/2.06, allocations: 35.44 kB / 0.7044 GB, free: 84.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-05/2.06, allocations: 33.56 kB / 0.7044 GB, free: 84.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003452/2.06, allocations: 124.5 kB / 0.7046 GB, free: 84.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004069/2.065, allocations: 1.055 MB / 0.7056 GB, free: 83.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/2.065, allocations: 68.16 kB / 0.7057 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004644/2.069, allocations: 1.186 MB / 0.7068 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/2.069, allocations: 7.062 kB / 0.7068 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/2.07, allocations: 2.719 kB / 0.7068 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/2.07, allocations: 3.656 kB / 0.7068 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006436/2.076, allocations: 2.026 MB / 0.7088 GB, free: 82.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/2.076, allocations: 2.531 kB / 0.7088 GB, free: 82.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/2.077, allocations: 118.1 kB / 0.7089 GB, free: 82.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/2.078, allocations: 366.8 kB / 0.7093 GB, free: 81.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/2.079, allocations: 15.75 kB / 0.7093 GB, free: 81.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/2.082, allocations: 1.208 MB / 0.7105 GB, free: 80.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/2.082, allocations: 4 kB / 0.7105 GB, free: 80.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005273/2.087, allocations: 1.677 MB / 0.7121 GB, free: 79.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007077/2.088, allocations: 235.6 kB / 0.7123 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/2.088, allocations: 11.41 kB / 0.7124 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/2.089, allocations: 38.69 kB / 0.7124 GB, free: 78.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/2.089, allocations: 61.58 kB / 0.7124 GB, free: 78.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/2.089, allocations: 27.06 kB / 0.7125 GB, free: 78.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000567/2.09, allocations: 344.1 kB / 0.7128 GB, free: 78.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.09, allocations: 3.938 kB / 0.7128 GB, free: 78.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002504/2.093, allocations: 0.5854 MB / 0.7134 GB, free: 77.99 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007349/2.1, allocations: 2.716 MB / 0.716 GB, free: 75.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003743/2.104, allocations: 1.274 MB / 0.7173 GB, free: 74.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/2.104, allocations: 4.188 kB / 0.7173 GB, free: 74.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/2.105, allocations: 444.2 kB / 0.7177 GB, free: 73.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/2.108, allocations: 309.2 kB / 0.718 GB, free: 73.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006289/2.115, allocations: 1.643 MB / 0.7196 GB, free: 71.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/2.115, allocations: 1.003 MB / 0.7206 GB, free: 70.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007853/2.116, allocations: 299.2 kB / 0.7209 GB, free: 70.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/2.116, allocations: 0 / 0.7209 GB, free: 70.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.164/5.28, allocations: 21.89 MB / 0.7422 GB, free: 48.53 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat