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.754/1.754, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.358e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3119, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.4418, allocations: 72.12 MB / 330.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4422, allocations: 75.95 kB / 330.5 MB, free: 5.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06136/0.5035, allocations: 13.59 MB / 344.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5036, allocations: 4 kB / 344.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.55e-05/0.5037, allocations: 12 kB / 344.1 MB, free: 7.953 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.002689/0.5064, allocations: 0.8763 MB / 345 MB, free: 7.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.5064, allocations: 12.03 kB / 345 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.5068, allocations: 87.06 kB / 345.1 MB, free: 6.922 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.5079, allocations: 444.2 kB / 345.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/0.5082, allocations: 88.7 kB / 345.6 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.5083, allocations: 31.95 kB / 345.6 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.5095, allocations: 362.5 kB / 346 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.5108, allocations: 0.5396 MB / 346.5 MB, free: 5.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.5108, allocations: 0 / 346.5 MB, free: 5.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.246e-05/0.5109, allocations: 4 kB / 346.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5109, allocations: 8 kB / 346.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005174/0.5161, allocations: 1.769 MB / 348.3 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.5192, allocations: 0.6464 MB / 349 MB, free: 2.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.5199, allocations: 214.5 kB / 349.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.825e-05/0.52, allocations: 17.28 kB / 349.2 MB, free: 2.574 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.52, allocations: 43.12 kB / 349.2 MB, free: 2.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 5.28e-06/0.5201, allocations: 3.938 kB / 349.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.003235/0.5233, allocations: 0.6606 MB / 349.9 MB, free: 1.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003075/0.5236, allocations: 0.5606 MB / 350.4 MB, free: 1.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008787/0.5245, allocations: 405.4 kB / 350.8 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.5247, allocations: 25.7 kB / 350.9 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.525, allocations: 311.7 kB / 351.2 MB, free: 416 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/0.5252, allocations: 185.2 kB / 351.4 MB, free: 228 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.5253, allocations: 0 / 351.4 MB, free: 228 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.5255, allocations: 342.8 kB / 351.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.526, allocations: 145.1 kB / 351.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.5267, allocations: 363.4 kB / 352.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005338/0.5272, allocations: 178.2 kB / 352.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.5273, allocations: 4 kB / 352.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003155/0.5304, allocations: 0.6689 MB / 353 MB, free: 14.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.5305, allocations: 29.7 kB / 353.1 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5305, allocations: 4 kB / 353.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.532, allocations: 218.4 kB / 353.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.5336, allocations: 139.8 kB / 353.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009707/0.5433, allocations: 4.846 MB / 358.3 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.5445, allocations: 67.77 kB / 358.3 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-05/0.5446, allocations: 24.34 kB / 358.4 MB, free: 8.758 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real valve.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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.0003435/0.545, allocations: 130.2 kB / 358.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003084/0.5481, allocations: 0.6606 MB / 359.1 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.5484, allocations: 63.25 kB / 359.2 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003217/0.5516, allocations: 0.6907 MB / 359.9 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.5517, allocations: 8 kB / 359.9 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5517, allocations: 0 / 359.9 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002884/0.5546, allocations: 0.9567 MB / 360.9 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.5592, allocations: 1.343 MB / 362.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.5592, allocations: 0 / 362.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.5608, allocations: 135.8 kB / 362.3 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.562, allocations: 165.7 kB / 362.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/0.5621, allocations: 0 / 362.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007091/0.5692, allocations: 3.293 MB / 365.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5692, allocations: 0 / 365.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2227/0.792, allocations: 0.9357 MB / 366.7 MB, free: 90.53 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/0.7926, allocations: 193.2 kB / 366.9 MB, free: 90.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.7928, allocations: 3.047 kB / 366.9 MB, free: 90.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007773/0.7936, allocations: 33.41 kB / 366.9 MB, free: 90.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.7938, allocations: 47.67 kB / 367 MB, free: 90.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.718e-05/0.7939, allocations: 16.81 kB / 367 MB, free: 90.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006905/0.7946, allocations: 313.1 kB / 367.3 MB, free: 90.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7946, allocations: 0 / 367.3 MB, free: 90.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00138/0.796, allocations: 199.3 kB / 367.5 MB, free: 90.35 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.004052/0.8001, allocations: 1.504 MB / 369 MB, free: 89.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.8025, allocations: 0.8653 MB / 369.9 MB, free: 89.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.8026, allocations: 1.188 kB / 369.9 MB, free: 89.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.804, allocations: 490.8 kB / 370.4 MB, free: 89.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.8053, allocations: 142.5 kB / 370.5 MB, free: 89.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/0.8089, allocations: 1.024 MB / 371.5 MB, free: 88.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.8094, allocations: 0.8959 MB / 372.4 MB, free: 88.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005159/0.8099, allocations: 221.6 kB / 372.6 MB, free: 88.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8099, allocations: 3.688 kB / 372.6 MB, free: 88.06 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.957/3.767, allocations: 16.6 MB / 389.2 MB, free: 81.44 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