Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.085e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.262, allocations: 38.77 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9017/1.164, allocations: 316.9 MB / 0.5672 GB, free: 67.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004099/1.164, allocations: 87.95 kB / 0.5672 GB, free: 67.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.616/2.78, allocations: 321.4 MB / 0.8811 GB, free: 37.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/2.78, allocations: 0 / 0.8811 GB, free: 37.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002437/2.781, allocations: 44.45 kB / 0.8812 GB, free: 37.43 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008265/2.789, allocations: 2.052 MB / 0.8832 GB, free: 35.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/2.789, allocations: 12.03 kB / 0.8832 GB, free: 35.37 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008072/2.79, allocations: 185.4 kB / 0.8834 GB, free: 35.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/2.791, allocations: 201.7 kB / 0.8836 GB, free: 34.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004863/2.796, allocations: 1.246 MB / 0.8848 GB, free: 33.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/2.796, allocations: 102 kB / 0.8849 GB, free: 33.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006414/2.797, allocations: 119.3 kB / 0.885 GB, free: 33.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005195/2.802, allocations: 1.91 MB / 0.8868 GB, free: 31.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.147e-05/2.802, allocations: 7.078 kB / 0.8869 GB, free: 31.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000287/2.802, allocations: 53.55 kB / 0.8869 GB, free: 31.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/2.803, allocations: 114.3 kB / 0.887 GB, free: 31.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005158/2.808, allocations: 1.898 MB / 0.8889 GB, free: 29.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01906/2.827, allocations: 7.616 MB / 0.8963 GB, free: 21.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002919/2.83, allocations: 1.127 MB / 0.8974 GB, free: 20.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/2.832, allocations: 0.7266 MB / 0.8981 GB, free: 19.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007598/2.839, allocations: 3.379 MB / 0.9014 GB, free: 16.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/2.839, allocations: 51.56 kB / 0.9015 GB, free: 15.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.37e-06/2.839, allocations: 0 / 0.9015 GB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01489/2.854, allocations: 4.077 MB / 0.9054 GB, free: 11.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/2.854, allocations: 175.5 kB / 0.9056 GB, free: 11.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/2.857, allocations: 1.154 MB / 0.9067 GB, free: 10.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004498/2.857, allocations: 57.69 kB / 0.9068 GB, free: 10.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005585/2.858, allocations: 0.6967 MB / 0.9075 GB, free: 9.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006105/2.858, allocations: 470.1 kB / 0.9079 GB, free: 9.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/2.858, allocations: 40 kB / 0.908 GB, free: 9.223 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/2.859, allocations: 382.8 kB / 0.9083 GB, free: 8.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/2.86, allocations: 0.7329 MB / 0.909 GB, free: 8.109 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/2.863, allocations: 1.178 MB / 0.9102 GB, free: 6.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002218/2.865, allocations: 0.8646 MB / 0.911 GB, free: 5.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/2.865, allocations: 4 kB / 0.911 GB, free: 5.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006127/2.871, allocations: 2.261 MB / 0.9132 GB, free: 3.594 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.269/3.14, allocations: 5.136 MB / 0.9183 GB, free: 39.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.388e-05/3.14, allocations: 17.42 kB / 0.9183 GB, free: 39.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009939/3.15, allocations: 0.9341 MB / 0.9192 GB, free: 39.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/3.153, allocations: 361.8 kB / 0.9195 GB, free: 39.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/3.157, allocations: 2.876 MB / 0.9223 GB, free: 37.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/3.16, allocations: 139.4 kB / 0.9225 GB, free: 37.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003418/3.16, allocations: 81.92 kB / 0.9226 GB, free: 37.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/3.16, allocations: 3.812 kB / 0.9226 GB, free: 37.16 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005428/3.165, allocations: 2.066 MB / 0.9246 GB, free: 37.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.14e-05/3.166, allocations: 14.06 kB / 0.9246 GB, free: 37.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00718/3.173, allocations: 0.6594 MB / 0.9252 GB, free: 37.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002942/3.176, allocations: 372.4 kB / 0.9256 GB, free: 37.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/3.178, allocations: 2.605 MB / 0.9281 GB, free: 34.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/3.181, allocations: 141.1 kB / 0.9283 GB, free: 34.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003357/3.181, allocations: 79.75 kB / 0.9283 GB, free: 34.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006059/3.182, allocations: 222.5 kB / 0.9286 GB, free: 34.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004983/3.182, allocations: 164.1 kB / 0.9287 GB, free: 34.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006952/3.189, allocations: 2.312 MB / 0.931 GB, free: 34.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-05/3.189, allocations: 21.39 kB / 0.931 GB, free: 34.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/3.189, allocations: 3.875 kB / 0.931 GB, free: 34.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-05/3.189, allocations: 7.406 kB / 0.931 GB, free: 34.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/3.199, allocations: 3.9 MB / 0.9348 GB, free: 34.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/3.2, allocations: 5.219 kB / 0.9348 GB, free: 34.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/3.202, allocations: 245 kB / 0.9351 GB, free: 34.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006622/3.208, allocations: 0.8645 MB / 0.9359 GB, free: 34.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004635/3.209, allocations: 45.69 kB / 0.9359 GB, free: 34.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003153/3.212, allocations: 2.821 MB / 0.9387 GB, free: 32.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/3.212, allocations: 2.719 kB / 0.9387 GB, free: 32.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008157/3.22, allocations: 3.166 MB / 0.9418 GB, free: 31.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007906/3.221, allocations: 264 kB / 0.942 GB, free: 31.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006013/3.222, allocations: 41.98 kB / 0.9421 GB, free: 31.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/3.223, allocations: 107.5 kB / 0.9422 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/3.224, allocations: 147.2 kB / 0.9423 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/3.224, allocations: 57.91 kB / 0.9424 GB, free: 31.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001793/3.226, allocations: 0.8844 MB / 0.9432 GB, free: 31.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.12e-07/3.226, allocations: 0 / 0.9432 GB, free: 31.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005632/3.232, allocations: 1.363 MB / 0.9446 GB, free: 31.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01091/3.243, allocations: 5.259 MB / 0.9497 GB, free: 30.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008798/3.251, allocations: 2.935 MB / 0.9526 GB, free: 30.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/3.251, allocations: 0 / 0.9526 GB, free: 30.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002878/3.254, allocations: 1.036 MB / 0.9536 GB, free: 30.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005537/3.26, allocations: 0.6676 MB / 0.9542 GB, free: 30 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/3.271, allocations: 3.598 MB / 0.9578 GB, free: 29.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/3.272, allocations: 1.426 MB / 0.9591 GB, free: 44.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/3.274, allocations: 0.6621 MB / 0.9598 GB, free: 44.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/3.274, allocations: 2.281 kB / 0.9598 GB, free: 44.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.818/7.092, allocations: 66.33 MB / 1.025 GB, free: 22.41 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat