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.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.801/1.801, allocations: 194.9 MB / 210.6 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.548e-05, allocations: 0 / 258.8 MB, free: 7.871 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2855, allocations: 44.5 MB / 303.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02126/0.3069, allocations: 13.37 MB / 316.7 MB, free: 184 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.3191, allocations: 5.742 MB / 322.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009799/0.3201, allocations: 31.75 kB / 322.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009721/0.3211, allocations: 278.5 kB / 322.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002792/0.3239, allocations: 0.7552 MB / 323.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004569/0.3285, allocations: 1.2 MB / 324.7 MB, free: 8.164 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002272/0.3308, allocations: 0.9258 MB / 325.6 MB, free: 7.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007957/0.3316, allocations: 427.6 kB / 326 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.3327, allocations: 0.5065 MB / 326.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.3338, allocations: 490.7 kB / 327 MB, free: 5.828 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.3368, allocations: 1.085 MB / 328.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005486/0.3374, allocations: 91.94 kB / 328.2 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.3379, allocations: 243.3 kB / 328.4 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003529/0.3383, allocations: 84 kB / 328.5 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.3413, allocations: 1.274 MB / 329.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3414, allocations: 0 / 329.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3414, allocations: 0 / 329.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.3414, allocations: 0 / 329.8 MB, free: 3.055 MB / 266.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.004597/0.346, allocations: 1.037 MB / 330.8 MB, free: 1.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/0.3461, allocations: 8.031 kB / 330.8 MB, free: 1.961 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008075/0.3469, allocations: 98.95 kB / 330.9 MB, free: 1.863 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002131/0.3491, allocations: 0.5663 MB / 331.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002407/0.3493, allocations: 104.7 kB / 331.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002965/0.3497, allocations: 55.89 kB / 331.6 MB, free: 1.082 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/0.3533, allocations: 0.8923 MB / 332.5 MB, free: 168 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.3534, allocations: 0 / 332.5 MB, free: 168 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.3536, allocations: 31.94 kB / 332.6 MB, free: 136 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.3538, allocations: 53.22 kB / 332.6 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003339/0.3572, allocations: 0.8405 MB / 333.5 MB, free: 15.24 MB / 282.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.01252/0.3697, allocations: 3.495 MB / 337 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002413/0.3722, allocations: 0.657 MB / 337.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006772/0.379, allocations: 2.078 MB / 339.7 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.206e-05/0.3791, allocations: 39.12 kB / 339.7 MB, free: 8.562 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 4.839e-06/0.3791, allocations: 0 / 339.7 MB, free: 8.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.01795/0.3971, allocations: 2.868 MB / 342.6 MB, free: 5.625 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.3972, allocations: 85.67 kB / 342.7 MB, free: 5.523 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.3989, allocations: 0.601 MB / 343.3 MB, free: 4.918 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001957/0.3992, allocations: 41.7 kB / 343.3 MB, free: 4.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004859/0.3997, allocations: 328.4 kB / 343.6 MB, free: 4.543 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004201/0.4001, allocations: 228.7 kB / 343.9 MB, free: 4.316 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.4003, allocations: 16 kB / 343.9 MB, free: 4.301 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003011/0.4006, allocations: 386.8 kB / 344.3 MB, free: 3.914 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.4023, allocations: 357.8 kB / 344.6 MB, free: 3.566 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.4041, allocations: 0.5112 MB / 345.1 MB, free: 2.992 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.4058, allocations: 419 kB / 345.5 MB, free: 2.586 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.4059, allocations: 3.953 kB / 345.5 MB, free: 2.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.005183/0.4111, allocations: 1.145 MB / 346.7 MB, free: 1.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009641/0.4121, allocations: 1.663 MB / 348.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.4121, allocations: 7.938 kB / 348.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003064/0.4152, allocations: 444.4 kB / 348.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/0.4172, allocations: 155.8 kB / 348.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.4202, allocations: 1.032 MB / 350 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.4219, allocations: 47.95 kB / 350 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.4221, allocations: 35.98 kB / 350.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4221, allocations: 4 kB / 350.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004293/0.4264, allocations: 0.9338 MB / 351 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.4265, allocations: 8.094 kB / 351 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.4279, allocations: 244.7 kB / 351.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.4299, allocations: 171.8 kB / 351.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.4317, allocations: 0.8097 MB / 352.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4332, allocations: 36.03 kB / 352.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.4334, allocations: 39.98 kB / 352.3 MB, free: 11.62 MB / 298.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.0008887/0.4343, allocations: 249.6 kB / 352.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/0.4347, allocations: 83.02 kB / 352.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004945/0.4396, allocations: 1.091 MB / 353.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.4397, allocations: 4 kB / 353.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.4397, allocations: 4 kB / 353.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/0.4398, allocations: 7.984 kB / 353.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007779/0.4476, allocations: 1.998 MB / 355.7 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.4476, allocations: 4 kB / 355.7 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.4494, allocations: 115.8 kB / 355.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002971/0.4524, allocations: 453.4 kB / 356.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001712/0.4526, allocations: 23.98 kB / 356.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002886/0.4555, allocations: 1.031 MB / 357.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4555, allocations: 0 / 357.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006329/0.4619, allocations: 1.595 MB / 358.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009532/0.4629, allocations: 248 kB / 359.2 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003256/0.4632, allocations: 19.98 kB / 359.2 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.4649, allocations: 47.91 kB / 359.2 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.4652, allocations: 60.56 kB / 359.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/0.4653, allocations: 23.98 kB / 359.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001368/0.4667, allocations: 475 kB / 359.8 MB, free: 3.977 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.4667, allocations: 0 / 359.8 MB, free: 3.977 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003335/0.4701, allocations: 0.574 MB / 360.4 MB, free: 3.402 MB / 298.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.002239/0.4724, allocations: 482.8 kB / 360.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007251/0.4797, allocations: 1.377 MB / 362.2 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.4797, allocations: 0.75 kB / 362.2 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002718/0.4825, allocations: 475.4 kB / 362.7 MB, free: 1.086 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004397/0.4869, allocations: 350.9 kB / 363 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007917/0.4949, allocations: 2.033 MB / 365 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.496, allocations: 1.004 MB / 366 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.003282/0.4993, allocations: 370.4 kB / 366.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.4997, allocations: 67.41 kB / 366.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4997, allocations: 4 kB / 366.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of Templates: time 0.06288/0.5626, allocations: 21.59 MB / 388.1 MB, free: 7.637 MB / 330.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