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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.993/1.993, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.28e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.0857, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.123/6.209, allocations: 2.497 GB / 2.816 GB, free: 125.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/6.209, allocations: 82.55 kB / 2.816 GB, free: 125.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.652/8.862, allocations: 0.6185 GB / 3.435 GB, free: 4.789 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.22e-06/8.862, allocations: 4 kB / 3.435 GB, free: 4.785 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001339/8.862, allocations: 42.59 kB / 3.435 GB, free: 4.746 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.009564/8.871, allocations: 2.355 MB / 3.437 GB, free: 2.359 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/8.871, allocations: 12.03 kB / 3.437 GB, free: 2.348 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01023/8.882, allocations: 0.9025 MB / 3.438 GB, free: 1.449 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/8.885, allocations: 1.057 MB / 3.439 GB, free: 380 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/8.885, allocations: 102.4 kB / 3.439 GB, free: 276 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002616/8.885, allocations: 117.4 kB / 3.439 GB, free: 160 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2991/9.184, allocations: 2.248 MB / 3.441 GB, free: 34.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.479e-05/9.184, allocations: 4.031 kB / 3.441 GB, free: 34.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/9.185, allocations: 56.91 kB / 3.442 GB, free: 34.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/9.185, allocations: 33.16 kB / 3.442 GB, free: 34.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006553/9.191, allocations: 1.975 MB / 3.443 GB, free: 34.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/9.204, allocations: 9.772 MB / 3.453 GB, free: 27.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/9.21, allocations: 1.499 MB / 3.454 GB, free: 27.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009257/9.211, allocations: 404 kB / 3.455 GB, free: 27.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05161/9.263, allocations: 18.93 MB / 3.473 GB, free: 18.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/9.263, allocations: 45.77 kB / 3.473 GB, free: 18.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 4.207e-06/9.263, allocations: 2.906 kB / 3.473 GB, free: 18.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.009263/9.272, allocations: 2.258 MB / 3.476 GB, free: 18.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/9.272, allocations: 270.9 kB / 3.476 GB, free: 18.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/9.273, allocations: 0.7423 MB / 3.477 GB, free: 18.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/9.273, allocations: 40.89 kB / 3.477 GB, free: 18.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004118/9.274, allocations: 0.6806 MB / 3.477 GB, free: 17.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/9.274, allocations: 300.9 kB / 3.478 GB, free: 17.63 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-05/9.274, allocations: 27.69 kB / 3.478 GB, free: 17.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/9.274, allocations: 363.1 kB / 3.478 GB, free: 17.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007261/9.275, allocations: 331.6 kB / 3.478 GB, free: 17.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/9.276, allocations: 0.8899 MB / 3.479 GB, free: 16.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009438/9.277, allocations: 468.9 kB / 3.48 GB, free: 16.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/9.277, allocations: 10.5 kB / 3.48 GB, free: 16.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002837/9.28, allocations: 1.243 MB / 3.481 GB, free: 16.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002961/9.283, allocations: 6.873 MB / 3.488 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.602e-05/9.283, allocations: 18.84 kB / 3.488 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.781e-05/9.283, allocations: 31.81 kB / 3.488 GB, free: 25.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/9.285, allocations: 391.9 kB / 3.488 GB, free: 25.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.85e-05/9.285, allocations: 38.23 kB / 3.488 GB, free: 25.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/9.287, allocations: 230.8 kB / 3.488 GB, free: 25.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/9.287, allocations: 82.84 kB / 3.488 GB, free: 25.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/9.287, allocations: 4.938 kB / 3.488 GB, free: 25.24 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002459/9.29, allocations: 1.161 MB / 3.489 GB, free: 25.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/9.29, allocations: 18.16 kB / 3.489 GB, free: 25.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.23e-05/9.29, allocations: 29.72 kB / 3.489 GB, free: 25.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/9.291, allocations: 393.2 kB / 3.49 GB, free: 25.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.582e-05/9.291, allocations: 38.89 kB / 3.49 GB, free: 25.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/9.293, allocations: 206.9 kB / 3.49 GB, free: 25.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/9.293, allocations: 83.28 kB / 3.49 GB, free: 25.17 MB / 474.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 () * 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.0004004/9.293, allocations: 202.6 kB / 3.49 GB, free: 25.06 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003646/9.294, allocations: 117.9 kB / 3.49 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007475/9.301, allocations: 5.815 MB / 3.496 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.278e-05/9.301, allocations: 89.64 kB / 3.496 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/9.301, allocations: 0.9375 kB / 3.496 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/9.301, allocations: 3.938 kB / 3.496 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003777/9.305, allocations: 2.796 MB / 3.499 GB, free: 24.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/9.305, allocations: 0.5625 kB / 3.499 GB, free: 24.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/9.307, allocations: 292.5 kB / 3.499 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.376e-05/9.307, allocations: 3.781 kB / 3.499 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.525e-05/9.307, allocations: 35.75 kB / 3.499 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.538e-06/9.307, allocations: 3.969 kB / 3.499 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/9.307, allocations: 0 / 3.499 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/9.311, allocations: 2.673 MB / 3.502 GB, free: 23.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/9.312, allocations: 0.5333 MB / 3.502 GB, free: 23.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/9.312, allocations: 19.28 kB / 3.502 GB, free: 23.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/9.313, allocations: 135.1 kB / 3.503 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/9.314, allocations: 102.4 kB / 3.503 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.692e-05/9.314, allocations: 27.78 kB / 3.503 GB, free: 23.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001133/9.315, allocations: 0.6559 MB / 3.503 GB, free: 23.15 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.61e-07/9.315, allocations: 0 / 3.503 GB, free: 23.15 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006755/9.322, allocations: 1.724 MB / 3.505 GB, free: 23.03 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 () * 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.008388/9.33, allocations: 1.953 MB / 3.507 GB, free: 22.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004097/9.334, allocations: 2.246 MB / 3.509 GB, free: 22.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.341e-06/9.334, allocations: 2.062 kB / 3.509 GB, free: 22.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001836/9.336, allocations: 1.367 MB / 3.51 GB, free: 22.65 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/9.339, allocations: 0.5624 MB / 3.511 GB, free: 22.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5786/9.918, allocations: 123.2 MB / 3.631 GB, free: 62.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/9.92, allocations: 1.655 MB / 3.633 GB, free: 61.51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006238/9.92, allocations: 135.4 kB / 3.633 GB, free: 61.51 MB / 490.7 MB Notification: Performance of SimCode: time 2.166e-06/9.92, allocations: 0 / 3.633 GB, free: 61.51 MB / 490.7 MB Notification: Performance of Templates: time 0.07948/10, allocations: 45.3 MB / 3.677 GB, free: 58.86 MB / 490.7 MB