Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 1.941/1.941, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.286e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3732, allocations: 48.69 MB / 324.9 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.1144/0.4877, allocations: 65.87 MB / 390.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04865/0.5364, allocations: 22.76 MB / 413.5 MB, free: 6.785 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.539, allocations: 67.44 kB / 413.5 MB, free: 6.719 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003897/0.543, allocations: 0.9137 MB / 414.5 MB, free: 5.801 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01578/0.5588, allocations: 3.641 MB / 418.1 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02261/0.5814, allocations: 5.494 MB / 423.6 MB, free: 12.65 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005036/0.5865, allocations: 1.758 MB / 425.4 MB, free: 10.89 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.5882, allocations: 0.6388 MB / 426 MB, free: 10.25 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003674/0.5919, allocations: 1.083 MB / 427.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.5939, allocations: 0.7048 MB / 427.8 MB, free: 8.453 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02423/0.6182, allocations: 7.621 MB / 435.4 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004073/0.6223, allocations: 456 kB / 435.8 MB, free: 388 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008474/0.6232, allocations: 298.9 kB / 436.1 MB, free: 88 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000873/0.6241, allocations: 176 kB / 436.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01286/0.637, allocations: 4.377 MB / 440.7 MB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.6371, allocations: 0 / 440.7 MB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.6371, allocations: 4 kB / 440.7 MB, free: 11.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.775e-05/0.6372, allocations: 0 / 440.7 MB, free: 11.52 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.008767/0.646, allocations: 2.223 MB / 442.9 MB, free: 9.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.6461, allocations: 12.03 kB / 442.9 MB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.6566, allocations: 0.8332 MB / 443.8 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/0.6594, allocations: 0.9469 MB / 444.7 MB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.6596, allocations: 102.4 kB / 444.8 MB, free: 7.305 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003496/0.66, allocations: 112 kB / 444.9 MB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009567/0.6696, allocations: 2.26 MB / 447.2 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.6697, allocations: 3.938 kB / 447.2 MB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002634/0.67, allocations: 56 kB / 447.2 MB, free: 4.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.286e-05/0.67, allocations: 32 kB / 447.3 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.681, allocations: 2.166 MB / 449.4 MB, free: 2.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01839/0.6994, allocations: 10.11 MB / 459.5 MB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007864/0.7073, allocations: 1.553 MB / 461.1 MB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06961/0.777, allocations: 17.22 MB / 478.3 MB, free: 3.117 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.943e-05/0.7771, allocations: 43.22 kB / 478.4 MB, free: 3.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.566e-06/0.7771, allocations: 0 / 478.4 MB, free: 3.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.01338/0.7905, allocations: 2.541 MB / 480.9 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/0.7907, allocations: 269.7 kB / 481.2 MB, free: 196 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2899/1.081, allocations: 0.8459 MB / 482 MB, free: 133.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/1.081, allocations: 39.36 kB / 482 MB, free: 133.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005745/1.081, allocations: 0.683 MB / 482.7 MB, free: 133 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/1.082, allocations: 286 kB / 483 MB, free: 132.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/1.082, allocations: 26.94 kB / 483 MB, free: 132.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/1.082, allocations: 358.6 kB / 483.4 MB, free: 132.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/1.084, allocations: 476.1 kB / 483.8 MB, free: 132.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002555/1.087, allocations: 1.056 MB / 484.9 MB, free: 131.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002421/1.089, allocations: 0.5869 MB / 485.5 MB, free: 131.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.536e-05/1.089, allocations: 5.594 kB / 485.5 MB, free: 131.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.006141/1.096, allocations: 1.538 MB / 487 MB, free: 130.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001615/1.097, allocations: 7.319 MB / 494.4 MB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.258e-05/1.097, allocations: 19.25 kB / 494.4 MB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.773e-05/1.097, allocations: 35.66 kB / 494.4 MB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002772/1.1, allocations: 393.2 kB / 494.8 MB, free: 123 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-05/1.1, allocations: 38.22 kB / 494.8 MB, free: 123 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/1.103, allocations: 260.5 kB / 495.1 MB, free: 122.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003029/1.103, allocations: 85.59 kB / 495.2 MB, free: 122.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/1.103, allocations: 3.594 kB / 495.2 MB, free: 122.9 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005631/1.109, allocations: 1.449 MB / 496.6 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.828e-05/1.109, allocations: 19.56 kB / 496.6 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.021e-05/1.109, allocations: 28.81 kB / 496.7 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002545/1.112, allocations: 390.5 kB / 497 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.257e-05/1.112, allocations: 42.77 kB / 497.1 MB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/1.114, allocations: 202.6 kB / 497.3 MB, free: 122.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002241/1.114, allocations: 83.41 kB / 497.4 MB, free: 122.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.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 (167): * Single equations (assignments): 167 * 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.000946/1.115, allocations: 326.5 kB / 497.7 MB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/1.115, allocations: 125.8 kB / 497.8 MB, free: 122 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.128, allocations: 5.937 MB / 0.4919 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001401/1.128, allocations: 88.06 kB / 0.492 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/1.128, allocations: 0 / 0.492 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.612e-05/1.128, allocations: 5.25 kB / 0.492 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/1.134, allocations: 2.774 MB / 0.4947 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/1.134, allocations: 0 / 0.4947 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.136, allocations: 262 kB / 0.495 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-05/1.136, allocations: 8.562 kB / 0.495 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/1.136, allocations: 29.31 kB / 0.495 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-05/1.136, allocations: 3.656 kB / 0.495 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.136, allocations: 4.938 kB / 0.495 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006729/1.143, allocations: 2.83 MB / 0.4978 GB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/1.144, allocations: 0.5268 MB / 0.4983 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003944/1.144, allocations: 22.31 kB / 0.4983 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/1.146, allocations: 121.2 kB / 0.4984 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/1.146, allocations: 86.12 kB / 0.4985 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.892e-05/1.146, allocations: 39.66 kB / 0.4986 GB, free: 116.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001632/1.148, allocations: 0.7439 MB / 0.4993 GB, free: 115.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.148, allocations: 0 / 0.4993 GB, free: 115.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006548/1.154, allocations: 1.605 MB / 0.5009 GB, free: 115.7 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 ($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,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.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,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * 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.00718/1.162, allocations: 1.36 MB / 0.5022 GB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007568/1.169, allocations: 2.607 MB / 0.5047 GB, free: 114.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.169, allocations: 2.344 kB / 0.5047 GB, free: 114.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.172, allocations: 1.444 MB / 0.5061 GB, free: 114 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005423/1.178, allocations: 0.5829 MB / 0.5067 GB, free: 113.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/1.188, allocations: 5.754 MB / 0.5123 GB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/1.189, allocations: 1.65 MB / 0.5139 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006291/1.19, allocations: 135.4 kB / 0.5141 GB, free: 106.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.253e-06/1.19, allocations: 0 / 0.5141 GB, free: 106.5 MB / 410.7 MB Notification: Performance of Templates: time 0.08554/1.276, allocations: 42.69 MB / 0.5558 GB, free: 63.86 MB / 410.7 MB