Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.676/2.676, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.831e-05, allocations: 4.438 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.211/1.323, allocations: 320.8 MB / 0.6006 GB, free: 64.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003673/1.323, allocations: 92.39 kB / 0.6007 GB, free: 64.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9364/2.26, allocations: 140.5 MB / 0.7379 GB, free: 100.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.244e-06/2.26, allocations: 0 / 0.7379 GB, free: 100.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000102/2.26, allocations: 20 kB / 0.7379 GB, free: 100.7 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003948/2.264, allocations: 1.081 MB / 0.739 GB, free: 99.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/2.264, allocations: 8.031 kB / 0.739 GB, free: 99.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008015/2.265, allocations: 102.9 kB / 0.7391 GB, free: 99.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/2.267, allocations: 0.6396 MB / 0.7397 GB, free: 98.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/2.267, allocations: 72.72 kB / 0.7398 GB, free: 98.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/2.268, allocations: 32 kB / 0.7398 GB, free: 98.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001721/2.269, allocations: 0.5961 MB / 0.7404 GB, free: 98.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/2.271, allocations: 0.7256 MB / 0.7411 GB, free: 97.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/2.271, allocations: 3.938 kB / 0.7411 GB, free: 97.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/2.271, allocations: 4 kB / 0.7411 GB, free: 97.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/2.272, allocations: 37.3 kB / 0.7411 GB, free: 97.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008221/2.28, allocations: 3.321 MB / 0.7444 GB, free: 93.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/2.281, allocations: 379.5 kB / 0.7447 GB, free: 93.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/2.281, allocations: 233.1 kB / 0.745 GB, free: 93.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002932/2.284, allocations: 1.328 MB / 0.7463 GB, free: 91.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006517/2.285, allocations: 280.9 kB / 0.7465 GB, free: 91.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.887e-06/2.285, allocations: 0 / 0.7465 GB, free: 91.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.005341/2.29, allocations: 1.308 MB / 0.7478 GB, free: 90.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/2.291, allocations: 162.5 kB / 0.748 GB, free: 89.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/2.292, allocations: 0.5385 MB / 0.7485 GB, free: 89.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/2.292, allocations: 29.7 kB / 0.7485 GB, free: 89.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003909/2.292, allocations: 427 kB / 0.7489 GB, free: 88.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/2.292, allocations: 134.1 kB / 0.749 GB, free: 88.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/2.293, allocations: 0 / 0.749 GB, free: 88.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/2.293, allocations: 386.8 kB / 0.7494 GB, free: 88.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/2.293, allocations: 233.5 kB / 0.7496 GB, free: 88.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008228/2.294, allocations: 0.5083 MB / 0.7501 GB, free: 87.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006875/2.301, allocations: 0.7586 MB / 0.7509 GB, free: 86.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/2.301, allocations: 4 kB / 0.7509 GB, free: 86.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.009029/2.31, allocations: 1.281 MB / 0.7521 GB, free: 85.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008652/2.311, allocations: 3.523 MB / 0.7556 GB, free: 81.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.548e-05/2.311, allocations: 8 kB / 0.7556 GB, free: 81.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007791/2.312, allocations: 112.8 kB / 0.7557 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/2.313, allocations: 147.8 kB / 0.7558 GB, free: 81.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/2.314, allocations: 0.7006 MB / 0.7565 GB, free: 80.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/2.316, allocations: 36.03 kB / 0.7565 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/2.316, allocations: 40 kB / 0.7566 GB, free: 80.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/2.316, allocations: 4 kB / 0.7566 GB, free: 80.54 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009042/2.325, allocations: 1.19 MB / 0.7577 GB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.11e-05/2.325, allocations: 8 kB / 0.7578 GB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006899/2.326, allocations: 113.2 kB / 0.7579 GB, free: 79.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/2.327, allocations: 143.8 kB / 0.758 GB, free: 79.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008707/2.328, allocations: 0.6693 MB / 0.7587 GB, free: 78.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/2.329, allocations: 35.98 kB / 0.7587 GB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/2.329, allocations: 43.98 kB / 0.7587 GB, free: 78.31 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004984/2.33, allocations: 179.9 kB / 0.7589 GB, free: 78.12 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002323/2.332, allocations: 0.5394 MB / 0.7594 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/2.332, allocations: 79.02 kB / 0.7595 GB, free: 77.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002649/2.335, allocations: 0.5924 MB / 0.7601 GB, free: 76.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/2.335, allocations: 4 kB / 0.7601 GB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/2.335, allocations: 4 kB / 0.7601 GB, free: 76.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/2.335, allocations: 7.922 kB / 0.7601 GB, free: 76.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004017/2.339, allocations: 1.228 MB / 0.7613 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/2.339, allocations: 0 / 0.7613 GB, free: 75.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/2.34, allocations: 59.91 kB / 0.7614 GB, free: 75.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006577/2.341, allocations: 96.81 kB / 0.7614 GB, free: 75.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/2.341, allocations: 12 kB / 0.7615 GB, free: 75.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/2.342, allocations: 0.6772 MB / 0.7621 GB, free: 74.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/2.342, allocations: 0 / 0.7621 GB, free: 74.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/2.345, allocations: 0.9412 MB / 0.763 GB, free: 73.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/2.345, allocations: 144.1 kB / 0.7632 GB, free: 73.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/2.345, allocations: 15.98 kB / 0.7632 GB, free: 73.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008935/2.346, allocations: 19.98 kB / 0.7632 GB, free: 73.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/2.346, allocations: 39.89 kB / 0.7632 GB, free: 73.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-05/2.347, allocations: 23.98 kB / 0.7633 GB, free: 73.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008297/2.347, allocations: 411.1 kB / 0.7637 GB, free: 73.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.347, allocations: 0 / 0.7637 GB, free: 73.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003122/2.351, allocations: 0.5152 MB / 0.7642 GB, free: 72.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005/2.356, allocations: 1.979 MB / 0.7661 GB, free: 70.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003264/2.359, allocations: 1.081 MB / 0.7672 GB, free: 69.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/2.359, allocations: 6.375 kB / 0.7672 GB, free: 69.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008666/2.36, allocations: 311.8 kB / 0.7675 GB, free: 69.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/2.362, allocations: 230.3 kB / 0.7677 GB, free: 68.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/2.368, allocations: 1.352 MB / 0.769 GB, free: 67.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006563/2.369, allocations: 0.982 MB / 0.77 GB, free: 66.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002238/2.371, allocations: 269.2 kB / 0.7702 GB, free: 66.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005821/2.371, allocations: 251.3 kB / 0.7705 GB, free: 66.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.783e-06/2.371, allocations: 0 / 0.7705 GB, free: 66.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1724/2.544, allocations: 21.68 MB / 0.7916 GB, free: 44.42 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003006/2.544, allocations: 185.6 kB / 0.7918 GB, free: 44.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.441/6.985, allocations: 0 / 0.7918 GB, free: 44.22 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat