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.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 1.975/1.975, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.478e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3522, allocations: 48.69 MB / 324.9 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.1201/0.4724, allocations: 65.89 MB / 390.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05889/0.5313, allocations: 22.78 MB / 413.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002948/0.5343, allocations: 71.44 kB / 413.6 MB, free: 6.578 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005137/0.5396, allocations: 0.9176 MB / 414.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02078/0.5604, allocations: 3.646 MB / 418.2 MB, free: 2 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02269/0.5831, allocations: 5.511 MB / 423.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005062/0.5882, allocations: 1.766 MB / 425.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.59, allocations: 0.6543 MB / 426.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003873/0.5939, allocations: 1.079 MB / 427.2 MB, free: 8.988 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002343/0.5963, allocations: 0.7009 MB / 427.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02595/0.6224, allocations: 7.606 MB / 435.5 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003578/0.626, allocations: 456 kB / 436 MB, free: 232 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008353/0.6269, allocations: 295 kB / 436.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008042/0.6277, allocations: 176 kB / 436.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.6406, allocations: 4.365 MB / 440.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6407, allocations: 7.938 kB / 440.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.6407, allocations: 0 / 440.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.479e-05/0.6408, allocations: 4 kB / 440.8 MB, free: 11.38 MB / 378.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.008842/0.6496, allocations: 2.239 MB / 443 MB, free: 9.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.6497, allocations: 8.031 kB / 443 MB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01837/0.6681, allocations: 0.8371 MB / 443.9 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.6709, allocations: 0.9313 MB / 444.8 MB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.6712, allocations: 102.4 kB / 444.9 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003925/0.6716, allocations: 116 kB / 445 MB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.6872, allocations: 2.271 MB / 447.3 MB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.6873, allocations: 7.938 kB / 447.3 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005714/0.6879, allocations: 56 kB / 447.3 MB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.187e-05/0.688, allocations: 32 kB / 447.4 MB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.7006, allocations: 2.201 MB / 449.6 MB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.7195, allocations: 9.813 MB / 459.4 MB, free: 7.738 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008432/0.7279, allocations: 1.629 MB / 461 MB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07596/0.804, allocations: 19.06 MB / 480.1 MB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/0.8041, allocations: 43.56 kB / 480.1 MB, free: 1.219 MB / 410.7 MB Notification: Performance of pre-optimization done (n=88): time 4.007e-06/0.8041, allocations: 0 / 480.1 MB, free: 1.219 MB / 410.7 MB Notification: Performance of matching and sorting (n=88): time 0.341/1.145, allocations: 2.743 MB / 482.9 MB, free: 134 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/1.145, allocations: 269.3 kB / 483.1 MB, free: 133.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/1.147, allocations: 0.744 MB / 483.9 MB, free: 133.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/1.147, allocations: 39.64 kB / 483.9 MB, free: 133.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006543/1.148, allocations: 0.674 MB / 484.6 MB, free: 132.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004748/1.148, allocations: 309.1 kB / 484.9 MB, free: 132.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/1.149, allocations: 25.88 kB / 484.9 MB, free: 132.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/1.149, allocations: 353.6 kB / 485.3 MB, free: 132.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00236/1.151, allocations: 490.9 kB / 485.7 MB, free: 132.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002688/1.154, allocations: 1.042 MB / 486.8 MB, free: 131.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002581/1.156, allocations: 0.5985 MB / 487.4 MB, free: 131.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/1.157, allocations: 5.031 kB / 487.4 MB, free: 131.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.007702/1.164, allocations: 1.606 MB / 489 MB, free: 130.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002036/1.166, allocations: 6.882 MB / 495.9 MB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.695e-05/1.167, allocations: 18.03 kB / 495.9 MB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.575e-05/1.167, allocations: 28.36 kB / 495.9 MB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/1.17, allocations: 391.3 kB / 496.3 MB, free: 123.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.49e-05/1.17, allocations: 41.52 kB / 496.3 MB, free: 123.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00238/1.172, allocations: 229.5 kB / 496.6 MB, free: 123.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/1.173, allocations: 79.23 kB / 496.6 MB, free: 123.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.173, allocations: 6.938 kB / 496.6 MB, free: 123.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005912/1.178, allocations: 1.462 MB / 498.1 MB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-05/1.179, allocations: 18.62 kB / 498.1 MB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.48e-05/1.179, allocations: 27.81 kB / 498.2 MB, free: 122.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/1.181, allocations: 391.6 kB / 498.5 MB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-05/1.181, allocations: 37.39 kB / 498.6 MB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/1.184, allocations: 205.3 kB / 498.8 MB, free: 122.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004496/1.184, allocations: 80.14 kB / 498.9 MB, free: 122.6 MB / 410.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.001318/1.185, allocations: 328.3 kB / 499.2 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004054/1.186, allocations: 122.4 kB / 499.3 MB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01336/1.199, allocations: 6.087 MB / 0.4935 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/1.199, allocations: 85.58 kB / 0.4936 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.199, allocations: 0 / 0.4936 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.2e-05/1.199, allocations: 7.406 kB / 0.4936 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005151/1.205, allocations: 2.805 MB / 0.4964 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.205, allocations: 0 / 0.4964 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/1.207, allocations: 296.2 kB / 0.4966 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.559e-05/1.207, allocations: 6.641 kB / 0.4967 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.207, allocations: 25.25 kB / 0.4967 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.374e-05/1.207, allocations: 4.031 kB / 0.4967 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.207, allocations: 1.594 kB / 0.4967 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007626/1.215, allocations: 2.973 MB / 0.4996 GB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/1.216, allocations: 0.5294 MB / 0.5001 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/1.216, allocations: 19.91 kB / 0.5001 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/1.218, allocations: 131.8 kB / 0.5002 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/1.218, allocations: 92.11 kB / 0.5003 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.205e-05/1.218, allocations: 38.61 kB / 0.5004 GB, free: 116.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001173/1.219, allocations: 0.6682 MB / 0.501 GB, free: 116.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.219, allocations: 0 / 0.501 GB, free: 116.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006145/1.226, allocations: 1.59 MB / 0.5026 GB, free: 116 MB / 410.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.006816/1.232, allocations: 1.368 MB / 0.5039 GB, free: 115.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008173/1.241, allocations: 2.724 MB / 0.5066 GB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.241, allocations: 8 kB / 0.5066 GB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003642/1.244, allocations: 1.504 MB / 0.508 GB, free: 112.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005923/1.25, allocations: 0.5798 MB / 0.5086 GB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/1.261, allocations: 5.799 MB / 0.5143 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/1.263, allocations: 1.664 MB / 0.5159 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004933/1.267, allocations: 2.005 MB / 0.5179 GB, free: 102.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005223/1.268, allocations: 119.4 kB / 0.518 GB, free: 102.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/1.268, allocations: 0 / 0.518 GB, free: 102.6 MB / 410.7 MB Notification: Performance of Templates: time 0.1089/1.377, allocations: 48.49 MB / 0.5653 GB, free: 54.16 MB / 410.7 MB