Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") Notification: Performance of loadModel(ModelicaTest): time 1.903/1.903, allocations: 209.3 MB / 223.8 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.896e-05/2.895e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3456, allocations: 48.7 MB / 324.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV): time 0.05725/0.4029, allocations: 33.59 MB / 358.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03472/0.4377, allocations: 12.99 MB / 371.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.4391, allocations: 27.81 kB / 371.5 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.4413, allocations: 342.2 kB / 371.8 MB, free: 476 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02216/0.4635, allocations: 3.397 MB / 375.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.4709, allocations: 1.62 MB / 376.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002241/0.4732, allocations: 0.7472 MB / 377.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007163/0.4739, allocations: 267.5 kB / 377.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001859/0.4758, allocations: 0.5452 MB / 378.4 MB, free: 9.875 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008799/0.4847, allocations: 3.458 MB / 381.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02122/0.5059, allocations: 6.786 MB / 388.6 MB, free: 15.62 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002994/0.509, allocations: 412 kB / 389 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003911/0.5094, allocations: 135.5 kB / 389.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.5098, allocations: 84 kB / 389.3 MB, free: 15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00935/0.5192, allocations: 3.2 MB / 392.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.5192, allocations: 0 / 392.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5192, allocations: 0 / 392.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.994e-05/0.5193, allocations: 0 / 392.5 MB, free: 11.79 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.005001/0.5243, allocations: 1.373 MB / 393.8 MB, free: 10.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.717e-05/0.5244, allocations: 8.031 kB / 393.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00323/0.5276, allocations: 282.9 kB / 394.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.529, allocations: 0.4928 MB / 394.6 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.294e-05/0.5291, allocations: 45.31 kB / 394.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.5293, allocations: 52 kB / 394.7 MB, free: 9.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.5332, allocations: 0.9594 MB / 395.7 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.5333, allocations: 0 / 395.7 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.5334, allocations: 24 kB / 395.7 MB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.803e-05/0.5335, allocations: 24.98 kB / 395.7 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004165/0.5377, allocations: 0.8701 MB / 396.6 MB, free: 7.52 MB / 330.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.008462/0.5462, allocations: 4.662 MB / 401.2 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004209/0.5504, allocations: 0.7715 MB / 402 MB, free: 1.648 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07218/0.6226, allocations: 21.57 MB / 423.6 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.6227, allocations: 46.48 kB / 423.6 MB, free: 9.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 4.809e-06/0.6228, allocations: 3.984 kB / 423.6 MB, free: 9.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.01922/0.642, allocations: 2.964 MB / 426.6 MB, free: 6.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.6422, allocations: 119.3 kB / 426.7 MB, free: 6.172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009452/0.6431, allocations: 380.9 kB / 427.1 MB, free: 5.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.6433, allocations: 33.7 kB / 427.1 MB, free: 5.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004394/0.6437, allocations: 331.8 kB / 427.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/0.6441, allocations: 197.1 kB / 427.6 MB, free: 5.227 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/0.6442, allocations: 16 kB / 427.7 MB, free: 5.211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002891/0.6445, allocations: 362.8 kB / 428 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.6465, allocations: 317.8 kB / 428.3 MB, free: 4.539 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002367/0.649, allocations: 0.5226 MB / 428.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.6511, allocations: 366 kB / 429.2 MB, free: 3.574 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.6512, allocations: 4 kB / 429.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.006698/0.6579, allocations: 1.129 MB / 430.3 MB, free: 2.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00145/0.6594, allocations: 2.36 MB / 432.7 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/0.6594, allocations: 8 kB / 432.7 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004267/0.6637, allocations: 405.3 kB / 433.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.6652, allocations: 151.7 kB / 433.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004118/0.6694, allocations: 1.522 MB / 434.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.671, allocations: 79.91 kB / 434.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.6712, allocations: 35.98 kB / 434.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.6713, allocations: 8 kB / 434.9 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005861/0.6771, allocations: 1.003 MB / 435.9 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.6772, allocations: 4 kB / 435.9 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003904/0.6811, allocations: 409.6 kB / 436.3 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.6825, allocations: 151.7 kB / 436.4 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003978/0.6865, allocations: 1.483 MB / 437.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.6881, allocations: 87.88 kB / 438 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.6882, allocations: 32 kB / 438 MB, free: 10.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 62 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007276/0.689, allocations: 225.2 kB / 438.3 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.6892, allocations: 63.25 kB / 438.3 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009721/0.699, allocations: 3.423 MB / 441.7 MB, free: 6.641 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.529e-05/0.6991, allocations: 47.92 kB / 441.8 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.6991, allocations: 3.953 kB / 441.8 MB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.6992, allocations: 0 / 441.8 MB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.7105, allocations: 4.731 MB / 446.5 MB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.7106, allocations: 0 / 446.5 MB, free: 1.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007935/0.7114, allocations: 108.1 kB / 446.6 MB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003605/0.715, allocations: 0.8829 MB / 447.5 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.7152, allocations: 16 kB / 447.5 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003532/0.7187, allocations: 1.949 MB / 449.5 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7187, allocations: 0 / 449.5 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005973/0.7247, allocations: 2.27 MB / 451.8 MB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006852/0.7255, allocations: 318.9 kB / 452.1 MB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.7257, allocations: 12 kB / 452.1 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.7267, allocations: 91.7 kB / 452.2 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.7269, allocations: 60.47 kB / 452.2 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.778e-05/0.7271, allocations: 27.98 kB / 452.3 MB, free: 11.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007324/0.7278, allocations: 391.1 kB / 452.6 MB, free: 11.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7278, allocations: 0 / 452.6 MB, free: 11.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004755/0.7326, allocations: 1.238 MB / 453.9 MB, free: 10.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 7,2 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.007241/0.7399, allocations: 1.338 MB / 455.2 MB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007133/0.747, allocations: 1.787 MB / 457 MB, free: 7.148 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.7471, allocations: 4.062 kB / 457 MB, free: 7.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.7498, allocations: 0.9801 MB / 458 MB, free: 6.168 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.7525, allocations: 282.6 kB / 458.3 MB, free: 5.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006549/0.7591, allocations: 3.159 MB / 461.4 MB, free: 2.703 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009711/0.7601, allocations: 1.155 MB / 462.6 MB, free: 1.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002232/0.7624, allocations: 0.7539 MB / 463.3 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.7626, allocations: 51.42 kB / 463.4 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7626, allocations: 0 / 463.4 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of Templates: time 0.3662/1.129, allocations: 40.27 MB / 0.4918 GB, free: 126.3 MB / 410.7 MB "" Variables in the reference:time,Source.ports[1].m_flow,Source.ports[1].p,Source.ports[1].h_outflow,Sink.ports[1].m_flow,Sink.ports[1].p,Sink.ports[1].h_outflow,pump.port_b.m_flow,pump.port_b.p,pump.port_b.h_outflow,valveOpening.y,Valve.port_b.m_flow,Valve.port_b.p,Valve.port_b.h_outflow,downstreamPressure.y Variables in the result:Sink.T,Sink.X[1],Sink.flowDirection,Sink.medium.preferredMediumStates,Sink.medium.standardOrderComponents,Sink.nPorts,Sink.p,Sink.ports[1].h_outflow,Sink.ports[1].m_flow,Sink.ports[1].p,Source.T,Source.X[1],Source.flowDirection,Source.medium.preferredMediumStates,Source.medium.standardOrderComponents,Source.nPorts,Source.p,Source.p_in_internal,Source.ports[1].h_outflow,Source.ports[1].m_flow,Source.ports[1].p,Valve.allowFlowReversal,Valve.dp_nominal,Valve.dp_start,Valve.k,Valve.m_flow_nominal,Valve.m_flow_small,Valve.m_flow_start,Valve.opening,Valve.port_a_exposesState,Valve.port_b.h_outflow,Valve.port_b.m_flow,Valve.port_b.p,Valve.port_b_exposesState,Valve.showDesignFlowDirection,Valve.show_T,Valve.show_V_flow,downstreamPressure.duration,downstreamPressure.height,downstreamPressure.offset,downstreamPressure.startTime,downstreamPressure.y,pump.N_const,pump.N_in_internal,pump.N_nominal,pump.T_start,pump.V,pump.V_flow_single_init,pump.X_start[1],pump.allowFlowReversal,pump.checkValve,pump.delta_head_init,pump.energyDynamics,pump.g,pump.h_start,pump.heatTransfer.T_ambient,pump.heatTransfer.k,pump.heatTransfer.n,pump.heatTransfer.use_k,pump.initialize_p,pump.m_flow,pump.m_flow_start,pump.massDynamics,pump.medium.h,pump.medium.p,pump.medium.preferredMediumStates,pump.medium.standardOrderComponents,pump.nParallel,pump.p_a_start,pump.p_b_start,pump.p_start,pump.port_a_exposesState,pump.port_b.h_outflow,pump.port_b.m_flow,pump.port_b.p,pump.port_b_exposesState,pump.rho_nominal,pump.showDesignFlowDirection,pump.show_NPSHa,pump.substanceDynamics,pump.traceDynamics,pump.use_HeatTransfer,pump.use_N_in,pump.use_T_start,pump.use_powerCharacteristic,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,time,valveOpening.k,valveOpening.y