Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_2_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.624/1.624, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2305/1.854, allocations: 46.83 MB / 249.3 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08845/1.943, allocations: 44.51 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2663/2.209, allocations: 76.43 MB / 370.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/2.209, allocations: 77.17 kB / 370.3 MB, free: 7.113 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.06559/2.275, allocations: 16.48 MB / 386.8 MB, free: 2.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/2.275, allocations: 7.75 kB / 386.8 MB, free: 2.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/2.275, allocations: 101.3 kB / 386.9 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/2.277, allocations: 0.5299 MB / 387.5 MB, free: 2.105 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/2.277, allocations: 132.8 kB / 387.6 MB, free: 2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/2.277, allocations: 38.7 kB / 387.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001418/2.279, allocations: 467.3 kB / 388.1 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/2.28, allocations: 0.6848 MB / 388.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/2.28, allocations: 0 / 388.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.611e-05/2.28, allocations: 3.844 kB / 388.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/2.28, allocations: 11.5 kB / 388.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005232/2.286, allocations: 1.96 MB / 390.7 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/2.287, allocations: 438.9 kB / 391.2 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009158/2.288, allocations: 346.5 kB / 391.5 MB, free: 0.543 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.912e-05/2.288, allocations: 8.375 kB / 391.5 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/2.288, allocations: 65.64 kB / 391.6 MB, free: 496 kB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.907e-06/2.288, allocations: 0 / 391.6 MB, free: 496 kB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.003571/2.291, allocations: 0.8431 MB / 392.4 MB, free: 260 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004092/2.292, allocations: 0.8227 MB / 393.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/2.293, allocations: 476 kB / 393.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/2.293, allocations: 33.61 kB / 393.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/2.293, allocations: 217.4 kB / 394 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003361/2.294, allocations: 246.6 kB / 394.2 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/2.294, allocations: 1.375 kB / 394.2 MB, free: 14.72 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002167/2.294, allocations: 381.2 kB / 394.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006393/2.295, allocations: 201.9 kB / 394.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009005/2.296, allocations: 470 kB / 395.2 MB, free: 14.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/2.296, allocations: 253.9 kB / 395.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/2.296, allocations: 1.312 kB / 395.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003935/2.3, allocations: 0.8992 MB / 396.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/2.3, allocations: 5.344 kB / 396.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/2.3, allocations: 0 / 396.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/2.301, allocations: 208.4 kB / 396.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/2.303, allocations: 148 kB / 396.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/2.314, allocations: 6.049 MB / 402.8 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/2.316, allocations: 99.81 kB / 402.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/2.316, allocations: 22.81 kB / 402.9 MB, free: 8.449 MB / 314.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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004671/2.316, allocations: 147.1 kB / 403 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003319/2.317, allocations: 81.22 kB / 403.1 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/2.317, allocations: 82.56 kB / 403.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/2.317, allocations: 7.438 kB / 403.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/2.317, allocations: 1.719 kB / 403.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003546/2.321, allocations: 1.138 MB / 404.4 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006154/2.327, allocations: 1.742 MB / 406.1 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/2.327, allocations: 4 kB / 406.1 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/2.328, allocations: 150.2 kB / 406.2 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007748/2.329, allocations: 160.3 kB / 406.4 MB, free: 6.777 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/2.329, allocations: 9.078 kB / 406.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009134/2.339, allocations: 4.628 MB / 411 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/2.339, allocations: 0 / 411 MB, free: 2.816 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004726/2.343, allocations: 1.226 MB / 412.3 MB, free: 2.488 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007593/2.351, allocations: 2.56 MB / 414.8 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000377/2.351, allocations: 159.6 kB / 415 MB, free: 1.613 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/2.352, allocations: 3.312 kB / 415 MB, free: 1.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/2.353, allocations: 49.83 kB / 415 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/2.353, allocations: 48.05 kB / 415.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.2e-05/2.353, allocations: 19.88 kB / 415.1 MB, free: 1.574 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0008194/2.354, allocations: 368.4 kB / 415.5 MB, free: 1.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002388/2.356, allocations: 259.3 kB / 415.7 MB, free: 1.438 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003482/2.357, allocations: 126.7 kB / 415.8 MB, free: 1.332 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003333/2.36, allocations: 1.119 MB / 417 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/2.36, allocations: 1.969 kB / 417 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/2.362, allocations: 0.6705 MB / 417.6 MB, free: 192 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/2.364, allocations: 187.7 kB / 417.8 MB, free: 44 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/2.369, allocations: 1.253 MB / 419.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/2.37, allocations: 1.037 MB / 420.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.583e-06/2.37, allocations: 0 / 420.1 MB, free: 13.83 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat