Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.419/2.419, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.956e-05, allocations: 4 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3928, allocations: 54.87 MB / 362.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.1222/0.5151, allocations: 66.41 MB / 429.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05011/0.5653, allocations: 23.01 MB / 452.3 MB, free: 4.211 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.5678, allocations: 71.44 kB / 452.4 MB, free: 4.141 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003914/0.5718, allocations: 0.9137 MB / 453.3 MB, free: 3.223 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01567/0.5875, allocations: 3.665 MB / 456.9 MB, free: 15.55 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02245/0.61, allocations: 5.578 MB / 462.5 MB, free: 9.973 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005004/0.6151, allocations: 1.809 MB / 464.3 MB, free: 8.16 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.6168, allocations: 0.6503 MB / 465 MB, free: 7.508 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0037/0.6205, allocations: 1.103 MB / 466.1 MB, free: 6.402 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001926/0.6225, allocations: 0.7049 MB / 466.8 MB, free: 5.695 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02437/0.6469, allocations: 7.781 MB / 474.6 MB, free: 13.91 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003639/0.6506, allocations: 476 kB / 475 MB, free: 13.44 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008415/0.6515, allocations: 291 kB / 475.3 MB, free: 13.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008351/0.6524, allocations: 176 kB / 475.5 MB, free: 12.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01279/0.6652, allocations: 4.459 MB / 479.9 MB, free: 8.516 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.6653, allocations: 0 / 479.9 MB, free: 8.516 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.131e-06/0.6653, allocations: 0 / 479.9 MB, free: 8.516 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.103e-05/0.6654, allocations: 3.938 kB / 480 MB, free: 8.512 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.00909/0.6745, allocations: 2.31 MB / 482.3 MB, free: 6.148 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.6745, allocations: 8.031 kB / 482.3 MB, free: 6.141 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/0.6855, allocations: 0.8801 MB / 483.1 MB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002706/0.6882, allocations: 0.9391 MB / 484.1 MB, free: 4.273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.6885, allocations: 106.4 kB / 484.2 MB, free: 4.168 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003557/0.6889, allocations: 116 kB / 484.3 MB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.699, allocations: 2.279 MB / 486.6 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.738e-05/0.6991, allocations: 3.938 kB / 486.6 MB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002675/0.6994, allocations: 60 kB / 486.6 MB, free: 1.555 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.41e-05/0.6995, allocations: 32 kB / 486.7 MB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/0.7108, allocations: 2.201 MB / 488.9 MB, free: 15.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/0.7289, allocations: 9.805 MB / 498.7 MB, free: 4.754 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008497/0.7375, allocations: 1.621 MB / 0.4886 GB, free: 3.121 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3714/1.109, allocations: 19.06 MB / 0.5072 GB, free: 115.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/1.109, allocations: 43.47 kB / 0.5072 GB, free: 115.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=88): time 4.088e-06/1.109, allocations: 0 / 0.5072 GB, free: 115.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=88): time 0.01382/1.123, allocations: 2.745 MB / 0.5099 GB, free: 114.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/1.123, allocations: 272.4 kB / 0.5102 GB, free: 114.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/1.124, allocations: 0.7521 MB / 0.5109 GB, free: 113.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/1.124, allocations: 41.52 kB / 0.511 GB, free: 113.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004458/1.125, allocations: 0.6798 MB / 0.5116 GB, free: 113.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/1.125, allocations: 302.3 kB / 0.5119 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.55e-05/1.125, allocations: 23.59 kB / 0.5119 GB, free: 112.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/1.126, allocations: 361.1 kB / 0.5123 GB, free: 112.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/1.128, allocations: 491.6 kB / 0.5127 GB, free: 112.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/1.13, allocations: 1.039 MB / 0.5138 GB, free: 110.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/1.132, allocations: 0.6023 MB / 0.5143 GB, free: 110.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/1.132, allocations: 4 kB / 0.5143 GB, free: 110.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005414/1.137, allocations: 1.546 MB / 0.5159 GB, free: 108.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001403/1.139, allocations: 6.878 MB / 0.5226 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/1.139, allocations: 20.08 kB / 0.5226 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.328e-05/1.139, allocations: 28 kB / 0.5226 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/1.142, allocations: 391.4 kB / 0.523 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.08e-05/1.142, allocations: 43.84 kB / 0.523 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/1.144, allocations: 238.2 kB / 0.5233 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/1.144, allocations: 79.97 kB / 0.5233 GB, free: 100.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/1.144, allocations: 5.406 kB / 0.5233 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005023/1.149, allocations: 1.462 MB / 0.5248 GB, free: 99.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.149, allocations: 16 kB / 0.5248 GB, free: 99.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/1.149, allocations: 32.16 kB / 0.5248 GB, free: 99.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/1.151, allocations: 387.4 kB / 0.5252 GB, free: 98.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.503e-05/1.151, allocations: 39.86 kB / 0.5252 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/1.153, allocations: 195 kB / 0.5254 GB, free: 98.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/1.153, allocations: 83.97 kB / 0.5255 GB, free: 98.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008206/1.154, allocations: 327.5 kB / 0.5258 GB, free: 98.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003257/1.154, allocations: 118.6 kB / 0.5259 GB, free: 97.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.165, allocations: 6.09 MB / 0.5319 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-05/1.165, allocations: 87.8 kB / 0.5319 GB, free: 91.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/1.165, allocations: 0 / 0.5319 GB, free: 91.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.467e-05/1.165, allocations: 3.984 kB / 0.532 GB, free: 91.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/1.169, allocations: 2.807 MB / 0.5347 GB, free: 88.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/1.169, allocations: 0 / 0.5347 GB, free: 88.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.171, allocations: 291.4 kB / 0.535 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/1.171, allocations: 7.938 kB / 0.535 GB, free: 88.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/1.171, allocations: 27.98 kB / 0.535 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.138e-05/1.171, allocations: 4 kB / 0.535 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.171, allocations: 0 / 0.535 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006197/1.178, allocations: 2.972 MB / 0.5379 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/1.179, allocations: 0.5277 MB / 0.5384 GB, free: 85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003945/1.179, allocations: 24 kB / 0.5384 GB, free: 84.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/1.181, allocations: 135.6 kB / 0.5386 GB, free: 84.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/1.181, allocations: 88.86 kB / 0.5387 GB, free: 84.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.292e-05/1.181, allocations: 36 kB / 0.5387 GB, free: 84.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001167/1.182, allocations: 0.6707 MB / 0.5394 GB, free: 84.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.182, allocations: 0 / 0.5394 GB, free: 84.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006055/1.188, allocations: 1.597 MB / 0.5409 GB, free: 82.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007213/1.196, allocations: 1.378 MB / 0.5423 GB, free: 81.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007967/1.204, allocations: 2.699 MB / 0.5449 GB, free: 78.69 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/1.204, allocations: 0 / 0.5449 GB, free: 78.69 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003074/1.207, allocations: 1.512 MB / 0.5464 GB, free: 77.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005323/1.212, allocations: 0.5714 MB / 0.5469 GB, free: 76.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/1.223, allocations: 5.844 MB / 0.5526 GB, free: 70.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/1.224, allocations: 1.654 MB / 0.5543 GB, free: 69.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000646/1.225, allocations: 135.4 kB / 0.5544 GB, free: 69 MB / 426.7 MB Notification: Performance of SimCode: time 1.292e-06/1.225, allocations: 7.938 kB / 0.5544 GB, free: 68.99 MB / 426.7 MB Notification: Performance of Templates: time 0.08821/1.313, allocations: 42.62 MB / 0.596 GB, free: 26.39 MB / 426.7 MB