Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.185/2.185, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.004e-05/4.014e-05, allocations: 4 kB / 292.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1269, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.59, allocations: 83.26 MB / 426.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5904, allocations: 81.44 kB / 426.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03534/0.6257, allocations: 8.283 MB / 434.8 MB, free: 3.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6258, allocations: 4 kB / 434.8 MB, free: 3.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.107e-05/0.6258, allocations: 8 kB / 434.8 MB, free: 3.652 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001169/0.627, allocations: 0.5835 MB / 435.4 MB, free: 3.047 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.6271, allocations: 8.031 kB / 435.4 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.6272, allocations: 61.66 kB / 435.4 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.6273, allocations: 51.44 kB / 435.5 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007478/0.6281, allocations: 331.9 kB / 435.8 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.6282, allocations: 15.44 kB / 435.8 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.978e-05/0.6282, allocations: 23.75 kB / 435.8 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006422/0.6289, allocations: 298.9 kB / 436.1 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.6289, allocations: 4 kB / 436.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.629, allocations: 7.562 kB / 436.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.629, allocations: 8 kB / 436.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.6294, allocations: 144.8 kB / 436.3 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.6317, allocations: 0.8111 MB / 437.1 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007166/0.6324, allocations: 196.9 kB / 437.3 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.6327, allocations: 82.05 kB / 437.4 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.6327, allocations: 7.984 kB / 437.4 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003536/0.6331, allocations: 135.1 kB / 437.5 MB, free: 1.188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.597e-06/0.6331, allocations: 0 / 437.5 MB, free: 1.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008111/0.6339, allocations: 251.6 kB / 437.8 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/0.6341, allocations: 312.4 kB / 438.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007453/0.6349, allocations: 383.7 kB / 438.4 MB, free: 308 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.549e-05/0.635, allocations: 33.14 kB / 438.5 MB, free: 272 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.6352, allocations: 215.7 kB / 438.7 MB, free: 120 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.6353, allocations: 81.03 kB / 438.8 MB, free: 48 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.6353, allocations: 7.5 kB / 438.8 MB, free: 44 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.6355, allocations: 349.3 kB / 439.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.6357, allocations: 63.25 kB / 439.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.636, allocations: 173.9 kB / 439.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/0.6363, allocations: 90.09 kB / 439.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.6363, allocations: 3.953 kB / 439.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000762/0.6371, allocations: 272.8 kB / 439.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.6372, allocations: 4 kB / 439.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.6372, allocations: 8.094 kB / 439.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.6374, allocations: 35.28 kB / 439.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.6378, allocations: 51.91 kB / 439.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/0.6399, allocations: 1.455 MB / 441.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006037/0.6405, allocations: 25.12 kB / 441.3 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.106e-05/0.6406, allocations: 8 kB / 441.3 MB, free: 13.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002654/0.6409, allocations: 122.9 kB / 441.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.6411, allocations: 39.53 kB / 441.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.6425, allocations: 279.6 kB / 441.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.6426, allocations: 4 kB / 441.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6426, allocations: 0 / 441.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001134/0.6437, allocations: 0.5853 MB / 442.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.6466, allocations: 0.7457 MB / 443.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.6467, allocations: 0 / 443.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007499/0.6474, allocations: 51.05 kB / 443.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.444e-05/0.6475, allocations: 0 / 443.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.6476, allocations: 11.11 kB / 443.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.6476, allocations: 4 kB / 443.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.6476, allocations: 0 / 443.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.6493, allocations: 416.1 kB / 443.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/0.6498, allocations: 149.9 kB / 443.7 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.6499, allocations: 7.438 kB / 443.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.6504, allocations: 11.8 kB / 443.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.6505, allocations: 23.17 kB / 443.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.606e-05/0.6506, allocations: 15.48 kB / 443.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001024/0.6516, allocations: 305.8 kB / 444 MB, free: 11.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.6517, allocations: 4 kB / 444 MB, free: 11.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001184/0.6529, allocations: 113.7 kB / 444.1 MB, free: 11.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002772/0.6557, allocations: 1.263 MB / 445.4 MB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009098/0.6567, allocations: 301.2 kB / 445.7 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6567, allocations: 0 / 445.7 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.6569, allocations: 89.11 kB / 445.8 MB, free: 9.629 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008726/0.6578, allocations: 90.44 kB / 445.9 MB, free: 9.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.66, allocations: 0.6591 MB / 446.5 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.6605, allocations: 0.8038 MB / 447.3 MB, free: 8.098 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003089/0.6608, allocations: 46.94 kB / 447.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/0.6611, allocations: 129.1 kB / 447.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6611, allocations: 0 / 447.5 MB, free: 8.008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05494/0.716, allocations: 9.293 MB / 456.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003609/0.7165, allocations: 240.4 kB / 457 MB, free: 14.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.713, allocations: 4 kB / 457 MB, free: 14.59 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat