Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.31/2.31, allocations: 234.9 MB / 251.1 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004424/0.0004426, allocations: 12 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3482, allocations: 54.87 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.743/8.091, allocations: 2.608 GB / 2.969 GB, free: 89.57 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/8.091, allocations: 94.77 kB / 2.969 GB, free: 89.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.227/11.32, allocations: 0.6346 GB / 3.604 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.645e-06/11.32, allocations: 3.812 kB / 3.604 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001462/11.32, allocations: 39.34 kB / 3.604 GB, free: 31.27 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.01175/11.33, allocations: 2.584 MB / 3.607 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/11.33, allocations: 11.97 kB / 3.607 GB, free: 29.35 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01112/11.34, allocations: 0.9524 MB / 3.607 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003432/11.35, allocations: 1.052 MB / 3.609 GB, free: 27.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/11.35, allocations: 106.4 kB / 3.609 GB, free: 27.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003223/11.35, allocations: 116 kB / 3.609 GB, free: 27.11 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009149/11.35, allocations: 2.294 MB / 3.611 GB, free: 24.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-05/11.36, allocations: 11.38 kB / 3.611 GB, free: 24.67 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002949/11.36, allocations: 60 kB / 3.611 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.971e-05/11.36, allocations: 28 kB / 3.611 GB, free: 24.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/11.37, allocations: 2.184 MB / 3.613 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/11.38, allocations: 9.771 MB / 3.623 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007598/11.39, allocations: 1.62 MB / 3.624 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07259/11.46, allocations: 18.83 MB / 3.643 GB, free: 6.074 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/11.46, allocations: 51.5 kB / 3.643 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=88): time 4.178e-06/11.46, allocations: 0 / 3.643 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of matching and sorting (n=88): time 0.01483/11.48, allocations: 2.739 MB / 3.645 GB, free: 3.27 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/11.48, allocations: 274 kB / 3.646 GB, free: 2.938 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/11.48, allocations: 0.8565 MB / 3.647 GB, free: 2.062 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002935/11.48, allocations: 41.7 kB / 3.647 GB, free: 2.016 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007358/11.48, allocations: 0.6817 MB / 3.647 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005624/11.48, allocations: 302.6 kB / 3.648 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/11.48, allocations: 28 kB / 3.648 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000208/11.48, allocations: 366.7 kB / 3.648 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/11.48, allocations: 482.3 kB / 3.648 GB, free: 180 kB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3939/11.88, allocations: 1.042 MB / 3.649 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/11.88, allocations: 0.5895 MB / 3.65 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/11.88, allocations: 6.078 kB / 3.65 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005922/11.89, allocations: 1.548 MB / 3.651 GB, free: 56.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003802/11.89, allocations: 0.6006 MB / 3.652 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-05/11.89, allocations: 21.58 kB / 3.652 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.344e-05/11.89, allocations: 29.02 kB / 3.652 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/11.89, allocations: 391.1 kB / 3.652 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.184e-05/11.89, allocations: 36.23 kB / 3.653 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/11.89, allocations: 237.1 kB / 3.653 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002158/11.89, allocations: 81.8 kB / 3.653 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/11.89, allocations: 6.156 kB / 3.653 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005362/11.9, allocations: 1.459 MB / 3.654 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/11.9, allocations: 15.22 kB / 3.654 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.417e-05/11.9, allocations: 35.91 kB / 3.654 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/11.9, allocations: 385.6 kB / 3.655 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.62e-05/11.9, allocations: 37.53 kB / 3.655 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/11.9, allocations: 206.7 kB / 3.655 GB, free: 55.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/11.9, allocations: 79.86 kB / 3.655 GB, free: 55.68 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.001058/11.9, allocations: 414.9 kB / 3.655 GB, free: 55.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003562/11.9, allocations: 123.8 kB / 3.655 GB, free: 55.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/11.91, allocations: 6.085 MB / 3.661 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.03e-05/11.91, allocations: 80.73 kB / 3.662 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/11.91, allocations: 0 / 3.662 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.953e-05/11.91, allocations: 9.562 kB / 3.662 GB, free: 55.01 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004527/11.92, allocations: 2.796 MB / 3.664 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/11.92, allocations: 0 / 3.664 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/11.92, allocations: 294.6 kB / 3.665 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.416e-05/11.92, allocations: 6.281 kB / 3.665 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/11.92, allocations: 27.72 kB / 3.665 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.12e-05/11.92, allocations: 5.062 kB / 3.665 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/11.92, allocations: 2.188 kB / 3.665 GB, free: 54.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00608/11.93, allocations: 2.979 MB / 3.667 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/11.93, allocations: 0.5261 MB / 3.668 GB, free: 54.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/11.93, allocations: 17.62 kB / 3.668 GB, free: 54.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/11.93, allocations: 141.5 kB / 3.668 GB, free: 54.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/11.93, allocations: 92.8 kB / 3.668 GB, free: 54.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.153e-05/11.93, allocations: 37.5 kB / 3.668 GB, free: 54.02 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001275/11.93, allocations: 0.6707 MB / 3.669 GB, free: 53.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.91e-07/11.93, allocations: 0 / 3.669 GB, free: 53.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00833/11.94, allocations: 1.718 MB / 3.671 GB, free: 53.79 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.01084/11.95, allocations: 1.942 MB / 3.673 GB, free: 53.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008904/11.96, allocations: 2.693 MB / 3.675 GB, free: 53.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/11.96, allocations: 4.625 kB / 3.675 GB, free: 53.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004064/11.96, allocations: 1.512 MB / 3.677 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007598/11.97, allocations: 0.5653 MB / 3.677 GB, free: 53.53 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4264/12.4, allocations: 127.5 MB / 3.802 GB, free: 22.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/12.4, allocations: 1.658 MB / 3.803 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006663/12.4, allocations: 132.8 kB / 3.803 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.543e-06/12.4, allocations: 0 / 3.803 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of Templates: time 0.5468/12.95, allocations: 45.7 MB / 3.848 GB, free: 66.72 MB / 0.5261 GB