Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.51e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2852, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.4173, allocations: 72.79 MB / 336.6 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4176, allocations: 75.91 kB / 336.7 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06153/0.4791, allocations: 13.74 MB / 350.5 MB, free: 3.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4792, allocations: 4 kB / 350.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.679e-05/0.4793, allocations: 12 kB / 350.5 MB, free: 3.059 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002443/0.4817, allocations: 0.8799 MB / 351.3 MB, free: 2.117 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.4818, allocations: 8.031 kB / 351.4 MB, free: 2.109 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002595/0.4821, allocations: 103.4 kB / 351.5 MB, free: 2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.4823, allocations: 79.16 kB / 351.5 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.4833, allocations: 443.8 kB / 352 MB, free: 1.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/0.4836, allocations: 112.2 kB / 352.1 MB, free: 1.328 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.4837, allocations: 51.94 kB / 352.1 MB, free: 1.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.4851, allocations: 0.5957 MB / 352.7 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.4852, allocations: 4 kB / 352.7 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.16e-05/0.4853, allocations: 20 kB / 352.7 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.4853, allocations: 16 kB / 352.8 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.4865, allocations: 381.9 kB / 353.1 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.4916, allocations: 1.883 MB / 355 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003345/0.4949, allocations: 0.6626 MB / 355.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007886/0.4958, allocations: 230.6 kB / 355.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.349e-05/0.4959, allocations: 12.56 kB / 355.9 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.675e-05/0.496, allocations: 47.08 kB / 356 MB, free: 13.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 4.358e-06/0.496, allocations: 0 / 356 MB, free: 13.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003198/0.4992, allocations: 0.6686 MB / 356.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002993/0.4996, allocations: 0.5684 MB / 357.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/0.5005, allocations: 464.8 kB / 357.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.5007, allocations: 45.64 kB / 357.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.5009, allocations: 295.3 kB / 358 MB, free: 11.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.5012, allocations: 201 kB / 358.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.126e-05/0.5013, allocations: 12 kB / 358.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5014, allocations: 330.8 kB / 358.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.5019, allocations: 157.1 kB / 358.7 MB, free: 10.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007643/0.5027, allocations: 371.5 kB / 359 MB, free: 9.895 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006153/0.5033, allocations: 234.2 kB / 359.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.5034, allocations: 0 / 359.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003014/0.5064, allocations: 0.6943 MB / 360 MB, free: 8.945 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.845e-05/0.5065, allocations: 41.72 kB / 360 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5065, allocations: 0 / 360 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.5078, allocations: 202.3 kB / 360.2 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.5093, allocations: 135.8 kB / 360.3 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00981/0.5191, allocations: 5.032 MB / 365.4 MB, free: 3.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.5203, allocations: 83.73 kB / 365.4 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.786e-05/0.5203, allocations: 23.98 kB / 365.5 MB, free: 3.016 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.5206, allocations: 153 kB / 365.6 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.5208, allocations: 67.25 kB / 365.7 MB, free: 2.793 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003103/0.5239, allocations: 0.7184 MB / 366.4 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.5239, allocations: 4 kB / 366.4 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5239, allocations: 0 / 366.4 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002823/0.5268, allocations: 0.9802 MB / 367.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2278/0.7546, allocations: 1.445 MB / 368.8 MB, free: 89.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.7547, allocations: 0.5938 kB / 368.8 MB, free: 89.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00169/0.7564, allocations: 138.5 kB / 369 MB, free: 89.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.7576, allocations: 159.1 kB / 369.1 MB, free: 89.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.7578, allocations: 13.92 kB / 369.1 MB, free: 89.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006798/0.7646, allocations: 3.4 MB / 372.5 MB, free: 86.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7646, allocations: 0 / 372.5 MB, free: 86.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003391/0.7681, allocations: 0.9857 MB / 373.5 MB, free: 86.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004585/0.7686, allocations: 206 kB / 373.7 MB, free: 86.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.7687, allocations: 9.812 kB / 373.7 MB, free: 86.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007545/0.7695, allocations: 44.58 kB / 373.8 MB, free: 86.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.7697, allocations: 48.77 kB / 373.8 MB, free: 86.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.088e-05/0.7697, allocations: 17.14 kB / 373.8 MB, free: 86.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006159/0.7704, allocations: 359.2 kB / 374.2 MB, free: 86.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7704, allocations: 0 / 374.2 MB, free: 86.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001053/0.7714, allocations: 224.6 kB / 374.4 MB, free: 86.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003633/0.7751, allocations: 1.558 MB / 376 MB, free: 85.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.7775, allocations: 0.8889 MB / 376.9 MB, free: 85.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7776, allocations: 0 / 376.9 MB, free: 85.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.7789, allocations: 0.4928 MB / 377.3 MB, free: 85.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.7802, allocations: 159.8 kB / 377.5 MB, free: 85.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.7837, allocations: 1.091 MB / 378.6 MB, free: 84.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.7841, allocations: 0.8972 MB / 379.5 MB, free: 84.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004718/0.7846, allocations: 232.4 kB / 379.7 MB, free: 84.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/0.7846, allocations: 0 / 379.7 MB, free: 84.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.187/3.972, allocations: 16.93 MB / 396.6 MB, free: 73.08 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat