Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.336e-05/4.348e-05, allocations: 5.562 kB / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1176, allocations: 50.41 MB / 343.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.182/1.3, allocations: 327 MB / 0.6545 GB, free: 30.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/1.3, allocations: 92.31 kB / 0.6546 GB, free: 30.66 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/2.152, allocations: 146.1 MB / 0.7972 GB, free: 62.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/2.152, allocations: 0 / 0.7972 GB, free: 62.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.471e-05/2.152, allocations: 16 kB / 0.7973 GB, free: 62.52 MB / 442.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.003444/2.155, allocations: 1.092 MB / 0.7983 GB, free: 61.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/2.155, allocations: 8.031 kB / 0.7983 GB, free: 61.37 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003053/2.156, allocations: 94.45 kB / 0.7984 GB, free: 61.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006037/2.156, allocations: 94.97 kB / 0.7985 GB, free: 61.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/2.158, allocations: 0.601 MB / 0.7991 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/2.158, allocations: 92.36 kB / 0.7992 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/2.159, allocations: 51.98 kB / 0.7992 GB, free: 60.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/2.161, allocations: 0.8123 MB / 0.8 GB, free: 59.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/2.161, allocations: 0 / 0.8 GB, free: 59.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/2.161, allocations: 27.94 kB / 0.8001 GB, free: 59.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.396e-05/2.161, allocations: 32.98 kB / 0.8001 GB, free: 59.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/2.162, allocations: 0.6617 MB / 0.8007 GB, free: 58.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00738/2.17, allocations: 3.423 MB / 0.8041 GB, free: 55.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/2.171, allocations: 411.3 kB / 0.8045 GB, free: 54.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000584/2.172, allocations: 257.1 kB / 0.8047 GB, free: 54.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00282/2.174, allocations: 1.421 MB / 0.8061 GB, free: 52.94 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007163/2.175, allocations: 361.2 kB / 0.8065 GB, free: 52.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 3.537e-06/2.175, allocations: 0 / 0.8065 GB, free: 52.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.005003/2.18, allocations: 1.582 MB / 0.808 GB, free: 50.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/2.18, allocations: 265 kB / 0.8083 GB, free: 50.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/2.182, allocations: 0.6719 MB / 0.8089 GB, free: 49.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001791/2.182, allocations: 41.69 kB / 0.8089 GB, free: 49.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/2.182, allocations: 399 kB / 0.8093 GB, free: 49.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/2.182, allocations: 138.2 kB / 0.8095 GB, free: 49.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/2.183, allocations: 16 kB / 0.8095 GB, free: 49.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/2.183, allocations: 386.8 kB / 0.8098 GB, free: 48.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006384/2.183, allocations: 261.5 kB / 0.8101 GB, free: 48.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008064/2.184, allocations: 0.4894 MB / 0.8106 GB, free: 48.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/2.185, allocations: 356.1 kB / 0.8109 GB, free: 47.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/2.185, allocations: 0 / 0.8109 GB, free: 47.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002734/2.188, allocations: 0.953 MB / 0.8118 GB, free: 46.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005556/2.188, allocations: 2.476 MB / 0.8143 GB, free: 44.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/2.188, allocations: 8 kB / 0.8143 GB, free: 44.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009272/2.189, allocations: 128.8 kB / 0.8144 GB, free: 43.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/2.19, allocations: 135.8 kB / 0.8145 GB, free: 43.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008009/2.191, allocations: 0.689 MB / 0.8152 GB, free: 43.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/2.193, allocations: 47.97 kB / 0.8152 GB, free: 43.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/2.193, allocations: 32 kB / 0.8153 GB, free: 43.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/2.193, allocations: 4 kB / 0.8153 GB, free: 43.01 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002768/2.196, allocations: 0.9012 MB / 0.8162 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/2.196, allocations: 7.984 kB / 0.8162 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006752/2.196, allocations: 117.1 kB / 0.8163 GB, free: 41.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009875/2.197, allocations: 147.7 kB / 0.8164 GB, free: 41.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006811/2.198, allocations: 0.6539 MB / 0.8171 GB, free: 41.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/2.199, allocations: 51.94 kB / 0.8171 GB, free: 41.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/2.199, allocations: 39.95 kB / 0.8171 GB, free: 41.05 MB / 442.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 = tank.T_start 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: 28 * 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 (78): * Single equations (assignments): 76 * 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.0004295/2.2, allocations: 201.8 kB / 0.8173 GB, free: 40.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/2.2, allocations: 79.06 kB / 0.8174 GB, free: 40.77 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002175/2.202, allocations: 0.7348 MB / 0.8181 GB, free: 40.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/2.202, allocations: 4 kB / 0.8181 GB, free: 40.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/2.202, allocations: 0 / 0.8181 GB, free: 40.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/2.202, allocations: 11.88 kB / 0.8181 GB, free: 40 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/2.206, allocations: 1.463 MB / 0.8196 GB, free: 38.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/2.206, allocations: 0 / 0.8196 GB, free: 38.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000562/2.207, allocations: 59.91 kB / 0.8196 GB, free: 38.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007724/2.207, allocations: 120.8 kB / 0.8197 GB, free: 38.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/2.207, allocations: 19.94 kB / 0.8198 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006891/2.208, allocations: 0.6577 MB / 0.8204 GB, free: 37.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/2.208, allocations: 3.938 kB / 0.8204 GB, free: 37.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/2.211, allocations: 1.099 MB / 0.8215 GB, free: 36.44 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003619/2.211, allocations: 156.2 kB / 0.8216 GB, free: 36.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/2.211, allocations: 12 kB / 0.8216 GB, free: 36.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009412/2.212, allocations: 40.03 kB / 0.8217 GB, free: 36.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/2.212, allocations: 35.94 kB / 0.8217 GB, free: 36.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.328e-05/2.213, allocations: 24.05 kB / 0.8217 GB, free: 36.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001006/2.214, allocations: 0.5265 MB / 0.8222 GB, free: 35.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.214, allocations: 0 / 0.8222 GB, free: 35.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002804/2.216, allocations: 0.5855 MB / 0.8228 GB, free: 35.05 MB / 442.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 (33): * Single equations (assignments): 31 * 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.004445/2.221, allocations: 2.149 MB / 0.8249 GB, free: 32.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003705/2.225, allocations: 1.165 MB / 0.8261 GB, free: 31.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/2.225, allocations: 4 kB / 0.8261 GB, free: 31.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/2.226, allocations: 331.2 kB / 0.8264 GB, free: 31.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/2.229, allocations: 309.6 kB / 0.8267 GB, free: 31.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004808/2.234, allocations: 1.374 MB / 0.828 GB, free: 29.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005389/2.234, allocations: 0.9829 MB / 0.829 GB, free: 28.61 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001944/2.236, allocations: 301.9 kB / 0.8293 GB, free: 28.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005233/2.237, allocations: 255.3 kB / 0.8295 GB, free: 28.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/2.237, allocations: 0 / 0.8295 GB, free: 28.06 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08096/2.318, allocations: 27.43 MB / 0.8563 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002223/2.318, allocations: 230.3 kB / 0.8565 GB, free: 0.6406 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.079/6.397, allocations: 0 / 0.8565 GB, free: 0.6406 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat