Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.743e-05/2.76e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2572, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.209/6.467, allocations: 2.587 GB / 2.874 GB, free: 73.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/6.467, allocations: 82.59 kB / 2.875 GB, free: 73.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.329/10.8, allocations: 0.9518 GB / 3.826 GB, free: 23.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.084e-06/10.8, allocations: 0 / 3.826 GB, free: 23.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001957/10.8, allocations: 56.86 kB / 3.826 GB, free: 23.88 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.0126/10.81, allocations: 3.38 MB / 3.83 GB, free: 22.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/10.81, allocations: 9.594 kB / 3.83 GB, free: 22.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01701/10.83, allocations: 1.222 MB / 3.831 GB, free: 22.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004896/10.83, allocations: 1.538 MB / 3.832 GB, free: 21.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003453/10.83, allocations: 278.7 kB / 3.833 GB, free: 21.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007725/10.83, allocations: 112.3 kB / 3.833 GB, free: 21.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006784/10.84, allocations: 2.667 MB / 3.835 GB, free: 21.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006767/10.85, allocations: 2.694 MB / 3.838 GB, free: 21.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.416e-05/10.85, allocations: 16.55 kB / 3.838 GB, free: 21.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/10.85, allocations: 3.875 kB / 3.838 GB, free: 21.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001593/10.85, allocations: 104.1 kB / 3.838 GB, free: 21.02 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.02749/10.87, allocations: 14.06 MB / 3.852 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004181/10.88, allocations: 2.091 MB / 3.854 GB, free: 13.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002483/10.88, allocations: 1.224 MB / 3.855 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007417/10.89, allocations: 3.769 MB / 3.859 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/10.89, allocations: 57.5 kB / 3.859 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004198/10.89, allocations: 0.5043 MB / 3.859 GB, free: 11.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=175): time 1.247e-05/10.89, allocations: 0 / 3.859 GB, free: 11.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.04218/10.93, allocations: 9.877 MB / 3.869 GB, free: 9.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/10.93, allocations: 152.9 kB / 3.869 GB, free: 9.754 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/10.94, allocations: 0.8466 MB / 3.87 GB, free: 9.379 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005057/10.94, allocations: 28.52 kB / 3.87 GB, free: 9.348 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004678/10.94, allocations: 0.7981 MB / 3.871 GB, free: 8.672 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007308/10.94, allocations: 0.6517 MB / 3.871 GB, free: 8.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/10.94, allocations: 0 / 3.871 GB, free: 8.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/10.94, allocations: 395.4 kB / 3.872 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/10.94, allocations: 1.068 MB / 3.873 GB, free: 7.387 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002655/10.94, allocations: 1.526 MB / 3.874 GB, free: 6.406 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/10.95, allocations: 1.827 MB / 3.876 GB, free: 5.859 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.26e-05/10.95, allocations: 3.219 kB / 3.876 GB, free: 5.859 MB / 442.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01328/10.96, allocations: 3.997 MB / 3.88 GB, free: 4.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001245/10.97, allocations: 4.88 MB / 3.885 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/10.97, allocations: 11.81 kB / 3.885 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005666/10.97, allocations: 1.519 MB / 3.886 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00296/10.97, allocations: 475.2 kB / 3.887 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/10.99, allocations: 7.233 MB / 3.894 GB, free: 6.914 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/10.99, allocations: 181.1 kB / 3.894 GB, free: 6.773 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005128/10.99, allocations: 123 kB / 3.894 GB, free: 6.676 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/10.99, allocations: 4 kB / 3.894 GB, free: 6.672 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01029/11, allocations: 3.115 MB / 3.897 GB, free: 3.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.145e-05/11, allocations: 12 kB / 3.897 GB, free: 3.969 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/11, allocations: 0.966 MB / 3.898 GB, free: 3.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003172/11.01, allocations: 0.4959 MB / 3.899 GB, free: 2.773 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.359/11.37, allocations: 9.969 MB / 3.908 GB, free: 33.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/11.37, allocations: 178.4 kB / 3.908 GB, free: 33.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004897/11.37, allocations: 115.2 kB / 3.909 GB, free: 33.18 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.001027/11.37, allocations: 230.8 kB / 3.909 GB, free: 33.06 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006446/11.37, allocations: 172.8 kB / 3.909 GB, free: 33.06 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02121/11.39, allocations: 10.05 MB / 3.919 GB, free: 32.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001119/11.39, allocations: 109.9 kB / 3.919 GB, free: 32.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.41e-06/11.39, allocations: 0 / 3.919 GB, free: 32.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-05/11.39, allocations: 11.2 kB / 3.919 GB, free: 32.37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02792/11.42, allocations: 13.17 MB / 3.932 GB, free: 31.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/11.42, allocations: 3.688 kB / 3.932 GB, free: 31.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002732/11.42, allocations: 398.3 kB / 3.932 GB, free: 31.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008757/11.43, allocations: 4.663 MB / 3.937 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005298/11.43, allocations: 35.34 kB / 3.937 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01339/11.45, allocations: 9.792 MB / 3.946 GB, free: 26.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.79e-06/11.45, allocations: 3.812 kB / 3.946 GB, free: 26.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02238/11.47, allocations: 10.63 MB / 3.957 GB, free: 25.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/11.47, allocations: 0.8707 MB / 3.957 GB, free: 25.51 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006266/11.47, allocations: 3.562 kB / 3.957 GB, free: 25.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/11.47, allocations: 201.2 kB / 3.958 GB, free: 25.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007184/11.48, allocations: 226.8 kB / 3.958 GB, free: 25.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003302/11.48, allocations: 86.3 kB / 3.958 GB, free: 25.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001713/11.48, allocations: 0.9089 MB / 3.959 GB, free: 25.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.034e-06/11.48, allocations: 1.219 kB / 3.959 GB, free: 25.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01044/11.49, allocations: 2.22 MB / 3.961 GB, free: 25.32 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.01064/11.5, allocations: 2.812 MB / 3.964 GB, free: 25.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/11.51, allocations: 5.789 MB / 3.969 GB, free: 24.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/11.51, allocations: 4.125 kB / 3.969 GB, free: 24.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006844/11.52, allocations: 2.907 MB / 3.972 GB, free: 24.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006384/11.53, allocations: 0.8962 MB / 3.973 GB, free: 24.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/11.54, allocations: 6.474 MB / 3.979 GB, free: 23.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/11.54, allocations: 2.207 MB / 3.982 GB, free: 22.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/11.54, allocations: 197.2 kB / 3.982 GB, free: 22.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.735e-06/11.54, allocations: 0 / 3.982 GB, free: 22.54 MB / 458.7 MB Notification: Performance of Templates: time 0.5308/12.07, allocations: 173.3 MB / 4.151 GB, free: 49.65 MB / 474.7 MB