Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.93/1.93, allocations: 209.4 MB / 217.3 MB, free: 4.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.552e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2664, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.787/6.053, allocations: 2.497 GB / 2.809 GB, free: 89.15 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/6.054, allocations: 83.11 kB / 2.809 GB, free: 89.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.908/8.962, allocations: 0.6127 GB / 3.422 GB, free: 34.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.859e-06/8.962, allocations: 0 / 3.422 GB, free: 34.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001202/8.962, allocations: 41.45 kB / 3.422 GB, free: 34.89 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.008632/8.971, allocations: 2.365 MB / 3.424 GB, free: 33.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/8.971, allocations: 7.094 kB / 3.424 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01072/8.982, allocations: 0.9008 MB / 3.425 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/8.984, allocations: 1.057 MB / 3.426 GB, free: 33.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/8.985, allocations: 53.56 kB / 3.426 GB, free: 33.48 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/8.985, allocations: 70.64 kB / 3.426 GB, free: 33.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00271/8.988, allocations: 1.211 MB / 3.428 GB, free: 33.47 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003054/8.991, allocations: 1.412 MB / 3.429 GB, free: 33.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/8.991, allocations: 8.188 kB / 3.429 GB, free: 33.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/8.991, allocations: 9.844 kB / 3.429 GB, free: 33.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.369e-05/8.991, allocations: 29.78 kB / 3.429 GB, free: 33.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.046/10.04, allocations: 265.7 MB / 3.688 GB, free: 43.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/10.04, allocations: 0.5312 MB / 3.689 GB, free: 43.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/10.04, allocations: 247.2 kB / 3.689 GB, free: 43.15 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0485/10.09, allocations: 20.21 MB / 3.709 GB, free: 31.25 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/10.09, allocations: 39.14 kB / 3.709 GB, free: 31.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=23): time 3.682e-06/10.09, allocations: 4 kB / 3.709 GB, free: 31.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=23): time 0.007084/10.09, allocations: 1.359 MB / 3.71 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/10.09, allocations: 261 kB / 3.711 GB, free: 30.81 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/10.1, allocations: 0.9993 MB / 3.712 GB, free: 30.65 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.034e-05/10.1, allocations: 29.7 kB / 3.712 GB, free: 30.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005382/10.1, allocations: 0.8661 MB / 3.712 GB, free: 30.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/10.1, allocations: 99.25 kB / 3.713 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.096e-05/10.1, allocations: 0 / 3.713 GB, free: 30.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001085/10.1, allocations: 363.8 kB / 3.713 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/10.1, allocations: 312.8 kB / 3.713 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008801/10.1, allocations: 0.8563 MB / 3.714 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004564/10.1, allocations: 0.7465 MB / 3.715 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.293e-05/10.1, allocations: 3.656 kB / 3.715 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006285/10.11, allocations: 1.436 MB / 3.716 GB, free: 29.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001411/10.11, allocations: 6.879 MB / 3.723 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.124e-05/10.11, allocations: 17.75 kB / 3.723 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.958e-05/10.11, allocations: 30.97 kB / 3.723 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/10.11, allocations: 390.3 kB / 3.723 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.993e-05/10.11, allocations: 38.36 kB / 3.723 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/10.12, allocations: 359.1 kB / 3.724 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003022/10.12, allocations: 78.16 kB / 3.724 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/10.12, allocations: 6.719 kB / 3.724 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005022/10.12, allocations: 1.235 MB / 3.725 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.118e-05/10.12, allocations: 17.34 kB / 3.725 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.609e-05/10.12, allocations: 25.53 kB / 3.725 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/10.12, allocations: 393.4 kB / 3.725 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.004e-05/10.12, allocations: 36 kB / 3.725 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/10.13, allocations: 234.3 kB / 3.726 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/10.13, allocations: 78.16 kB / 3.726 GB, free: 21.63 MB / 0.5105 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.0003413/10.13, allocations: 160.8 kB / 3.726 GB, free: 21.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003462/10.13, allocations: 121.4 kB / 3.726 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/10.13, allocations: 1.016 MB / 3.727 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.849e-06/10.13, allocations: 7.969 kB / 3.727 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.349e-06/10.13, allocations: 0 / 3.727 GB, free: 21.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.242e-06/10.13, allocations: 6.859 kB / 3.727 GB, free: 21.22 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/10.13, allocations: 0.9357 MB / 3.728 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.446e-06/10.13, allocations: 0 / 3.728 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/10.13, allocations: 67.02 kB / 3.728 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.482e-06/10.13, allocations: 1.125 kB / 3.728 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/10.13, allocations: 14.3 kB / 3.728 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.051e-06/10.13, allocations: 0 / 3.728 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.772e-06/10.13, allocations: 0 / 3.728 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/10.13, allocations: 456.1 kB / 3.728 GB, free: 20.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/10.13, allocations: 412.9 kB / 3.729 GB, free: 20.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003076/10.13, allocations: 0 / 3.729 GB, free: 20.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009902/10.13, allocations: 89.3 kB / 3.729 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.115e-05/10.13, allocations: 12.59 kB / 3.729 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/10.13, allocations: 9.297 kB / 3.729 GB, free: 20.65 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001876/10.14, allocations: 1.061 MB / 3.73 GB, free: 20.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.599e-06/10.14, allocations: 0 / 3.73 GB, free: 20.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007283/10.14, allocations: 1.686 MB / 3.732 GB, free: 20.42 MB / 0.5105 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.008783/10.15, allocations: 2.114 MB / 3.734 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002759/10.16, allocations: 1.194 MB / 3.735 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.819e-06/10.16, allocations: 0 / 3.735 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002117/10.16, allocations: 87.7 kB / 3.735 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/10.16, allocations: 379.6 kB / 3.735 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/10.16, allocations: 1.475 MB / 3.737 GB, free: 18.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007225/10.16, allocations: 1.24 MB / 3.738 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005376/10.16, allocations: 137.1 kB / 3.738 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of SimCode: time 1.853e-06/10.16, allocations: 0 / 3.738 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of Templates: time 0.4092/10.57, allocations: 42.38 MB / 3.779 GB, free: 95.55 MB / 0.5105 GB