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"}) Notification: Performance of loadModel(Modelica): time 2.69/2.69, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.294e-05/3.3e-05, allocations: 2.922 kB / 249.7 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1338, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.85/10.99, allocations: 2.587 GB / 2.875 GB, free: 50 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/10.99, allocations: 79.45 kB / 2.875 GB, free: 49.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.789/17.78, allocations: 0.9532 GB / 3.828 GB, free: 23.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.585e-06/17.78, allocations: 0.9688 kB / 3.828 GB, free: 23.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003241/17.78, allocations: 65.34 kB / 3.828 GB, free: 23.24 MB / 442.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 0.02078/17.8, allocations: 3.385 MB / 3.831 GB, free: 21.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/17.8, allocations: 7.875 kB / 3.831 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001381/17.8, allocations: 191.1 kB / 3.831 GB, free: 21.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03202/17.83, allocations: 1.224 MB / 3.833 GB, free: 21.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/17.84, allocations: 1.533 MB / 3.834 GB, free: 20.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/17.84, allocations: 286 kB / 3.834 GB, free: 20.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/17.84, allocations: 112 kB / 3.835 GB, free: 20.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01033/17.85, allocations: 2.667 MB / 3.837 GB, free: 20.72 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/17.86, allocations: 2.702 MB / 3.84 GB, free: 20.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/17.86, allocations: 10.91 kB / 3.84 GB, free: 20.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006284/17.86, allocations: 6.688 kB / 3.84 GB, free: 20.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002896/17.86, allocations: 103.3 kB / 3.84 GB, free: 20.3 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04563/17.91, allocations: 14.06 MB / 3.854 GB, free: 13.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006419/17.91, allocations: 2.083 MB / 3.856 GB, free: 13.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003811/17.92, allocations: 1.231 MB / 3.857 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01332/17.93, allocations: 3.761 MB / 3.861 GB, free: 10.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.878e-05/17.93, allocations: 56.53 kB / 3.861 GB, free: 10.44 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007759/17.94, allocations: 0.5178 MB / 3.861 GB, free: 10.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=175): time 1.173e-05/17.94, allocations: 0 / 3.861 GB, free: 10.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.0678/18.01, allocations: 9.876 MB / 3.871 GB, free: 9.309 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/18.01, allocations: 156.5 kB / 3.871 GB, free: 9.148 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/18.01, allocations: 0.8413 MB / 3.872 GB, free: 8.777 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007047/18.01, allocations: 28.7 kB / 3.872 GB, free: 8.746 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/18.01, allocations: 0.8141 MB / 3.873 GB, free: 8.102 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/18.01, allocations: 0.6446 MB / 3.873 GB, free: 7.594 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003323/18.01, allocations: 0 / 3.873 GB, free: 7.594 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/18.01, allocations: 394.9 kB / 3.874 GB, free: 7.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003487/18.02, allocations: 1.071 MB / 3.875 GB, free: 6.824 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/18.02, allocations: 1.516 MB / 3.876 GB, free: 5.852 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/18.03, allocations: 1.825 MB / 3.878 GB, free: 5.305 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.2e-05/18.03, allocations: 3.844 kB / 3.878 GB, free: 5.305 MB / 442.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.02187/18.05, allocations: 4.069 MB / 3.882 GB, free: 3.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001537/18.06, allocations: 4.896 MB / 3.887 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.694e-05/18.06, allocations: 15.83 kB / 3.887 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009837/18.07, allocations: 1.505 MB / 3.888 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005676/18.07, allocations: 480.3 kB / 3.889 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/18.09, allocations: 7.248 MB / 3.896 GB, free: 6.164 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005842/18.1, allocations: 173.4 kB / 3.896 GB, free: 6.031 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000892/18.1, allocations: 116.2 kB / 3.896 GB, free: 5.938 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/18.1, allocations: 4 kB / 3.896 GB, free: 5.934 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01646/18.11, allocations: 3.118 MB / 3.899 GB, free: 3.242 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.024e-05/18.11, allocations: 16 kB / 3.899 GB, free: 3.227 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005972/18.12, allocations: 1.014 MB / 3.9 GB, free: 2.402 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005991/18.13, allocations: 498.8 kB / 3.9 GB, free: 2.004 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4881/18.61, allocations: 9.935 MB / 3.91 GB, free: 32.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005277/18.62, allocations: 176.5 kB / 3.91 GB, free: 32.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008738/18.62, allocations: 114.3 kB / 3.91 GB, free: 32.14 MB / 458.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.001484/18.62, allocations: 224.3 kB / 3.911 GB, free: 32.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009446/18.62, allocations: 174.8 kB / 3.911 GB, free: 32.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03382/18.66, allocations: 10.07 MB / 3.921 GB, free: 31.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000168/18.66, allocations: 103 kB / 3.921 GB, free: 31.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/18.66, allocations: 1.188 kB / 3.921 GB, free: 31.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.158e-05/18.66, allocations: 10.08 kB / 3.921 GB, free: 31.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0414/18.7, allocations: 13.16 MB / 3.934 GB, free: 30.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.189e-05/18.7, allocations: 5.141 kB / 3.934 GB, free: 30.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004919/18.7, allocations: 398.6 kB / 3.934 GB, free: 30.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01383/18.72, allocations: 4.655 MB / 3.939 GB, free: 30.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000718/18.72, allocations: 36.66 kB / 3.939 GB, free: 30.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0204/18.74, allocations: 9.786 MB / 3.948 GB, free: 25.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/18.74, allocations: 0 / 3.948 GB, free: 25.54 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03347/18.77, allocations: 10.65 MB / 3.959 GB, free: 24.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003189/18.77, allocations: 0.8665 MB / 3.959 GB, free: 24.45 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008914/18.78, allocations: 6.453 kB / 3.959 GB, free: 24.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0052/18.78, allocations: 199.3 kB / 3.96 GB, free: 24.44 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/18.78, allocations: 228.3 kB / 3.96 GB, free: 24.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004887/18.78, allocations: 92 kB / 3.96 GB, free: 24.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002362/18.78, allocations: 0.9097 MB / 3.961 GB, free: 24.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.62e-07/18.78, allocations: 1.938 kB / 3.961 GB, free: 24.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01414/18.8, allocations: 2.221 MB / 3.963 GB, free: 24.26 MB / 458.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: 71 ($cse1.phase,$cse1.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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 (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * 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.04885/18.85, allocations: 12.83 MB / 3.975 GB, free: 22.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02309/18.87, allocations: 5.855 MB / 3.981 GB, free: 22.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/18.87, allocations: 5.062 kB / 3.981 GB, free: 22.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01131/18.88, allocations: 2.904 MB / 3.984 GB, free: 22.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01102/18.89, allocations: 0.8927 MB / 3.985 GB, free: 22.33 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02761/18.92, allocations: 7.5 MB / 3.992 GB, free: 20.97 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003247/18.92, allocations: 2.252 MB / 3.994 GB, free: 20.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01313/18.94, allocations: 3.472 MB / 3.998 GB, free: 20.15 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003621/18.94, allocations: 1.299 MB / 3.999 GB, free: 20.14 MB / 458.7 MB Notification: Performance of SimCode: time 3.166e-06/18.94, allocations: 0 / 3.999 GB, free: 20.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8932/19.83, allocations: 118.4 MB / 4.115 GB, free: 50.93 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002924/19.84, allocations: 179.8 kB / 4.115 GB, free: 50.74 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 12.57/32.4, allocations: 0 / 4.115 GB, free: 50.74 MB / 474.7 MB