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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 1.892/1.892, allocations: 209.2 MB / 224.4 MB, free: 1.609 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.752e-05/2.745e-05, allocations: 0 / 276.2 MB, free: 12 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09869, allocations: 48.7 MB / 324.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.3709/0.4697, allocations: 65.9 MB / 390.8 MB, free: 5.773 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.048/0.5177, allocations: 22.78 MB / 413.5 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002636/0.5204, allocations: 71.44 kB / 413.6 MB, free: 488 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003947/0.5244, allocations: 0.9059 MB / 414.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01466/0.5391, allocations: 3.645 MB / 418.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02193/0.5611, allocations: 5.513 MB / 423.7 MB, free: 6.398 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004852/0.566, allocations: 1.766 MB / 425.4 MB, free: 4.629 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.5677, allocations: 0.6465 MB / 426.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003552/0.5713, allocations: 1.083 MB / 427.2 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001854/0.5732, allocations: 0.7049 MB / 427.9 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0231/0.5963, allocations: 7.606 MB / 435.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003679/0.6001, allocations: 460 kB / 435.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008708/0.601, allocations: 290.9 kB / 436.2 MB, free: 9.844 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009459/0.602, allocations: 176 kB / 436.4 MB, free: 9.672 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.6146, allocations: 4.369 MB / 440.7 MB, free: 5.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.6147, allocations: 7.938 kB / 440.8 MB, free: 5.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6147, allocations: 0 / 440.8 MB, free: 5.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.777e-05/0.6148, allocations: 0 / 440.8 MB, free: 5.285 MB / 362.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.008476/0.6233, allocations: 2.243 MB / 443 MB, free: 2.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.6233, allocations: 8.031 kB / 443 MB, free: 2.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.6337, allocations: 0.8293 MB / 443.8 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002578/0.6363, allocations: 0.9429 MB / 444.8 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.6365, allocations: 98.38 kB / 444.9 MB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/0.6369, allocations: 116 kB / 445 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009723/0.6466, allocations: 2.271 MB / 447.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.795e-05/0.6467, allocations: 7.938 kB / 447.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002569/0.647, allocations: 56 kB / 447.3 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.647, allocations: 36 kB / 447.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.658, allocations: 2.197 MB / 449.6 MB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0176/0.6757, allocations: 9.813 MB / 459.4 MB, free: 1.645 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008159/0.6839, allocations: 1.628 MB / 461 MB, free: 12 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07424/0.7582, allocations: 19.05 MB / 480 MB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.7583, allocations: 47.55 kB / 480.1 MB, free: 11.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=88): time 4.368e-06/0.7583, allocations: 4 kB / 480.1 MB, free: 11.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=88): time 0.01434/0.7727, allocations: 2.751 MB / 482.8 MB, free: 8.367 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/0.7729, allocations: 270 kB / 483.1 MB, free: 8.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/0.7744, allocations: 0.7455 MB / 483.9 MB, free: 7.281 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.7747, allocations: 41.7 kB / 483.9 MB, free: 7.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006908/0.7754, allocations: 0.6835 MB / 484.6 MB, free: 6.543 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004439/0.7758, allocations: 299.7 kB / 484.9 MB, free: 6.246 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.776, allocations: 24 kB / 484.9 MB, free: 6.223 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.7762, allocations: 366.8 kB / 485.3 MB, free: 5.855 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.7784, allocations: 482.3 kB / 485.7 MB, free: 5.387 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002694/0.7811, allocations: 1.039 MB / 486.8 MB, free: 4.074 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.7837, allocations: 0.6023 MB / 487.4 MB, free: 3.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/0.7837, allocations: 4 kB / 487.4 MB, free: 3.477 MB / 410.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006077/0.7898, allocations: 1.545 MB / 488.9 MB, free: 1.922 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003337/0.7932, allocations: 6.876 MB / 495.8 MB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.085e-05/0.7933, allocations: 23.98 kB / 495.8 MB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.8e-05/0.7934, allocations: 31.94 kB / 495.8 MB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002633/0.796, allocations: 387.5 kB / 496.2 MB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.287e-05/0.7961, allocations: 35.86 kB / 496.3 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.7983, allocations: 238.4 kB / 496.5 MB, free: 9.805 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.7986, allocations: 83.97 kB / 496.6 MB, free: 9.723 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.7987, allocations: 4 kB / 496.6 MB, free: 9.719 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00592/0.8046, allocations: 1.466 MB / 498 MB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.8047, allocations: 16 kB / 498.1 MB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.561e-05/0.8047, allocations: 31.95 kB / 498.1 MB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/0.8073, allocations: 383.5 kB / 498.5 MB, free: 7.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.117e-05/0.8074, allocations: 35.86 kB / 498.5 MB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.8093, allocations: 206.8 kB / 498.7 MB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003281/0.8096, allocations: 83.98 kB / 498.8 MB, free: 7.508 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.001354/0.811, allocations: 331 kB / 499.1 MB, free: 7.172 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006778/0.8117, allocations: 114.6 kB / 499.2 MB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02124/0.833, allocations: 6.092 MB / 0.4935 GB, free: 0.9414 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001894/0.8333, allocations: 87.81 kB / 0.4936 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.8333, allocations: 0 / 0.4936 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-05/0.8334, allocations: 3.984 kB / 0.4936 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3025/1.136, allocations: 2.79 MB / 0.4963 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.136, allocations: 1.406 kB / 0.4963 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/1.138, allocations: 293.1 kB / 0.4966 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-05/1.138, allocations: 4.531 kB / 0.4966 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/1.138, allocations: 27.97 kB / 0.4966 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.081e-05/1.138, allocations: 4.844 kB / 0.4966 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.138, allocations: 1.891 kB / 0.4966 GB, free: 144.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007163/1.145, allocations: 2.976 MB / 0.4995 GB, free: 143.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.147, allocations: 0.5244 MB / 0.5 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004204/1.147, allocations: 21.92 kB / 0.5 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.149, allocations: 131.2 kB / 0.5002 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003141/1.149, allocations: 92.58 kB / 0.5003 GB, free: 143.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.149, allocations: 37.38 kB / 0.5003 GB, free: 143.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001503/1.151, allocations: 0.6666 MB / 0.5009 GB, free: 142.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.12e-07/1.151, allocations: 0 / 0.5009 GB, free: 142.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006409/1.157, allocations: 1.597 MB / 0.5025 GB, free: 142.6 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.007388/1.165, allocations: 1.361 MB / 0.5038 GB, free: 142.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008805/1.174, allocations: 2.699 MB / 0.5065 GB, free: 141.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.174, allocations: 1.188 kB / 0.5065 GB, free: 141.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003327/1.177, allocations: 1.507 MB / 0.5079 GB, free: 141 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005508/1.182, allocations: 0.5747 MB / 0.5085 GB, free: 140.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/1.194, allocations: 5.836 MB / 0.5142 GB, free: 137.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001592/1.196, allocations: 1.656 MB / 0.5158 GB, free: 136.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006523/1.197, allocations: 140.9 kB / 0.5159 GB, free: 136.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.243e-06/1.197, allocations: 0 / 0.5159 GB, free: 136.9 MB / 426.7 MB Notification: Performance of Templates: time 0.08433/1.281, allocations: 42.46 MB / 0.5574 GB, free: 101.6 MB / 426.7 MB