Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.813/1.813, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2155/2.029, allocations: 46.82 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/2.123, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.173/8.296, allocations: 2.587 GB / 2.874 GB, free: 72.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/8.296, allocations: 83.3 kB / 2.874 GB, free: 72.51 MB / 394.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.955/13.25, allocations: 0.9594 GB / 3.834 GB, free: 22.24 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/13.25, allocations: 9.188 kB / 3.834 GB, free: 22.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0295/13.28, allocations: 1.706 MB / 3.835 GB, free: 22.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006533/13.29, allocations: 1.529 MB / 3.837 GB, free: 21.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000432/13.29, allocations: 286.5 kB / 3.837 GB, free: 21.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008605/13.29, allocations: 109.8 kB / 3.837 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009572/13.3, allocations: 2.679 MB / 3.84 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009374/13.31, allocations: 2.714 MB / 3.842 GB, free: 21.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.745e-05/13.31, allocations: 7.844 kB / 3.842 GB, free: 21.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005377/13.31, allocations: 9.703 kB / 3.842 GB, free: 21.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/13.31, allocations: 114.4 kB / 3.843 GB, free: 21.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04147/13.35, allocations: 14.42 MB / 3.857 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004373/13.35, allocations: 1.426 MB / 3.858 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003579/13.36, allocations: 1.236 MB / 3.859 GB, free: 13.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07719/13.44, allocations: 19.77 MB / 3.879 GB, free: 16.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.513e-05/13.44, allocations: 66.44 kB / 3.879 GB, free: 16.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 5.15e-06/13.44, allocations: 4 kB / 3.879 GB, free: 16.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.06397/13.5, allocations: 10.44 MB / 3.889 GB, free: 15.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/13.5, allocations: 154 kB / 3.889 GB, free: 15.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002576/13.5, allocations: 0.8504 MB / 3.89 GB, free: 15.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007539/13.5, allocations: 27.7 kB / 3.89 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005407/13.5, allocations: 0.6318 MB / 3.89 GB, free: 15.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001179/13.5, allocations: 0.6519 MB / 3.891 GB, free: 14.67 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000322/13.51, allocations: 5.156 kB / 3.891 GB, free: 14.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002939/13.51, allocations: 388.3 kB / 3.891 GB, free: 14.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004345/13.51, allocations: 1.224 MB / 3.893 GB, free: 13.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004778/13.51, allocations: 1.681 MB / 3.894 GB, free: 12.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/13.53, allocations: 2 MB / 3.896 GB, free: 10.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.527e-05/13.53, allocations: 4 kB / 3.896 GB, free: 10.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.03885/13.57, allocations: 5.394 MB / 3.902 GB, free: 6.434 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002497/13.57, allocations: 4.889 MB / 3.906 GB, free: 1.191 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.785e-05/13.57, allocations: 14.62 kB / 3.906 GB, free: 1.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009996/13.58, allocations: 1.597 MB / 3.908 GB, free: 0 / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005544/13.58, allocations: 0.4922 MB / 3.908 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02334/13.61, allocations: 7.655 MB / 3.916 GB, free: 8.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007613/13.61, allocations: 184.2 kB / 3.916 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/13.62, allocations: 144.3 kB / 3.916 GB, free: 8.047 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/13.62, allocations: 4 kB / 3.916 GB, free: 8.043 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02423/13.64, allocations: 3.463 MB / 3.92 GB, free: 5.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.018e-05/13.64, allocations: 12 kB / 3.92 GB, free: 5.059 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007523/13.65, allocations: 1.021 MB / 3.921 GB, free: 4.215 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008222/13.66, allocations: 0.5222 MB / 3.921 GB, free: 3.797 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2325/13.89, allocations: 9.65 MB / 3.93 GB, free: 74.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004858/13.89, allocations: 179.1 kB / 3.931 GB, free: 74.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005154/13.89, allocations: 134.1 kB / 3.931 GB, free: 74.95 MB / 474.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.001192/13.9, allocations: 214 kB / 3.931 GB, free: 74.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003581/13.9, allocations: 0.6763 MB / 3.932 GB, free: 74.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03118/13.93, allocations: 10.22 MB / 3.942 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001126/13.93, allocations: 92.92 kB / 3.942 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/13.93, allocations: 0 / 3.942 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.955e-05/13.93, allocations: 10.55 kB / 3.942 GB, free: 74.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03583/13.97, allocations: 13.34 MB / 3.955 GB, free: 73.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.311e-05/13.97, allocations: 6.688 kB / 3.955 GB, free: 73.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004034/13.97, allocations: 350.4 kB / 3.955 GB, free: 73.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01188/13.98, allocations: 4.226 MB / 3.959 GB, free: 73.48 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006955/13.98, allocations: 44.92 kB / 3.959 GB, free: 73.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/14, allocations: 9.784 MB / 3.969 GB, free: 68.76 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/14, allocations: 0 / 3.969 GB, free: 68.76 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03254/14.03, allocations: 11.2 MB / 3.98 GB, free: 68.05 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0399/14.07, allocations: 14.63 MB / 3.994 GB, free: 66.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/14.08, allocations: 0.6685 MB / 3.995 GB, free: 66.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/14.08, allocations: 5.875 kB / 3.995 GB, free: 66.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004667/14.08, allocations: 209 kB / 3.995 GB, free: 66.69 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008406/14.08, allocations: 241.4 kB / 3.995 GB, free: 66.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004294/14.08, allocations: 94.66 kB / 3.995 GB, free: 66.69 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001336/14.09, allocations: 0.6144 MB / 3.996 GB, free: 66.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01638/14.1, allocations: 2.745 MB / 3.999 GB, free: 66.58 MB / 474.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.0145/14.12, allocations: 2.876 MB / 4.001 GB, free: 66.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02222/14.14, allocations: 7.016 MB / 4.008 GB, free: 65.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/14.14, allocations: 3.094 kB / 4.008 GB, free: 65.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01145/14.15, allocations: 3.933 MB / 4.012 GB, free: 65.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009378/14.16, allocations: 0.8554 MB / 4.013 GB, free: 65.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/14.18, allocations: 6.704 MB / 4.019 GB, free: 64.94 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003754/14.18, allocations: 2.279 MB / 4.022 GB, free: 64.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/14.18, allocations: 0 / 4.022 GB, free: 64.18 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat