Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_1_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.734/1.734, allocations: 171.2 MB / 178.1 MB, free: 8.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2252/1.96, allocations: 41.11 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/2.052, allocations: 38.76 MB / 258 MB, free: 4.383 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3209/2.373, allocations: 72.37 MB / 330.4 MB, free: 15.72 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/2.373, allocations: 70.59 kB / 330.4 MB, free: 15.68 MB / 282.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.07812/2.451, allocations: 14.33 MB / 344.8 MB, free: 3.805 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.277e-05/2.451, allocations: 12 kB / 344.8 MB, free: 3.793 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005929/2.452, allocations: 83.06 kB / 344.9 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/2.454, allocations: 455.4 kB / 345.3 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004085/2.454, allocations: 87.64 kB / 345.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/2.455, allocations: 28 kB / 345.4 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001859/2.456, allocations: 354.5 kB / 345.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/2.458, allocations: 0.5329 MB / 346.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.231e-05/2.459, allocations: 0 / 346.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/2.459, allocations: 4 kB / 346.3 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.027e-05/2.459, allocations: 15.92 kB / 346.3 MB, free: 2.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00859/2.467, allocations: 1.779 MB / 348.1 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004979/2.472, allocations: 0.6324 MB / 348.7 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009402/2.473, allocations: 215.6 kB / 349 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/2.474, allocations: 23.59 kB / 349 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.576e-05/2.474, allocations: 45.69 kB / 349 MB, free: 288 kB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 7.183e-06/2.474, allocations: 0 / 349 MB, free: 288 kB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.00549/2.479, allocations: 0.6584 MB / 349.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005314/2.48, allocations: 0.5605 MB / 350.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/2.481, allocations: 409.8 kB / 350.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000227/2.481, allocations: 33.64 kB / 350.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/2.482, allocations: 206 kB / 350.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000344/2.482, allocations: 186.7 kB / 351.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.48e-05/2.482, allocations: 4 kB / 351.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002996/2.482, allocations: 363.3 kB / 351.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007549/2.483, allocations: 145.7 kB / 351.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/2.484, allocations: 361.2 kB / 351.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008692/2.485, allocations: 189.5 kB / 352.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/2.485, allocations: 0 / 352.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.005428/2.491, allocations: 0.7108 MB / 352.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/2.491, allocations: 4 kB / 352.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/2.491, allocations: 0 / 352.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/2.493, allocations: 213.2 kB / 353 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/2.496, allocations: 143.5 kB / 353.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01471/2.511, allocations: 4.795 MB / 358 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/2.513, allocations: 74.75 kB / 358 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002099/2.513, allocations: 18.3 kB / 358 MB, free: 7.82 MB / 298.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.0005064/2.513, allocations: 138.3 kB / 358.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/2.514, allocations: 67.19 kB / 358.2 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/2.519, allocations: 0.6939 MB / 358.9 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/2.519, allocations: 15.89 kB / 359 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/2.519, allocations: 0 / 359 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003349/2.523, allocations: 0.9623 MB / 359.9 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005602/2.528, allocations: 1.354 MB / 361.3 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/2.528, allocations: 0 / 361.3 MB, free: 5.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00179/2.53, allocations: 140.7 kB / 361.4 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/2.532, allocations: 151.4 kB / 361.6 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/2.532, allocations: 13.14 kB / 361.6 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/2.544, allocations: 3.27 MB / 364.8 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/2.544, allocations: 0 / 364.8 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005734/2.549, allocations: 0.9426 MB / 365.8 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008213/2.558, allocations: 2.035 MB / 367.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009827/2.559, allocations: 196.2 kB / 368 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002972/2.559, allocations: 0 / 368 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/2.561, allocations: 35.97 kB / 368 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/2.561, allocations: 32.44 kB / 368.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/2.561, allocations: 16 kB / 368.1 MB, free: 14.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001108/2.562, allocations: 315 kB / 368.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003708/2.566, allocations: 195.7 kB / 368.6 MB, free: 13.52 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.0005393/2.567, allocations: 119.2 kB / 368.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004382/2.571, allocations: 0.7968 MB / 369.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/2.571, allocations: 0 / 369.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002736/2.574, allocations: 465.4 kB / 370 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/2.576, allocations: 142.2 kB / 370.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/2.582, allocations: 0.9526 MB / 371 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009695/2.583, allocations: 0.961 MB / 372 MB, free: 9.984 MB / 314.7 MB Notification: Performance of SimCode: time 1.694e-06/2.583, allocations: 3.938 kB / 372 MB, free: 9.98 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat