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.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.135e-05/4.143e-05, allocations: 4 kB / 225 MB, free: 2.836 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2132, allocations: 38.77 MB / 263.8 MB, free: 9.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.9/6.113, allocations: 2.478 GB / 2.736 GB, free: 68.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/6.113, allocations: 83.48 kB / 2.736 GB, free: 68.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.991/10.1, allocations: 0.9349 GB / 3.671 GB, free: 25.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.207e-06/10.1, allocations: 0 / 3.671 GB, free: 25.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002118/10.1, allocations: 66.69 kB / 3.671 GB, free: 25.38 MB / 410.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.01226/10.12, allocations: 3.286 MB / 3.674 GB, free: 23.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/10.12, allocations: 10.28 kB / 3.674 GB, free: 23.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01673/10.13, allocations: 1.128 MB / 3.675 GB, free: 23.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004656/10.14, allocations: 1.54 MB / 3.677 GB, free: 23.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004192/10.14, allocations: 346 kB / 3.677 GB, free: 23.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000823/10.14, allocations: 189.5 kB / 3.677 GB, free: 23.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/10.15, allocations: 3.441 MB / 3.681 GB, free: 22.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.637e-05/10.15, allocations: 7.469 kB / 3.681 GB, free: 22.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005078/10.15, allocations: 88.58 kB / 3.681 GB, free: 22.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/10.15, allocations: 101.5 kB / 3.681 GB, free: 22.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/10.16, allocations: 3.278 MB / 3.684 GB, free: 22.64 MB / 410.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.04823/10.21, allocations: 14.45 MB / 3.698 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01564/10.23, allocations: 2.667 MB / 3.701 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002944/10.23, allocations: 1.274 MB / 3.702 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006884/10.24, allocations: 3.737 MB / 3.706 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.322e-05/10.24, allocations: 64.59 kB / 3.706 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003881/10.24, allocations: 0.5692 MB / 3.706 GB, free: 12.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 8.273e-06/10.24, allocations: 0 / 3.706 GB, free: 12.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.03833/10.28, allocations: 10.12 MB / 3.716 GB, free: 11.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/10.28, allocations: 155.3 kB / 3.716 GB, free: 11.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/10.28, allocations: 1.21 MB / 3.717 GB, free: 11.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005075/10.28, allocations: 67.98 kB / 3.717 GB, free: 11.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004609/10.28, allocations: 0.7613 MB / 3.718 GB, free: 10.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007818/10.28, allocations: 0.6745 MB / 3.719 GB, free: 10.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/10.28, allocations: 43.16 kB / 3.719 GB, free: 10.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/10.28, allocations: 400.2 kB / 3.719 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002407/10.29, allocations: 1.108 MB / 3.72 GB, free: 9.816 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002744/10.29, allocations: 1.557 MB / 3.722 GB, free: 8.852 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002666/10.29, allocations: 1.224 MB / 3.723 GB, free: 8.379 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/10.29, allocations: 7.938 kB / 3.723 GB, free: 8.375 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.00847/10.3, allocations: 3.5 MB / 3.726 GB, free: 7.043 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009446/10.3, allocations: 4.888 MB / 3.731 GB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/10.3, allocations: 10.88 kB / 3.731 GB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005847/10.31, allocations: 1.55 MB / 3.733 GB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/10.31, allocations: 476.4 kB / 3.733 GB, free: 1.371 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008427/10.32, allocations: 6.572 MB / 3.74 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003482/10.32, allocations: 229 kB / 3.74 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006194/10.32, allocations: 118.6 kB / 3.74 GB, free: 10.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/10.32, allocations: 7.953 kB / 3.74 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008766/10.33, allocations: 3.13 MB / 3.743 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.88e-05/10.33, allocations: 12 kB / 3.743 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003596/10.34, allocations: 0.9953 MB / 3.744 GB, free: 7.039 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/10.34, allocations: 0.4934 MB / 3.745 GB, free: 6.633 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3023/10.64, allocations: 10.11 MB / 3.754 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00265/10.64, allocations: 217.4 kB / 3.755 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004322/10.64, allocations: 117.4 kB / 3.755 GB, free: 37.3 MB / 426.7 MB 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 {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.0008283/10.64, allocations: 244 kB / 3.755 GB, free: 37.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006579/10.65, allocations: 201.4 kB / 3.755 GB, free: 37.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0161/10.66, allocations: 9.642 MB / 3.765 GB, free: 36.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/10.66, allocations: 103.3 kB / 3.765 GB, free: 36.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/10.66, allocations: 0.9688 kB / 3.765 GB, free: 36.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.511e-05/10.66, allocations: 10.31 kB / 3.765 GB, free: 36.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04427/10.71, allocations: 13.13 MB / 3.777 GB, free: 35.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.395e-05/10.71, allocations: 0 / 3.777 GB, free: 35.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004677/10.71, allocations: 402.4 kB / 3.778 GB, free: 35.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01664/10.73, allocations: 4.696 MB / 3.782 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008862/10.73, allocations: 59.64 kB / 3.783 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01736/10.75, allocations: 8.743 MB / 3.791 GB, free: 30.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/10.75, allocations: 5.25 kB / 3.791 GB, free: 30.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02002/10.77, allocations: 10.23 MB / 3.801 GB, free: 29.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/10.77, allocations: 0.9107 MB / 3.802 GB, free: 29.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/10.77, allocations: 46.62 kB / 3.802 GB, free: 29.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003106/10.77, allocations: 235.3 kB / 3.802 GB, free: 29.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008286/10.77, allocations: 228.9 kB / 3.802 GB, free: 29.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004081/10.77, allocations: 90.11 kB / 3.803 GB, free: 29.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002446/10.78, allocations: 1.225 MB / 3.804 GB, free: 29.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.041e-06/10.78, allocations: 0 / 3.804 GB, free: 29.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01073/10.79, allocations: 2.354 MB / 3.806 GB, free: 29.39 MB / 426.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.0109/10.8, allocations: 2.613 MB / 3.809 GB, free: 29.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01456/10.81, allocations: 5.902 MB / 3.814 GB, free: 28.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/10.81, allocations: 7.25 kB / 3.814 GB, free: 28.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006964/10.82, allocations: 2.949 MB / 3.817 GB, free: 28.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00643/10.83, allocations: 1.035 MB / 3.818 GB, free: 28.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/10.84, allocations: 6.624 MB / 3.825 GB, free: 27.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/10.84, allocations: 2.2 MB / 3.827 GB, free: 26.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/10.84, allocations: 202.8 kB / 3.827 GB, free: 26.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.747e-06/10.84, allocations: 0 / 3.827 GB, free: 26.6 MB / 426.7 MB Notification: Performance of Templates: time 0.6286/11.47, allocations: 174.2 MB / 3.997 GB, free: 42 MB / 442.7 MB