Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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.847/1.847, allocations: 209.2 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004265/0.0004265, allocations: 8 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3322, allocations: 48.71 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.909/7.241, allocations: 2.497 GB / 2.821 GB, free: 23.66 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/7.241, allocations: 89.02 kB / 2.822 GB, free: 23.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337/10.58, allocations: 0.6208 GB / 3.442 GB, free: 32.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.364e-06/10.58, allocations: 2.75 kB / 3.442 GB, free: 32.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001542/10.58, allocations: 41.36 kB / 3.442 GB, free: 32.83 MB / 458.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.01156/10.59, allocations: 2.504 MB / 3.445 GB, free: 31.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/10.59, allocations: 14 kB / 3.445 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/10.6, allocations: 0.9018 MB / 3.446 GB, free: 31.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004393/10.61, allocations: 1.059 MB / 3.447 GB, free: 31.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/10.61, allocations: 102.6 kB / 3.447 GB, free: 31.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004365/10.61, allocations: 114.3 kB / 3.447 GB, free: 31.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/10.62, allocations: 2.292 MB / 3.449 GB, free: 30.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.72e-05/10.62, allocations: 9.016 kB / 3.449 GB, free: 30.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/10.62, allocations: 57.53 kB / 3.449 GB, free: 30.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.295e-05/10.62, allocations: 34.75 kB / 3.449 GB, free: 30.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/10.63, allocations: 2.184 MB / 3.451 GB, free: 30.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02089/10.66, allocations: 9.77 MB / 3.461 GB, free: 24.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/10.67, allocations: 1.618 MB / 3.463 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07252/10.74, allocations: 18.82 MB / 3.481 GB, free: 14.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/10.74, allocations: 46.97 kB / 3.481 GB, free: 14.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 5.26e-06/10.74, allocations: 4 kB / 3.481 GB, free: 14.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.01365/10.75, allocations: 2.742 MB / 3.484 GB, free: 14.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/10.75, allocations: 271.5 kB / 3.484 GB, free: 14.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/10.75, allocations: 0.8593 MB / 3.485 GB, free: 14.04 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002508/10.75, allocations: 39.64 kB / 3.485 GB, free: 14.01 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004658/10.76, allocations: 0.6823 MB / 3.485 GB, free: 13.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003728/10.76, allocations: 304.7 kB / 3.486 GB, free: 13.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/10.76, allocations: 24.16 kB / 3.486 GB, free: 13.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/10.76, allocations: 360.9 kB / 3.486 GB, free: 13.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001964/10.76, allocations: 487.4 kB / 3.487 GB, free: 13.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/10.76, allocations: 1.042 MB / 3.488 GB, free: 12.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/10.76, allocations: 0.5982 MB / 3.488 GB, free: 12.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/10.76, allocations: 11.64 kB / 3.488 GB, free: 12.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005614/10.77, allocations: 1.539 MB / 3.49 GB, free: 12.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003748/10.77, allocations: 0.6027 MB / 3.49 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/10.77, allocations: 18.75 kB / 3.49 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.411e-05/10.77, allocations: 28.44 kB / 3.49 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/10.77, allocations: 389 kB / 3.491 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.029e-05/10.77, allocations: 39.77 kB / 3.491 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/10.77, allocations: 234.7 kB / 3.491 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/10.77, allocations: 85.52 kB / 3.491 GB, free: 11.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/10.77, allocations: 3.375 kB / 3.491 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005201/10.78, allocations: 1.455 MB / 3.492 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.644e-05/10.78, allocations: 18.47 kB / 3.492 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.457e-05/10.78, allocations: 28.72 kB / 3.493 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/10.78, allocations: 393.1 kB / 3.493 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-05/10.78, allocations: 35.17 kB / 3.493 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/10.78, allocations: 207.7 kB / 3.493 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/10.78, allocations: 87.53 kB / 3.493 GB, free: 10.97 MB / 458.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 () * Number of clocked 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.001046/10.78, allocations: 404 kB / 3.494 GB, free: 10.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003747/10.79, allocations: 119.5 kB / 3.494 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/10.8, allocations: 6.093 MB / 3.5 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.432e-05/10.8, allocations: 80.66 kB / 3.5 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/10.8, allocations: 2.672 kB / 3.5 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/10.8, allocations: 5.109 kB / 3.5 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004795/10.8, allocations: 2.794 MB / 3.502 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/10.8, allocations: 0 / 3.502 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/10.8, allocations: 291.5 kB / 3.503 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.637e-05/10.8, allocations: 2.531 kB / 3.503 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/10.8, allocations: 28.47 kB / 3.503 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.114e-05/10.8, allocations: 10.03 kB / 3.503 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/10.8, allocations: 0 / 3.503 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006206/10.81, allocations: 2.977 MB / 3.506 GB, free: 23.66 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/10.81, allocations: 0.5254 MB / 3.506 GB, free: 23.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000329/10.81, allocations: 22.19 kB / 3.506 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/10.81, allocations: 138.6 kB / 3.506 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/10.81, allocations: 91.7 kB / 3.506 GB, free: 23.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/10.81, allocations: 38.97 kB / 3.506 GB, free: 23.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0013/10.81, allocations: 0.6682 MB / 3.507 GB, free: 22.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.3e-07/10.81, allocations: 0 / 3.507 GB, free: 22.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008315/10.82, allocations: 1.721 MB / 3.509 GB, free: 22.59 MB / 474.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 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.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,$cse33.phase,$cse33.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 () * Number of clocked 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.01115/10.83, allocations: 1.946 MB / 3.511 GB, free: 22.08 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007855/10.84, allocations: 2.693 MB / 3.513 GB, free: 21.21 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/10.84, allocations: 4 kB / 3.513 GB, free: 21.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003097/10.84, allocations: 1.508 MB / 3.515 GB, free: 20.53 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005315/10.85, allocations: 0.5731 MB / 3.515 GB, free: 20.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7199/11.57, allocations: 125.3 MB / 3.638 GB, free: 34.12 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/11.57, allocations: 1.661 MB / 3.639 GB, free: 33.35 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006527/11.57, allocations: 133.7 kB / 3.639 GB, free: 33.34 MB / 474.7 MB Notification: Performance of SimCode: time 1.343e-06/11.57, allocations: 0 / 3.639 GB, free: 33.34 MB / 474.7 MB Notification: Performance of Templates: time 0.09413/11.67, allocations: 45.54 MB / 3.684 GB, free: 20.64 MB / 474.7 MB