Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.784/1.784, allocations: 171.2 MB / 178.8 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/3.023e-05, allocations: 7.938 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2567, allocations: 38.76 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.3851, allocations: 70.24 MB / 328.6 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.3854, allocations: 71.95 kB / 328.6 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04029/0.4258, allocations: 9.306 MB / 337.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4258, allocations: 0 / 337.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.77e-05/0.4259, allocations: 8 kB / 337.9 MB, free: 14.16 MB / 298.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.001745/0.4276, allocations: 0.722 MB / 338.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.4277, allocations: 8.031 kB / 338.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.4279, allocations: 63.34 kB / 338.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008249/0.4287, allocations: 384 kB / 339.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.4289, allocations: 50.47 kB / 339.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.343e-05/0.429, allocations: 24.28 kB / 339.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007628/0.4297, allocations: 257.5 kB / 339.4 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008855/0.4306, allocations: 398.4 kB / 339.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.4307, allocations: 0 / 339.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.4307, allocations: 4 kB / 339.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.4308, allocations: 8 kB / 339.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.434, allocations: 1.186 MB / 341 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007602/0.4348, allocations: 356 kB / 341.4 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.4352, allocations: 136.8 kB / 341.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.4353, allocations: 8 kB / 341.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.4353, allocations: 42.55 kB / 341.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.156e-06/0.4353, allocations: 4 kB / 341.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001138/0.4365, allocations: 347 kB / 341.9 MB, free: 9.941 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002375/0.4367, allocations: 456.9 kB / 342.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006366/0.4374, allocations: 337.3 kB / 342.7 MB, free: 9.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-05/0.4375, allocations: 25.7 kB / 342.7 MB, free: 9.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.4377, allocations: 275.1 kB / 343 MB, free: 8.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.4379, allocations: 122.2 kB / 343.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.4379, allocations: 0 / 343.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4381, allocations: 334.8 kB / 343.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/0.4384, allocations: 100 kB / 343.5 MB, free: 8.195 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.4389, allocations: 226.4 kB / 343.7 MB, free: 7.922 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.4392, allocations: 121.1 kB / 343.8 MB, free: 7.805 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4393, allocations: 0 / 343.8 MB, free: 7.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001077/0.4403, allocations: 350.6 kB / 344.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.4404, allocations: 37.66 kB / 344.2 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4404, allocations: 0 / 344.2 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003815/0.4408, allocations: 61.62 kB / 344.3 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008002/0.4416, allocations: 91.91 kB / 344.4 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003024/0.4447, allocations: 2.634 MB / 347 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007153/0.4454, allocations: 59.7 kB / 347.1 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.4455, allocations: 11.98 kB / 347.1 MB, free: 4.312 MB / 298.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 pump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" 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.0002602/0.4458, allocations: 118.3 kB / 347.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001043/0.4468, allocations: 358.5 kB / 347.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.447, allocations: 47.44 kB / 347.6 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.4471, allocations: 44.86 kB / 347.6 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4471, allocations: 4 kB / 347.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4472, allocations: 7.953 kB / 347.6 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008205/0.448, allocations: 0.6457 MB / 348.3 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.4499, allocations: 0.8767 MB / 349.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.45, allocations: 3.938 kB / 349.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008923/0.4509, allocations: 95.88 kB / 349.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.4509, allocations: 3.984 kB / 349.3 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.4509, allocations: 7.953 kB / 349.3 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.451, allocations: 0 / 349.3 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.451, allocations: 0 / 349.3 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.4521, allocations: 0.5305 MB / 349.8 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.4523, allocations: 120.6 kB / 349.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.4524, allocations: 0 / 349.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.453, allocations: 31.92 kB / 350 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.844e-05/0.4531, allocations: 31.89 kB / 350 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.134e-05/0.4531, allocations: 15.98 kB / 350 MB, free: 1.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000451/0.4536, allocations: 266.9 kB / 350.3 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.4536, allocations: 0 / 350.3 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007182/0.4544, allocations: 131.7 kB / 350.4 MB, free: 0.7852 MB / 298.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.001588/0.456, allocations: 1.079 MB / 351.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.4572, allocations: 0.5457 MB / 352 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4572, allocations: 0 / 352 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.4576, allocations: 140.5 kB / 352.2 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009391/0.4586, allocations: 109.8 kB / 352.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.461, allocations: 0.7514 MB / 353 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.4615, allocations: 0.8313 MB / 353.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004281/0.4619, allocations: 163.4 kB / 354 MB, free: 13.04 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.4619, allocations: 0 / 354 MB, free: 13.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.988/3.45, allocations: 10.01 MB / 364 MB, free: 3.039 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat