Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",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.985/1.985, allocations: 171.2 MB / 178.1 MB, free: 8.277 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2151/2.2, allocations: 41.11 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/2.296, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.481/8.777, allocations: 2.478 GB / 2.73 GB, free: 65.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/8.778, allocations: 82.47 kB / 2.73 GB, free: 65.71 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 4.701/13.48, allocations: 0.9343 GB / 3.664 GB, free: 15.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/13.48, allocations: 9.406 kB / 3.664 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0265/13.51, allocations: 1.59 MB / 3.666 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006895/13.51, allocations: 1.531 MB / 3.667 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007826/13.51, allocations: 276.5 kB / 3.667 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001632/13.51, allocations: 116.6 kB / 3.668 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01424/13.53, allocations: 2.679 MB / 3.67 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/13.54, allocations: 2.712 MB / 3.673 GB, free: 9.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/13.54, allocations: 8.641 kB / 3.673 GB, free: 9.172 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009393/13.54, allocations: 11.91 kB / 3.673 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002703/13.54, allocations: 111.1 kB / 3.673 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04355/13.59, allocations: 14.43 MB / 3.687 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/13.59, allocations: 1.435 MB / 3.688 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003871/13.59, allocations: 1.233 MB / 3.69 GB, free: 7.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3027/13.9, allocations: 19.74 MB / 3.709 GB, free: 48.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.203e-05/13.9, allocations: 58.75 kB / 3.709 GB, free: 48.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 5e-06/13.9, allocations: 2 kB / 3.709 GB, free: 48.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.05836/13.96, allocations: 10.44 MB / 3.719 GB, free: 47.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/13.96, allocations: 149.7 kB / 3.719 GB, free: 47.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/13.96, allocations: 0.8555 MB / 3.72 GB, free: 47.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006992/13.96, allocations: 28.33 kB / 3.72 GB, free: 47.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004452/13.96, allocations: 0.6311 MB / 3.721 GB, free: 46.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001107/13.96, allocations: 0.6508 MB / 3.721 GB, free: 46.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002812/13.96, allocations: 0 / 3.721 GB, free: 46.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/13.96, allocations: 396.4 kB / 3.722 GB, free: 46.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/13.96, allocations: 1.227 MB / 3.723 GB, free: 46.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004535/13.97, allocations: 1.67 MB / 3.725 GB, free: 45.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01419/13.98, allocations: 2.011 MB / 3.727 GB, free: 45.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.949e-05/13.98, allocations: 5.719 kB / 3.727 GB, free: 45.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.03424/14.02, allocations: 5.386 MB / 3.732 GB, free: 45.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001127/14.02, allocations: 4.881 MB / 3.737 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.929e-05/14.02, allocations: 13.34 kB / 3.737 GB, free: 40.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008377/14.03, allocations: 1.579 MB / 3.738 GB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004822/14.03, allocations: 0.4914 MB / 3.739 GB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/14.05, allocations: 7.642 MB / 3.746 GB, free: 35.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005105/14.05, allocations: 187.7 kB / 3.746 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000773/14.05, allocations: 136.7 kB / 3.746 GB, free: 35.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/14.05, allocations: 4.078 kB / 3.746 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01348/14.07, allocations: 3.464 MB / 3.75 GB, free: 35.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.326e-05/14.07, allocations: 11.31 kB / 3.75 GB, free: 35.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004387/14.07, allocations: 1.022 MB / 3.751 GB, free: 35.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007373/14.08, allocations: 0.5233 MB / 3.751 GB, free: 35.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/14.09, allocations: 9.659 MB / 3.761 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004582/14.1, allocations: 184.1 kB / 3.761 GB, free: 28.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008984/14.1, allocations: 126.8 kB / 3.761 GB, free: 28.39 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 210 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.001673/14.1, allocations: 222.1 kB / 3.761 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003574/14.11, allocations: 0.683 MB / 3.762 GB, free: 28.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03303/14.14, allocations: 10.22 MB / 3.772 GB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001228/14.14, allocations: 86.3 kB / 3.772 GB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/14.14, allocations: 4.453 kB / 3.772 GB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.45e-05/14.14, allocations: 8.719 kB / 3.772 GB, free: 27.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04038/14.18, allocations: 13.34 MB / 3.785 GB, free: 26.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.121e-05/14.18, allocations: 1.812 kB / 3.785 GB, free: 26.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005516/14.19, allocations: 351.7 kB / 3.785 GB, free: 26.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/14.2, allocations: 4.228 MB / 3.79 GB, free: 26.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007753/14.2, allocations: 46.16 kB / 3.79 GB, free: 26.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02297/14.22, allocations: 9.785 MB / 3.799 GB, free: 21.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/14.22, allocations: 0 / 3.799 GB, free: 21.84 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0314/14.26, allocations: 11.2 MB / 3.81 GB, free: 21.14 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04175/14.3, allocations: 14.64 MB / 3.824 GB, free: 18.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/14.3, allocations: 0.67 MB / 3.825 GB, free: 18.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008464/14.3, allocations: 1.781 kB / 3.825 GB, free: 18.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004796/14.31, allocations: 211.1 kB / 3.825 GB, free: 18.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/14.31, allocations: 242.9 kB / 3.825 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004534/14.31, allocations: 97.17 kB / 3.826 GB, free: 18.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001372/14.31, allocations: 0.6134 MB / 3.826 GB, free: 17.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01644/14.33, allocations: 2.728 MB / 3.829 GB, free: 17.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 65 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01717/14.34, allocations: 2.844 MB / 3.832 GB, free: 16.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02985/14.37, allocations: 7.01 MB / 3.838 GB, free: 13.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/14.37, allocations: 4.5 kB / 3.838 GB, free: 13.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0151/14.39, allocations: 3.94 MB / 3.842 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01275/14.4, allocations: 0.847 MB / 3.843 GB, free: 9.828 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/14.43, allocations: 6.708 MB / 3.85 GB, free: 4.008 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004058/14.43, allocations: 2.282 MB / 3.852 GB, free: 2.184 MB / 410.7 MB Notification: Performance of SimCode: time 2.124e-06/14.43, allocations: 0 / 3.852 GB, free: 2.184 MB / 410.7 MB