Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 2.44/2.44, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.399e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3921, allocations: 54.86 MB / 362.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.09389/0.486, allocations: 52.03 MB / 414.9 MB, free: 9.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04355/0.5296, allocations: 19.92 MB / 434.8 MB, free: 5.602 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.5317, allocations: 51.56 kB / 434.9 MB, free: 5.551 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002999/0.5347, allocations: 0.6882 MB / 435.5 MB, free: 4.859 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01399/0.5488, allocations: 3.334 MB / 438.9 MB, free: 1.516 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01888/0.5677, allocations: 4.59 MB / 443.5 MB, free: 12.92 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003952/0.5717, allocations: 1.366 MB / 444.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.573, allocations: 0.493 MB / 445.3 MB, free: 11.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002928/0.576, allocations: 0.8609 MB / 446.2 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.5775, allocations: 0.5374 MB / 446.7 MB, free: 9.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02361/0.6012, allocations: 7.422 MB / 454.2 MB, free: 2.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003464/0.6047, allocations: 455.9 kB / 454.6 MB, free: 1.785 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006406/0.6054, allocations: 223.2 kB / 454.8 MB, free: 1.566 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006091/0.606, allocations: 132 kB / 454.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.6176, allocations: 3.917 MB / 458.9 MB, free: 13.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.6177, allocations: 0 / 458.9 MB, free: 13.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6177, allocations: 4 kB / 458.9 MB, free: 13.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.914e-05/0.6177, allocations: 0 / 458.9 MB, free: 13.51 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007483/0.6252, allocations: 1.942 MB / 460.8 MB, free: 11.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.6253, allocations: 8.031 kB / 460.8 MB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007889/0.6332, allocations: 0.6697 MB / 461.5 MB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.6353, allocations: 0.7525 MB / 462.2 MB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.6355, allocations: 78 kB / 462.3 MB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/0.6357, allocations: 88 kB / 462.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007259/0.643, allocations: 1.727 MB / 464.1 MB, free: 8.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.827e-05/0.6431, allocations: 11.88 kB / 464.1 MB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001921/0.6433, allocations: 44 kB / 464.2 MB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/0.6433, allocations: 20 kB / 464.2 MB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008242/0.6516, allocations: 1.666 MB / 465.9 MB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/0.6657, allocations: 7.397 MB / 473.3 MB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006376/0.6721, allocations: 1.215 MB / 474.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07617/0.7483, allocations: 17.77 MB / 492.3 MB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.466e-05/0.7485, allocations: 51.08 kB / 492.3 MB, free: 9.547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=67): time 4.238e-06/0.7485, allocations: 3.938 kB / 492.3 MB, free: 9.543 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.01163/0.7601, allocations: 2.086 MB / 494.4 MB, free: 7.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.7603, allocations: 218.1 kB / 494.6 MB, free: 7.191 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.7616, allocations: 0.6016 MB / 495.2 MB, free: 6.582 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002327/0.7619, allocations: 37.7 kB / 495.2 MB, free: 6.539 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005417/0.7625, allocations: 0.5436 MB / 495.8 MB, free: 5.988 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.7629, allocations: 236.7 kB / 496 MB, free: 5.754 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/0.763, allocations: 20 kB / 496 MB, free: 5.734 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.7631, allocations: 350.8 kB / 496.4 MB, free: 5.383 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.7649, allocations: 370.4 kB / 496.7 MB, free: 5.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.7671, allocations: 0.7915 MB / 497.5 MB, free: 4.031 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.7691, allocations: 465.8 kB / 498 MB, free: 3.574 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/0.7691, allocations: 4 kB / 498 MB, free: 3.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004911/0.774, allocations: 1.19 MB / 499.2 MB, free: 2.375 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3379/1.112, allocations: 5.045 MB / 0.4924 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.697e-05/1.112, allocations: 13.12 kB / 0.4924 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.193e-05/1.112, allocations: 27.77 kB / 0.4924 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/1.114, allocations: 297.7 kB / 0.4927 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.416e-05/1.115, allocations: 27.42 kB / 0.4928 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/1.116, allocations: 181.6 kB / 0.4929 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002988/1.117, allocations: 61.41 kB / 0.493 GB, free: 122.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.117, allocations: 4.125 kB / 0.493 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004838/1.122, allocations: 1.119 MB / 0.4941 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.122, allocations: 13.53 kB / 0.4941 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.684e-05/1.122, allocations: 20.5 kB / 0.4941 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/1.124, allocations: 300.5 kB / 0.4944 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.266e-05/1.124, allocations: 26.06 kB / 0.4944 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/1.125, allocations: 151.3 kB / 0.4946 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/1.125, allocations: 66.3 kB / 0.4946 GB, free: 122.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 127 * 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.0008169/1.126, allocations: 275.3 kB / 0.4949 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003539/1.127, allocations: 92.38 kB / 0.495 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009418/1.136, allocations: 4.642 MB / 0.4995 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.26e-05/1.136, allocations: 64.5 kB / 0.4996 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/1.136, allocations: 0 / 0.4996 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/1.136, allocations: 3.656 kB / 0.4996 GB, free: 120.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/1.14, allocations: 2.169 MB / 0.5017 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.14, allocations: 0 / 0.5017 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/1.141, allocations: 223.7 kB / 0.5019 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-05/1.141, allocations: 10.55 kB / 0.5019 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-05/1.141, allocations: 19.81 kB / 0.5019 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.475e-06/1.141, allocations: 1.438 kB / 0.5019 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.141, allocations: 0 / 0.5019 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/1.146, allocations: 2.286 MB / 0.5042 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009179/1.147, allocations: 446.1 kB / 0.5046 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/1.147, allocations: 19.84 kB / 0.5046 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/1.148, allocations: 100.5 kB / 0.5047 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/1.149, allocations: 71.03 kB / 0.5048 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/1.149, allocations: 31.19 kB / 0.5048 GB, free: 117.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000996/1.15, allocations: 0.5678 MB / 0.5054 GB, free: 117.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.15, allocations: 0 / 0.5054 GB, free: 117.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005503/1.155, allocations: 1.439 MB / 0.5068 GB, free: 117.2 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: 42 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.006988/1.162, allocations: 1.319 MB / 0.5081 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00597/1.168, allocations: 2.055 MB / 0.5101 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.168, allocations: 4 kB / 0.5101 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/1.171, allocations: 1.137 MB / 0.5112 GB, free: 113.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.175, allocations: 463.6 kB / 0.5116 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00809/1.183, allocations: 4.556 MB / 0.5161 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008632/1.184, allocations: 1.426 MB / 0.5175 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004906/1.184, allocations: 107.4 kB / 0.5176 GB, free: 107 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.184, allocations: 0 / 0.5176 GB, free: 107 MB / 426.7 MB Notification: Performance of Templates: time 0.07513/1.259, allocations: 37.24 MB / 0.5539 GB, free: 69.72 MB / 426.7 MB