Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.293/2.293, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.225e-05/3.236e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1285, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse): time 0.4369/0.5654, allocations: 61.21 MB / 472.1 MB, free: 7.074 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04417/0.6096, allocations: 21.91 MB / 494 MB, free: 4.48 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002568/0.6123, allocations: 55.56 kB / 494.1 MB, free: 4.426 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003583/0.6159, allocations: 0.832 MB / 494.9 MB, free: 3.59 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01789/0.6338, allocations: 4.58 MB / 499.5 MB, free: 15 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01669/0.6506, allocations: 4.283 MB / 0.492 GB, free: 10.71 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004617/0.6552, allocations: 1.687 MB / 0.4936 GB, free: 9.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00171/0.657, allocations: 0.7294 MB / 0.4944 GB, free: 8.285 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003475/0.6605, allocations: 1.095 MB / 0.4954 GB, free: 7.188 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03397/0.6945, allocations: 14.43 MB / 0.5095 GB, free: 8.746 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02219/0.7168, allocations: 7.539 MB / 0.5169 GB, free: 1.199 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003427/0.7202, allocations: 480 kB / 0.5173 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000802/0.7211, allocations: 322.9 kB / 0.5176 GB, free: 424 kB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007143/0.7218, allocations: 168 kB / 0.5178 GB, free: 256 kB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.7334, allocations: 4.303 MB / 0.522 GB, free: 11.94 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7335, allocations: 0 / 0.522 GB, free: 11.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7335, allocations: 0 / 0.522 GB, free: 11.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.155e-05/0.7335, allocations: 0 / 0.522 GB, free: 11.94 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01194/0.7455, allocations: 2.523 MB / 0.5245 GB, free: 9.359 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.7456, allocations: 11.97 kB / 0.5245 GB, free: 9.348 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008964/0.7545, allocations: 0.7785 MB / 0.5252 GB, free: 8.566 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.757, allocations: 0.9119 MB / 0.5261 GB, free: 7.609 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.7572, allocations: 102.2 kB / 0.5262 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003408/0.7576, allocations: 116 kB / 0.5263 GB, free: 7.395 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008903/0.7665, allocations: 2.168 MB / 0.5285 GB, free: 5.102 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.363e-05/0.7666, allocations: 7.938 kB / 0.5285 GB, free: 5.094 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.7669, allocations: 48 kB / 0.5285 GB, free: 5.047 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.972e-05/0.7669, allocations: 32 kB / 0.5285 GB, free: 5.016 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01033/0.7772, allocations: 2.193 MB / 0.5307 GB, free: 2.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.7975, allocations: 8.766 MB / 0.5392 GB, free: 9.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0116/0.8091, allocations: 2.157 MB / 0.5413 GB, free: 7.266 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08563/0.8948, allocations: 24.28 MB / 0.5651 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.8949, allocations: 51.56 kB / 0.5651 GB, free: 12.06 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001209/0.8961, allocations: 134.7 kB / 0.5652 GB, free: 11.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 5.019e-06/0.8961, allocations: 0 / 0.5652 GB, free: 11.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=108): time 0.02633/0.9225, allocations: 4.123 MB / 0.5693 GB, free: 7.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.9226, allocations: 192.9 kB / 0.5694 GB, free: 7.539 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.9245, allocations: 0.9209 MB / 0.5703 GB, free: 6.609 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002763/0.9248, allocations: 45.7 kB / 0.5704 GB, free: 6.559 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005469/0.9254, allocations: 0.5493 MB / 0.5709 GB, free: 6.004 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.9259, allocations: 374.6 kB / 0.5713 GB, free: 5.633 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.926, allocations: 28 kB / 0.5713 GB, free: 5.605 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.9262, allocations: 362.8 kB / 0.5717 GB, free: 5.242 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00316/0.9294, allocations: 0.6402 MB / 0.5723 GB, free: 4.605 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/0.933, allocations: 0.9609 MB / 0.5732 GB, free: 3.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003428/0.9364, allocations: 0.709 MB / 0.5739 GB, free: 2.809 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/0.9365, allocations: 4 kB / 0.5739 GB, free: 2.805 MB / 490.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.008694/0.9452, allocations: 1.883 MB / 0.5758 GB, free: 0.9102 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001353/0.9466, allocations: 3.15 MB / 0.5788 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/0.9467, allocations: 11.95 kB / 0.5788 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01271/0.9594, allocations: 1.17 MB / 0.58 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/0.9627, allocations: 419.4 kB / 0.5804 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.9648, allocations: 0.9353 MB / 0.5813 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002622/0.9674, allocations: 167.7 kB / 0.5815 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003147/0.9678, allocations: 83.94 kB / 0.5815 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.9678, allocations: 10.66 kB / 0.5815 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007801/0.9756, allocations: 1.734 MB / 0.5832 GB, free: 8.977 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.9757, allocations: 8 kB / 0.5832 GB, free: 8.969 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.9762, allocations: 92.72 kB / 0.5833 GB, free: 8.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004031/0.9802, allocations: 451.8 kB / 0.5838 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/0.9832, allocations: 1.762 MB / 0.5855 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002137/0.9854, allocations: 163.8 kB / 0.5856 GB, free: 6.371 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.9856, allocations: 79.95 kB / 0.5857 GB, free: 6.293 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.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 (148): * Single equations (assignments): 147 * 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 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0008665/0.9865, allocations: 293.5 kB / 0.586 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.9869, allocations: 142.2 kB / 0.5861 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/1.002, allocations: 6.996 MB / 0.593 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000111/1.002, allocations: 87.86 kB / 0.593 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.002, allocations: 0 / 0.593 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.311e-05/1.002, allocations: 7.969 kB / 0.5931 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/1.021, allocations: 9.046 MB / 0.6019 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.021, allocations: 3.938 kB / 0.6019 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002084/1.023, allocations: 291.7 kB / 0.6022 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/1.034, allocations: 2.125 MB / 0.6042 GB, free: 3.184 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002701/1.034, allocations: 43.97 kB / 0.6043 GB, free: 3.141 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002716/1.037, allocations: 1.613 MB / 0.6059 GB, free: 1.504 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.037, allocations: 4 kB / 0.6059 GB, free: 1.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3522/1.389, allocations: 3.825 MB / 0.6096 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002206/1.392, allocations: 0.7455 MB / 0.6103 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008312/1.392, allocations: 25.09 kB / 0.6104 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003327/1.396, allocations: 154.5 kB / 0.6105 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006524/1.396, allocations: 117.9 kB / 0.6106 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002621/1.397, allocations: 58.8 kB / 0.6107 GB, free: 174.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004428/1.401, allocations: 1.203 MB / 0.6118 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.52e-07/1.401, allocations: 1.406 kB / 0.6118 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01017/1.411, allocations: 1.709 MB / 0.6135 GB, free: 173.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 51 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse53.phase,$cse53.region,$cse59.phase,$cse59.region,$cse63.phase,$cse63.region,$cse67.phase,$cse67.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.0103/1.422, allocations: 1.362 MB / 0.6148 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.016/1.438, allocations: 3.29 MB / 0.6181 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.438, allocations: 1 kB / 0.6181 GB, free: 172.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005811/1.444, allocations: 1.7 MB / 0.6197 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007333/1.451, allocations: 0.7401 MB / 0.6204 GB, free: 171.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.464, allocations: 6.216 MB / 0.6265 GB, free: 168 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/1.466, allocations: 1.78 MB / 0.6283 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008134/1.467, allocations: 150.4 kB / 0.6284 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.153e-06/1.467, allocations: 0 / 0.6284 GB, free: 167.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.1049/1.571, allocations: 55.84 MB / 0.6829 GB, free: 121 MB / 0.5105 GB