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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.275/2.275, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.956e-05, allocations: 4 kB / 309.7 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3205, allocations: 54.85 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.158/6.478, allocations: 2.608 GB / 2.964 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/6.479, allocations: 85.58 kB / 2.964 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.75/9.228, allocations: 0.6323 GB / 3.596 GB, free: 39.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.651e-06/9.228, allocations: 1.875 kB / 3.596 GB, free: 39.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001238/9.229, allocations: 43.3 kB / 3.596 GB, free: 39.79 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.008746/9.237, allocations: 2.437 MB / 3.599 GB, free: 38.66 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/9.237, allocations: 15.17 kB / 3.599 GB, free: 38.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/9.247, allocations: 0.9539 MB / 3.6 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/9.25, allocations: 1.057 MB / 3.601 GB, free: 38.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/9.25, allocations: 109.3 kB / 3.601 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002499/9.251, allocations: 112.6 kB / 3.601 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007012/9.258, allocations: 2.246 MB / 3.603 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.013e-05/9.258, allocations: 4.594 kB / 3.603 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/9.258, allocations: 62.81 kB / 3.603 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/9.258, allocations: 30.53 kB / 3.603 GB, free: 37.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006671/9.265, allocations: 1.975 MB / 3.605 GB, free: 37.78 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01213/9.277, allocations: 9.775 MB / 3.615 GB, free: 31.22 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005184/9.282, allocations: 1.502 MB / 3.616 GB, free: 31.18 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007744/9.283, allocations: 401.9 kB / 3.617 GB, free: 31.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04652/9.33, allocations: 18.96 MB / 3.635 GB, free: 21.67 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/9.33, allocations: 45.84 kB / 3.635 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 5.282e-06/9.33, allocations: 3.75 kB / 3.635 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.008926/9.339, allocations: 2.259 MB / 3.637 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/9.339, allocations: 272.7 kB / 3.638 GB, free: 21.19 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/9.34, allocations: 0.7463 MB / 3.638 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001123/9.34, allocations: 39.98 kB / 3.638 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/9.34, allocations: 0.6754 MB / 3.639 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000278/9.341, allocations: 306.8 kB / 3.639 GB, free: 20.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.04e-05/9.341, allocations: 24.28 kB / 3.639 GB, free: 20.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001041/9.341, allocations: 363.1 kB / 3.64 GB, free: 20.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007887/9.342, allocations: 334.2 kB / 3.64 GB, free: 20.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/9.343, allocations: 0.8828 MB / 3.641 GB, free: 19.35 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009441/9.344, allocations: 461.5 kB / 3.641 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/9.344, allocations: 9.656 kB / 3.641 GB, free: 19.31 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002717/9.346, allocations: 1.248 MB / 3.643 GB, free: 19.14 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002646/9.349, allocations: 6.882 MB / 3.649 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.983e-05/9.349, allocations: 19.69 kB / 3.649 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.782e-05/9.349, allocations: 28.28 kB / 3.649 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/9.351, allocations: 380.6 kB / 3.65 GB, free: 27.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.789e-05/9.351, allocations: 37.56 kB / 3.65 GB, free: 27.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/9.353, allocations: 236.9 kB / 3.65 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/9.353, allocations: 81.5 kB / 3.65 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/9.353, allocations: 11.53 kB / 3.65 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002415/9.355, allocations: 1.161 MB / 3.651 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/9.356, allocations: 18.47 kB / 3.651 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/9.356, allocations: 24.97 kB / 3.651 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/9.357, allocations: 396.1 kB / 3.652 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.093e-05/9.357, allocations: 31.03 kB / 3.652 GB, free: 27.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/9.359, allocations: 214.7 kB / 3.652 GB, free: 27.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/9.359, allocations: 76.19 kB / 3.652 GB, free: 27.56 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.0003845/9.359, allocations: 205.1 kB / 3.652 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003101/9.359, allocations: 116.9 kB / 3.652 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007398/9.367, allocations: 5.815 MB / 3.658 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.218e-05/9.367, allocations: 84.03 kB / 3.658 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.179e-06/9.367, allocations: 0 / 3.658 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/9.367, allocations: 7.609 kB / 3.658 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/9.371, allocations: 2.802 MB / 3.661 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/9.371, allocations: 0 / 3.661 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/9.372, allocations: 297.7 kB / 3.661 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/9.372, allocations: 7.094 kB / 3.661 GB, free: 25.83 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-05/9.372, allocations: 22.62 kB / 3.661 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/9.372, allocations: 11 kB / 3.661 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.429e-06/9.372, allocations: 0 / 3.661 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00375/9.376, allocations: 2.672 MB / 3.664 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000946/9.377, allocations: 0.5299 MB / 3.664 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/9.377, allocations: 27.78 kB / 3.664 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/9.378, allocations: 128.7 kB / 3.664 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/9.379, allocations: 98.69 kB / 3.664 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.243e-05/9.379, allocations: 39.92 kB / 3.664 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001064/9.38, allocations: 0.6517 MB / 3.665 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.07e-07/9.38, allocations: 0 / 3.665 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006634/9.386, allocations: 1.725 MB / 3.667 GB, free: 23.48 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: 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 () * 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.008425/9.395, allocations: 1.952 MB / 3.669 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004202/9.399, allocations: 2.251 MB / 3.671 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.549e-06/9.399, allocations: 0 / 3.671 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001747/9.401, allocations: 1.362 MB / 3.672 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003761/9.405, allocations: 0.5822 MB / 3.673 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6456/10.05, allocations: 125.4 MB / 3.795 GB, free: 46.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/10.05, allocations: 1.659 MB / 3.797 GB, free: 45.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005259/10.05, allocations: 134.6 kB / 3.797 GB, free: 45.65 MB / 0.5105 GB Notification: Performance of SimCode: time 1.766e-06/10.05, allocations: 0 / 3.797 GB, free: 45.65 MB / 0.5105 GB Notification: Performance of Templates: time 0.07131/10.12, allocations: 45.46 MB / 3.841 GB, free: 37.07 MB / 0.5105 GB