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_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.303e-05/4.329e-05, allocations: 4 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 50.41 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.724/6.839, allocations: 2.761 GB / 3.096 GB, free: 113.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/6.84, allocations: 80.03 kB / 3.096 GB, free: 113.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.336/11.18, allocations: 0.9762 GB / 4.073 GB, free: 17.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.37e-06/11.18, allocations: 4 kB / 4.073 GB, free: 17.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001826/11.18, allocations: 55.92 kB / 4.073 GB, free: 17.05 MB / 490.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.01212/11.19, allocations: 3.386 MB / 4.076 GB, free: 13.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/11.19, allocations: 8.031 kB / 4.076 GB, free: 13.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01752/11.21, allocations: 1.234 MB / 4.077 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004498/11.21, allocations: 1.529 MB / 4.079 GB, free: 10.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003529/11.21, allocations: 341.8 kB / 4.079 GB, free: 10.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006668/11.21, allocations: 188 kB / 4.079 GB, free: 10.22 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/11.22, allocations: 3.448 MB / 4.083 GB, free: 6.629 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.532e-05/11.22, allocations: 15.84 kB / 4.083 GB, free: 6.613 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000456/11.22, allocations: 79.98 kB / 4.083 GB, free: 6.535 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/11.22, allocations: 107.3 kB / 4.083 GB, free: 6.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/11.23, allocations: 3.27 MB / 4.086 GB, free: 3.156 MB / 490.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.033/11.27, allocations: 14.41 MB / 4.1 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009239/11.28, allocations: 2.688 MB / 4.103 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3403/11.62, allocations: 1.261 MB / 4.104 GB, free: 41.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01946/11.64, allocations: 8.273 MB / 4.112 GB, free: 36.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.678e-05/11.64, allocations: 58.09 kB / 4.112 GB, free: 36.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004134/11.64, allocations: 0.5633 MB / 4.113 GB, free: 36.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 1.044e-05/11.64, allocations: 1.406 kB / 4.113 GB, free: 36.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.04213/11.68, allocations: 10.12 MB / 4.122 GB, free: 35.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.683e-05/11.68, allocations: 152.6 kB / 4.123 GB, free: 35.36 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002332/11.68, allocations: 1.214 MB / 4.124 GB, free: 35.19 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005249/11.68, allocations: 65.58 kB / 4.124 GB, free: 35.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00063/11.69, allocations: 0.7872 MB / 4.125 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008204/11.69, allocations: 0.6776 MB / 4.125 GB, free: 34.56 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/11.69, allocations: 41.09 kB / 4.125 GB, free: 34.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001538/11.69, allocations: 392.2 kB / 4.126 GB, free: 34.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/11.69, allocations: 1.098 MB / 4.127 GB, free: 34.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002892/11.69, allocations: 1.513 MB / 4.128 GB, free: 33.81 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/11.69, allocations: 1.211 MB / 4.129 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/11.69, allocations: 3.281 kB / 4.129 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.00906/11.7, allocations: 3.575 MB / 4.133 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/11.7, allocations: 15 kB / 4.133 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/11.7, allocations: 16.86 kB / 4.133 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006386/11.71, allocations: 1.534 MB / 4.134 GB, free: 33.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/11.71, allocations: 467.9 kB / 4.135 GB, free: 33.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0069/11.72, allocations: 6.576 MB / 4.141 GB, free: 28.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/11.72, allocations: 218.6 kB / 4.142 GB, free: 28.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004724/11.72, allocations: 121.3 kB / 4.142 GB, free: 28.77 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (213): * Single equations (assignments): 204 * 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 {1 5,1 5,4 6,1 5,1 5,4 6,1 5,1 5,6 6} Notification: Performance of prepare postOptimizeDAE: time 0.0007242/11.73, allocations: 240.1 kB / 4.142 GB, free: 28.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000622/11.73, allocations: 199.2 kB / 4.142 GB, free: 28.56 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/11.74, allocations: 9.649 MB / 4.151 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/11.74, allocations: 107.2 kB / 4.152 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/11.74, allocations: 0 / 4.152 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.827e-05/11.74, allocations: 13.55 kB / 4.152 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02234/11.76, allocations: 13.14 MB / 4.164 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-05/11.76, allocations: 1.422 kB / 4.164 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/11.77, allocations: 400.1 kB / 4.165 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009048/11.78, allocations: 4.689 MB / 4.169 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004878/11.78, allocations: 62.5 kB / 4.169 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009244/11.79, allocations: 8.752 MB / 4.178 GB, free: 21.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.824e-06/11.79, allocations: 2.688 kB / 4.178 GB, free: 21.72 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0172/11.8, allocations: 10.23 MB / 4.188 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002225/11.81, allocations: 0.9041 MB / 4.189 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006127/11.81, allocations: 49.72 kB / 4.189 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003654/11.81, allocations: 243 kB / 4.189 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000989/11.81, allocations: 233.6 kB / 4.189 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005206/11.81, allocations: 88.25 kB / 4.189 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00247/11.81, allocations: 1.228 MB / 4.191 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.46e-07/11.81, allocations: 0 / 4.191 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007714/11.82, allocations: 1.922 MB / 4.193 GB, free: 20.34 MB / 0.4948 GB 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.01063/11.83, allocations: 2.626 MB / 4.195 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009481/11.84, allocations: 3.867 MB / 4.199 GB, free: 19.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.985e-06/11.84, allocations: 4.594 kB / 4.199 GB, free: 19.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007013/11.85, allocations: 2.963 MB / 4.202 GB, free: 19.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007102/11.86, allocations: 1.048 MB / 4.203 GB, free: 19.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/11.87, allocations: 6.555 MB / 4.209 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/11.87, allocations: 2.233 MB / 4.211 GB, free: 17.87 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004496/11.88, allocations: 1.729 MB / 4.213 GB, free: 17.84 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009249/11.88, allocations: 189 kB / 4.213 GB, free: 17.83 MB / 0.4948 GB Notification: Performance of SimCode: time 1.75e-06/11.88, allocations: 3.094 kB / 4.213 GB, free: 17.83 MB / 0.4948 GB Notification: Performance of Templates: time 0.6066/12.48, allocations: 95.06 MB / 4.306 GB, free: 57.36 MB / 0.5105 GB