Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.427e-05/2.431e-05, allocations: 4 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07847/0.07851, allocations: 38.76 MB / 266.9 MB, free: 0.4922 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0218/0.1004, allocations: 13.38 MB / 280.3 MB, free: 3.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.113, allocations: 5.734 MB / 286 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1141, allocations: 35.69 kB / 286.1 MB, free: 13.29 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001096/0.1152, allocations: 278.5 kB / 286.3 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003059/0.1183, allocations: 0.7708 MB / 287.1 MB, free: 12.24 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004847/0.1232, allocations: 1.192 MB / 288.3 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002402/0.1256, allocations: 0.922 MB / 289.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008938/0.1265, allocations: 419.7 kB / 289.6 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.1278, allocations: 0.5105 MB / 290.1 MB, free: 9.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.1289, allocations: 490.6 kB / 290.6 MB, free: 8.723 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003226/0.1321, allocations: 1.088 MB / 291.7 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005284/0.1327, allocations: 84 kB / 291.8 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004622/0.1332, allocations: 251.3 kB / 292 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.1336, allocations: 84 kB / 292.1 MB, free: 7.223 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003016/0.1366, allocations: 1.278 MB / 293.4 MB, free: 5.941 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1366, allocations: 0 / 293.4 MB, free: 5.941 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1367, allocations: 0 / 293.4 MB, free: 5.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.1367, allocations: 0 / 293.4 MB, free: 5.941 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.00344/0.1401, allocations: 1.022 MB / 294.4 MB, free: 4.867 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1402, allocations: 8.031 kB / 294.4 MB, free: 4.859 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004932/0.1407, allocations: 99.05 kB / 294.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.1422, allocations: 0.5817 MB / 295.1 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.1423, allocations: 108.7 kB / 295.2 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.1425, allocations: 55.97 kB / 295.3 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002389/0.1449, allocations: 0.8962 MB / 296.1 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.802e-05/0.145, allocations: 0 / 296.1 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.1451, allocations: 19.98 kB / 296.2 MB, free: 3.023 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.1453, allocations: 53.28 kB / 296.2 MB, free: 2.969 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002425/0.1477, allocations: 0.8444 MB / 297.1 MB, free: 2.125 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.2182/0.3659, allocations: 3.484 MB / 300.5 MB, free: 30.14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.3677, allocations: 0.6566 MB / 301.2 MB, free: 30.12 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00474/0.3725, allocations: 2.066 MB / 303.3 MB, free: 28.7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.3726, allocations: 47.03 kB / 303.3 MB, free: 28.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 4.478e-06/0.3726, allocations: 1.172 kB / 303.3 MB, free: 28.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=66): time 0.01204/0.3846, allocations: 2.865 MB / 306.2 MB, free: 27.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.3847, allocations: 84.23 kB / 306.3 MB, free: 27.35 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.3859, allocations: 0.599 MB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.3861, allocations: 41.42 kB / 306.9 MB, free: 27.05 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.3864, allocations: 330.2 kB / 307.2 MB, free: 26.78 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.3867, allocations: 234.8 kB / 307.5 MB, free: 26.61 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/0.3867, allocations: 15.38 kB / 307.5 MB, free: 26.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3869, allocations: 390.2 kB / 307.9 MB, free: 26.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3879, allocations: 357.1 kB / 308.2 MB, free: 26.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.3891, allocations: 0.511 MB / 308.7 MB, free: 25.82 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.3902, allocations: 414.7 kB / 309.1 MB, free: 25.65 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.3902, allocations: 2.312 kB / 309.1 MB, free: 25.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003268/0.3935, allocations: 1.15 MB / 310.3 MB, free: 25.19 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000345/0.3939, allocations: 1.656 MB / 311.9 MB, free: 23.44 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.3939, allocations: 4.906 kB / 311.9 MB, free: 23.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.396, allocations: 451.9 kB / 312.4 MB, free: 23.36 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3973, allocations: 162.1 kB / 312.5 MB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.3992, allocations: 1.022 MB / 313.6 MB, free: 22.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.4004, allocations: 48.34 kB / 313.6 MB, free: 22.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4005, allocations: 32.55 kB / 313.6 MB, free: 22.61 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4006, allocations: 11.97 kB / 313.6 MB, free: 22.61 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002626/0.4032, allocations: 0.9381 MB / 314.6 MB, free: 22.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.4033, allocations: 3.531 kB / 314.6 MB, free: 22.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009462/0.4042, allocations: 248.2 kB / 314.8 MB, free: 22.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.4055, allocations: 167.3 kB / 315 MB, free: 21.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.4065, allocations: 0.8054 MB / 315.8 MB, free: 21.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.4076, allocations: 52.14 kB / 315.8 MB, free: 21.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.4077, allocations: 35.61 kB / 315.9 MB, free: 21.25 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006006/0.4083, allocations: 257.2 kB / 316.1 MB, free: 21.05 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.4085, allocations: 75.34 kB / 316.2 MB, free: 21.01 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/0.4115, allocations: 1.097 MB / 317.3 MB, free: 20.38 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.4116, allocations: 7.25 kB / 317.3 MB, free: 20.38 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.4116, allocations: 4 kB / 317.3 MB, free: 20.38 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4116, allocations: 3.984 kB / 317.3 MB, free: 20.38 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004608/0.4163, allocations: 1.993 MB / 319.3 MB, free: 19.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.4163, allocations: 0 / 319.3 MB, free: 19.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.4174, allocations: 125.7 kB / 319.4 MB, free: 19.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001833/0.4192, allocations: 445.7 kB / 319.9 MB, free: 18.86 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.4193, allocations: 23.11 kB / 319.9 MB, free: 18.85 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.421, allocations: 1.023 MB / 320.9 MB, free: 18.05 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.421, allocations: 0 / 320.9 MB, free: 18.05 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/0.4247, allocations: 1.598 MB / 322.5 MB, free: 17.14 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000605/0.4254, allocations: 251.4 kB / 322.8 MB, free: 16.92 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.4256, allocations: 16 kB / 322.8 MB, free: 16.91 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.4267, allocations: 43.97 kB / 322.8 MB, free: 16.86 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.4269, allocations: 64.5 kB / 322.9 MB, free: 16.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.876e-05/0.427, allocations: 23.98 kB / 322.9 MB, free: 16.78 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007344/0.4278, allocations: 475 kB / 323.4 MB, free: 16.32 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4278, allocations: 0 / 323.4 MB, free: 16.32 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001947/0.4297, allocations: 0.5826 MB / 323.9 MB, free: 15.79 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/0.4311, allocations: 476.9 kB / 324.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004225/0.4354, allocations: 1.389 MB / 325.8 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.4354, allocations: 192 / 325.8 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.4371, allocations: 471.5 kB / 326.3 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.4398, allocations: 350.6 kB / 326.6 MB, free: 13.2 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/0.4444, allocations: 2.023 MB / 328.6 MB, free: 11.15 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004926/0.445, allocations: 1.008 MB / 329.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.002034/0.447, allocations: 370.3 kB / 330 MB, free: 9.75 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.4473, allocations: 63.42 kB / 330.1 MB, free: 9.688 MB / 250.7 MB Notification: Performance of SimCode: time 1.453e-06/0.4473, allocations: 7.938 kB / 330.1 MB, free: 9.68 MB / 250.7 MB Notification: Performance of Templates: time 0.0529/0.5002, allocations: 21.57 MB / 351.6 MB, free: 4.16 MB / 266.7 MB "" Variables in the reference:time,tank1.level,tank2.level,tank2.ports[1].m_flow Variables in the result:pipe.V,pipe.allowFlowReversal,pipe.crossArea,pipe.diameter,pipe.flowModel.Re_turbulent,pipe.flowModel.allowFlowReversal,pipe.flowModel.constantPressureLossCoefficient,pipe.flowModel.continuousFlowReversal,pipe.flowModel.crossAreas[1],pipe.flowModel.crossAreas[2],pipe.flowModel.dheights[1],pipe.flowModel.dp_nominal,pipe.flowModel.dp_small,pipe.flowModel.from_dp,pipe.flowModel.g,pipe.flowModel.m,pipe.flowModel.m_flow_nominal,pipe.flowModel.m_flow_small,pipe.flowModel.m_flow_start,pipe.flowModel.momentumDynamics,pipe.flowModel.mu_nominal,pipe.flowModel.n,pipe.flowModel.nParallel,pipe.flowModel.p_a_start,pipe.flowModel.p_b_start,pipe.flowModel.pathLengths[1],pipe.flowModel.pathLengths_internal[1],pipe.flowModel.rho_nominal,pipe.flowModel.roughnesses[1],pipe.flowModel.roughnesses[2],pipe.flowModel.show_Res,pipe.flowModel.useUpstreamScheme,pipe.flowModel.use_Ib_flows,pipe.flowModel.use_mu_nominal,pipe.flowModel.use_rho_nominal,pipe.height_ab,pipe.isCircular,pipe.length,pipe.m_flow_start,pipe.nParallel,pipe.p_a_start,pipe.p_b_start,pipe.perimeter,pipe.port_a_exposesState,pipe.port_b_exposesState,pipe.roughness,pipe.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,tank1.T_ambient,tank1.T_start,tank1.X_start[1],tank1.crossArea,tank1.energyDynamics,tank1.fluidLevel_max,tank1.h_start,tank1.heatTransfer.T_ambient,tank1.heatTransfer.k,tank1.heatTransfer.n,tank1.heatTransfer.states[1].p,tank1.heatTransfer.use_k,tank1.height,tank1.initialize_p,tank1.level,tank1.level_start,tank1.level_start_eps,tank1.m_flow_nominal,tank1.m_flow_small,tank1.m_flow_turbulent[1],tank1.massDynamics,tank1.medium.p,tank1.medium.preferredMediumStates,tank1.medium.standardOrderComponents,tank1.medium.state.p,tank1.nPorts,tank1.p_ambient,tank1.p_start,tank1.portsData[1].diameter,tank1.portsData[1].height,tank1.portsData[1].zeta_in,tank1.portsData[1].zeta_out,tank1.portsData_diameter[1],tank1.portsData_diameter_internal[1],tank1.portsData_height[1],tank1.portsData_height_internal[1],tank1.portsData_zeta_in[1],tank1.portsData_zeta_in_internal[1],tank1.portsData_zeta_out[1],tank1.portsData_zeta_out_internal[1],tank1.substanceDynamics,tank1.traceDynamics,tank1.use_HeatTransfer,tank1.use_Re,tank1.use_T_start,tank1.use_portsData,tank1.vesselArea,tank2.T_ambient,tank2.T_start,tank2.X_start[1],tank2.crossArea,tank2.energyDynamics,tank2.fluidLevel_max,tank2.h_start,tank2.heatTransfer.T_ambient,tank2.heatTransfer.k,tank2.heatTransfer.n,tank2.heatTransfer.states[1].p,tank2.heatTransfer.use_k,tank2.height,tank2.initialize_p,tank2.level,tank2.level_start,tank2.level_start_eps,tank2.m_flow_nominal,tank2.m_flow_small,tank2.m_flow_turbulent[1],tank2.massDynamics,tank2.mb_flow,tank2.medium.p,tank2.medium.preferredMediumStates,tank2.medium.standardOrderComponents,tank2.medium.state.p,tank2.nPorts,tank2.p_ambient,tank2.p_start,tank2.portsData[1].diameter,tank2.portsData[1].height,tank2.portsData[1].zeta_in,tank2.portsData[1].zeta_out,tank2.portsData_diameter[1],tank2.portsData_diameter_internal[1],tank2.portsData_height[1],tank2.portsData_height_internal[1],tank2.portsData_zeta_in[1],tank2.portsData_zeta_in_internal[1],tank2.portsData_zeta_out[1],tank2.portsData_zeta_out_internal[1],tank2.ports[1].m_flow,tank2.substanceDynamics,tank2.traceDynamics,tank2.use_HeatTransfer,tank2.use_Re,tank2.use_T_start,tank2.use_portsData,tank2.vesselArea,time