Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.232/2.232, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.067e-05, allocations: 4 kB / 303.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2761, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.125/6.402, allocations: 2.607 GB / 2.957 GB, free: 12.68 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/6.402, allocations: 85.88 kB / 2.957 GB, free: 12.6 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.929/9.331, allocations: 0.6264 GB / 3.584 GB, free: 41.36 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.102e-06/9.331, allocations: 0 / 3.584 GB, free: 41.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000125/9.331, allocations: 45.14 kB / 3.584 GB, free: 41.35 MB / 0.4948 GB 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.008768/9.34, allocations: 2.444 MB / 3.586 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/9.34, allocations: 10.12 kB / 3.586 GB, free: 40.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/9.351, allocations: 0.9538 MB / 3.587 GB, free: 40.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/9.354, allocations: 1.049 MB / 3.588 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/9.354, allocations: 54.09 kB / 3.588 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002347/9.354, allocations: 70.86 kB / 3.588 GB, free: 39.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002782/9.357, allocations: 1.216 MB / 3.589 GB, free: 39.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/9.36, allocations: 1.418 MB / 3.591 GB, free: 39.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.331e-05/9.36, allocations: 6.719 kB / 3.591 GB, free: 39.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/9.36, allocations: 3.875 kB / 3.591 GB, free: 39.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/9.36, allocations: 31.06 kB / 3.591 GB, free: 39.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.064/10.42, allocations: 266 MB / 3.85 GB, free: 25.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/10.43, allocations: 0.5273 MB / 3.851 GB, free: 25.93 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004945/10.43, allocations: 257.7 kB / 3.851 GB, free: 25.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04842/10.47, allocations: 20.21 MB / 3.871 GB, free: 30.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/10.47, allocations: 33.88 kB / 3.871 GB, free: 29.98 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=23): time 3.384e-06/10.47, allocations: 5.938 kB / 3.871 GB, free: 29.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=23): time 0.006889/10.48, allocations: 1.361 MB / 3.872 GB, free: 29.89 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/10.48, allocations: 265.1 kB / 3.873 GB, free: 29.58 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/10.48, allocations: 0.9921 MB / 3.873 GB, free: 29.42 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.092e-05/10.48, allocations: 30.62 kB / 3.874 GB, free: 29.39 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005272/10.48, allocations: 0.8617 MB / 3.874 GB, free: 28.94 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.596e-05/10.48, allocations: 102.4 kB / 3.874 GB, free: 28.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/10.48, allocations: 0 / 3.874 GB, free: 28.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002003/10.48, allocations: 362.2 kB / 3.875 GB, free: 28.59 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006097/10.49, allocations: 311.2 kB / 3.875 GB, free: 28.59 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008863/10.49, allocations: 0.8543 MB / 3.876 GB, free: 27.89 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004444/10.49, allocations: 0.7462 MB / 3.877 GB, free: 27.85 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/10.49, allocations: 3.938 kB / 3.877 GB, free: 27.85 MB / 0.5573 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006227/10.5, allocations: 1.436 MB / 3.878 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003374/10.5, allocations: 6.879 MB / 3.885 GB, free: 20.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.564e-05/10.5, allocations: 18.75 kB / 3.885 GB, free: 20.56 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.935e-05/10.5, allocations: 30.12 kB / 3.885 GB, free: 20.56 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/10.5, allocations: 393.7 kB / 3.885 GB, free: 20.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.225e-05/10.5, allocations: 39.61 kB / 3.885 GB, free: 20.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002476/10.5, allocations: 360.2 kB / 3.886 GB, free: 20.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001812/10.5, allocations: 82.44 kB / 3.886 GB, free: 20.49 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/10.5, allocations: 5.812 kB / 3.886 GB, free: 20.49 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004579/10.51, allocations: 1.228 MB / 3.887 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/10.51, allocations: 15.59 kB / 3.887 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/10.51, allocations: 29.47 kB / 3.887 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/10.51, allocations: 382.2 kB / 3.887 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.101e-05/10.51, allocations: 39.78 kB / 3.887 GB, free: 20.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/10.51, allocations: 234.3 kB / 3.888 GB, free: 20.42 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001633/10.51, allocations: 81.84 kB / 3.888 GB, free: 20.41 MB / 0.5573 GB 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.0003571/10.51, allocations: 165.3 kB / 3.888 GB, free: 20.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/10.51, allocations: 117.6 kB / 3.888 GB, free: 20.25 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/10.52, allocations: 1.017 MB / 3.889 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.804e-06/10.52, allocations: 3.969 kB / 3.889 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/10.52, allocations: 0 / 3.889 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.732e-06/10.52, allocations: 1.969 kB / 3.889 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/10.52, allocations: 0.9396 MB / 3.89 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.109e-06/10.52, allocations: 4 kB / 3.89 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/10.52, allocations: 66.41 kB / 3.89 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.478e-06/10.52, allocations: 3.953 kB / 3.89 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/10.52, allocations: 3.406 kB / 3.89 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.491e-06/10.52, allocations: 6.297 kB / 3.89 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.802e-06/10.52, allocations: 0 / 3.89 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/10.52, allocations: 461 kB / 3.89 GB, free: 19.67 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007389/10.52, allocations: 407.1 kB / 3.891 GB, free: 19.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003011/10.52, allocations: 7.547 kB / 3.891 GB, free: 19.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/10.52, allocations: 85.62 kB / 3.891 GB, free: 19.46 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/10.52, allocations: 14.7 kB / 3.891 GB, free: 19.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/10.52, allocations: 12.31 kB / 3.891 GB, free: 19.46 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001768/10.52, allocations: 1.062 MB / 3.892 GB, free: 19.35 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.018e-06/10.52, allocations: 0 / 3.892 GB, free: 19.35 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007065/10.53, allocations: 1.703 MB / 3.894 GB, free: 19.23 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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 Backend phase and start with SimCode phase: time 0.00839/10.54, allocations: 2.112 MB / 3.896 GB, free: 17.81 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002451/10.54, allocations: 1.189 MB / 3.897 GB, free: 17.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.263e-06/10.54, allocations: 0 / 3.897 GB, free: 17.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/10.54, allocations: 80.06 kB / 3.897 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/10.54, allocations: 393.9 kB / 3.897 GB, free: 16.86 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/10.55, allocations: 1.474 MB / 3.899 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009596/10.55, allocations: 1.245 MB / 3.9 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004918/10.55, allocations: 130.9 kB / 3.9 GB, free: 14.45 MB / 0.5573 GB Notification: Performance of SimCode: time 2.588e-06/10.55, allocations: 2.25 kB / 3.9 GB, free: 14.45 MB / 0.5573 GB Notification: Performance of Templates: time 0.4378/10.99, allocations: 42.11 MB / 3.941 GB, free: 101.3 MB / 0.5573 GB