Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.701/2.701, allocations: 195 MB / 202.9 MB, free: 13.74 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.95e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4021, allocations: 44.51 MB / 294.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.5938, allocations: 75.57 MB / 369.9 MB, free: 6.234 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.5941, allocations: 71.97 kB / 369.9 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05582/0.65, allocations: 9.35 MB / 379.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6501, allocations: 0 / 379.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.432e-05/0.6501, allocations: 8 kB / 379.3 MB, free: 12.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002263/0.6524, allocations: 0.7182 MB / 380 MB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/0.6525, allocations: 8.031 kB / 380 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.6528, allocations: 63.34 kB / 380.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.654, allocations: 396.2 kB / 380.5 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.6542, allocations: 42.48 kB / 380.5 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.6543, allocations: 24 kB / 380.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009681/0.6553, allocations: 253.5 kB / 380.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.6564, allocations: 393.3 kB / 381.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.6564, allocations: 0 / 381.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.994e-05/0.6565, allocations: 0 / 381.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.6566, allocations: 15.94 kB / 381.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004002/0.6606, allocations: 1.183 MB / 382.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009693/0.6616, allocations: 356.7 kB / 382.7 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004542/0.6621, allocations: 133.5 kB / 382.8 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.766e-05/0.6622, allocations: 7.984 kB / 382.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/0.6622, allocations: 46.56 kB / 382.9 MB, free: 8.895 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 4.278e-06/0.6622, allocations: 0 / 382.9 MB, free: 8.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001463/0.6637, allocations: 347.1 kB / 383.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002716/0.664, allocations: 448.9 kB / 383.7 MB, free: 8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008101/0.6648, allocations: 345.2 kB / 384 MB, free: 7.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.612e-05/0.6649, allocations: 25.7 kB / 384 MB, free: 7.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.6653, allocations: 240.5 kB / 384.3 MB, free: 7.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.6655, allocations: 122.1 kB / 384.4 MB, free: 7.262 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.6655, allocations: 4 kB / 384.4 MB, free: 7.258 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.6657, allocations: 350.8 kB / 384.7 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.6661, allocations: 96 kB / 384.8 MB, free: 6.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.6667, allocations: 238.3 kB / 385.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004471/0.6671, allocations: 124.4 kB / 385.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.6672, allocations: 4 kB / 385.2 MB, free: 6.406 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001434/0.6686, allocations: 386.7 kB / 385.6 MB, free: 6.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.6687, allocations: 29.7 kB / 385.6 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.6687, allocations: 3.984 kB / 385.6 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000442/0.6692, allocations: 53.69 kB / 385.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009652/0.6702, allocations: 95.91 kB / 385.7 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003656/0.6738, allocations: 2.63 MB / 388.4 MB, free: 2.965 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008324/0.6747, allocations: 59.8 kB / 388.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.6748, allocations: 8 kB / 388.4 MB, free: 2.898 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003032/0.6751, allocations: 129.1 kB / 388.6 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001239/0.6764, allocations: 342.9 kB / 388.9 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.6765, allocations: 47.48 kB / 388.9 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000229/0.6768, allocations: 52.84 kB / 389 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.6768, allocations: 4 kB / 389 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6768, allocations: 0 / 389 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00104/0.6779, allocations: 0.6415 MB / 389.6 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002315/0.6802, allocations: 0.8845 MB / 390.5 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.6802, allocations: 0 / 390.5 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.6813, allocations: 91.88 kB / 390.6 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/0.6813, allocations: 7.984 kB / 390.6 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.6814, allocations: 7.938 kB / 390.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.6814, allocations: 8 kB / 390.6 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6814, allocations: 4 kB / 390.6 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.6829, allocations: 0.5342 MB / 391.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.6831, allocations: 128.5 kB / 391.3 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.6833, allocations: 3.938 kB / 391.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006417/0.6839, allocations: 32.03 kB / 391.3 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.6841, allocations: 23.97 kB / 391.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.6841, allocations: 7.984 kB / 391.4 MB, free: 15.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005603/0.6847, allocations: 275 kB / 391.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6847, allocations: 0 / 391.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008585/0.6856, allocations: 131.8 kB / 391.8 MB, free: 15.35 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001911/0.6875, allocations: 1.09 MB / 392.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.689, allocations: 0.5345 MB / 393.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6891, allocations: 0 / 393.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004341/0.6895, allocations: 151.6 kB / 393.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.6906, allocations: 109.9 kB / 393.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.6936, allocations: 0.7025 MB / 394.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.6942, allocations: 0.8273 MB / 395.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005018/0.6947, allocations: 55.44 kB / 395.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004589/0.6952, allocations: 163.4 kB / 395.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6952, allocations: 3.938 kB / 395.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07631/0.7715, allocations: 10.33 MB / 405.7 MB, free: 1.32 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003145/0.7719, allocations: 134.6 kB / 405.8 MB, free: 1.133 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.719/4.491, allocations: 4.031 kB / 405.9 MB, free: 1.129 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat