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.229/2.229, allocations: 234.9 MB / 250.5 MB, free: 10.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004307, allocations: 12 kB / 314.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2793, allocations: 54.86 MB / 369.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.115/6.395, allocations: 2.608 GB / 2.969 GB, free: 104.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/6.395, allocations: 87.02 kB / 2.969 GB, free: 104.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.753/9.148, allocations: 0.6346 GB / 3.603 GB, free: 34.01 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.096e-06/9.148, allocations: 0 / 3.603 GB, free: 34.01 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001261/9.149, allocations: 39.7 kB / 3.603 GB, free: 34 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.009371/9.158, allocations: 2.596 MB / 3.606 GB, free: 32.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/9.158, allocations: 11.47 kB / 3.606 GB, free: 32.58 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/9.168, allocations: 0.9511 MB / 3.607 GB, free: 32.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002861/9.171, allocations: 1.057 MB / 3.608 GB, free: 31.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/9.171, allocations: 109 kB / 3.608 GB, free: 31.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/9.172, allocations: 113.8 kB / 3.608 GB, free: 31.75 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007681/9.179, allocations: 2.283 MB / 3.61 GB, free: 30.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/9.179, allocations: 7.281 kB / 3.61 GB, free: 30.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/9.18, allocations: 53.56 kB / 3.611 GB, free: 30.76 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/9.18, allocations: 29.97 kB / 3.611 GB, free: 30.76 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008223/9.188, allocations: 2.186 MB / 3.613 GB, free: 30.24 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/9.201, allocations: 9.767 MB / 3.622 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00626/9.207, allocations: 1.624 MB / 3.624 GB, free: 21.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04409/9.251, allocations: 18.84 MB / 3.642 GB, free: 2.004 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/9.251, allocations: 51.56 kB / 3.642 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 4.429e-06/9.251, allocations: 0 / 3.642 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.01115/9.262, allocations: 2.739 MB / 3.645 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/9.262, allocations: 270 kB / 3.645 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/9.264, allocations: 0.7417 MB / 3.646 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001597/9.264, allocations: 41.7 kB / 3.646 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006737/9.265, allocations: 0.6832 MB / 3.647 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006067/9.265, allocations: 299.3 kB / 3.647 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.972e-05/9.266, allocations: 32 kB / 3.647 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002415/9.266, allocations: 366.7 kB / 3.647 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/9.267, allocations: 482.3 kB / 3.648 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/9.27, allocations: 1.035 MB / 3.649 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/9.271, allocations: 0.5925 MB / 3.649 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/9.271, allocations: 4 kB / 3.649 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004524/9.276, allocations: 1.556 MB / 3.651 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003806/9.28, allocations: 6.878 MB / 3.658 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.657e-05/9.28, allocations: 23.98 kB / 3.658 GB, free: 1.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.221e-05/9.28, allocations: 28 kB / 3.658 GB, free: 1.312 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/9.282, allocations: 387.5 kB / 3.658 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.158e-05/9.282, allocations: 35.86 kB / 3.658 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/9.284, allocations: 238.4 kB / 3.658 GB, free: 0.6641 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/9.284, allocations: 79.97 kB / 3.658 GB, free: 0.5859 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/9.284, allocations: 4 kB / 3.658 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3338/9.618, allocations: 1.461 MB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/9.618, allocations: 18.08 kB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.091e-05/9.618, allocations: 27.59 kB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/9.62, allocations: 388.8 kB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.336e-05/9.62, allocations: 35.72 kB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/9.621, allocations: 204.8 kB / 3.66 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/9.621, allocations: 83.39 kB / 3.66 GB, free: 56.32 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 () * 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.0009519/9.622, allocations: 401.8 kB / 3.661 GB, free: 56.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/9.623, allocations: 124.7 kB / 3.661 GB, free: 56.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009768/9.632, allocations: 6.085 MB / 3.667 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.297e-05/9.632, allocations: 86.97 kB / 3.667 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.875e-06/9.633, allocations: 0 / 3.667 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/9.633, allocations: 8.469 kB / 3.667 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003952/9.637, allocations: 2.801 MB / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/9.637, allocations: 0 / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/9.638, allocations: 298.6 kB / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/9.638, allocations: 3.875 kB / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.768e-05/9.638, allocations: 25.09 kB / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.527e-06/9.638, allocations: 11.34 kB / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.141e-06/9.638, allocations: 0 / 3.67 GB, free: 55.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005089/9.643, allocations: 2.969 MB / 3.673 GB, free: 54.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/9.644, allocations: 0.5322 MB / 3.673 GB, free: 54.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/9.645, allocations: 27.64 kB / 3.674 GB, free: 54.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/9.646, allocations: 129.9 kB / 3.674 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/9.646, allocations: 95 kB / 3.674 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.648e-05/9.646, allocations: 34.56 kB / 3.674 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001124/9.647, allocations: 0.6692 MB / 3.674 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.426e-06/9.647, allocations: 0 / 3.674 GB, free: 54.63 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006796/9.654, allocations: 1.719 MB / 3.676 GB, free: 54.51 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 () * 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.008723/9.663, allocations: 1.942 MB / 3.678 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006393/9.669, allocations: 2.689 MB / 3.681 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/9.669, allocations: 0 / 3.681 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002616/9.672, allocations: 1.513 MB / 3.682 GB, free: 54.28 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003973/9.676, allocations: 0.5795 MB / 3.683 GB, free: 54.26 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2668/9.943, allocations: 127.5 MB / 3.807 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/9.944, allocations: 1.657 MB / 3.809 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005089/9.944, allocations: 137.2 kB / 3.809 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of SimCode: time 1.835e-06/9.944, allocations: 0 / 3.809 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of Templates: time 0.4118/10.36, allocations: 45.7 MB / 3.854 GB, free: 62.42 MB / 0.5261 GB