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.875/1.875, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004469, allocations: 23.94 kB / 282.6 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2873, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.924/6.211, allocations: 2.497 GB / 2.821 GB, free: 38.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/6.211, allocations: 91.94 kB / 2.821 GB, free: 37.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.961/9.173, allocations: 0.6208 GB / 3.442 GB, free: 35.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.579e-06/9.173, allocations: 0 / 3.442 GB, free: 35.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001113/9.173, allocations: 41.39 kB / 3.442 GB, free: 35.79 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.008306/9.181, allocations: 2.51 MB / 3.444 GB, free: 34.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/9.181, allocations: 7.75 kB / 3.444 GB, free: 34.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0104/9.192, allocations: 0.9032 MB / 3.445 GB, free: 34.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/9.194, allocations: 1.051 MB / 3.446 GB, free: 34.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/9.195, allocations: 105.1 kB / 3.446 GB, free: 34.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/9.195, allocations: 114.5 kB / 3.446 GB, free: 34.12 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008444/9.203, allocations: 2.284 MB / 3.449 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/9.203, allocations: 5.188 kB / 3.449 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/9.204, allocations: 59.28 kB / 3.449 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/9.204, allocations: 33.47 kB / 3.449 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008198/9.212, allocations: 2.18 MB / 3.451 GB, free: 33.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/9.224, allocations: 9.784 MB / 3.46 GB, free: 27.08 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00634/9.23, allocations: 1.619 MB / 3.462 GB, free: 27.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04629/9.277, allocations: 18.82 MB / 3.48 GB, free: 17.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/9.277, allocations: 52.42 kB / 3.48 GB, free: 17.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 3.524e-06/9.277, allocations: 0 / 3.48 GB, free: 17.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.01163/9.288, allocations: 2.745 MB / 3.483 GB, free: 17.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/9.288, allocations: 273 kB / 3.483 GB, free: 17.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/9.29, allocations: 0.7402 MB / 3.484 GB, free: 16.85 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/9.29, allocations: 44.48 kB / 3.484 GB, free: 16.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003706/9.29, allocations: 0.6751 MB / 3.485 GB, free: 16.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/9.29, allocations: 305.4 kB / 3.485 GB, free: 16.22 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.151e-05/9.291, allocations: 23.34 kB / 3.485 GB, free: 16.22 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/9.291, allocations: 368.1 kB / 3.485 GB, free: 15.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/9.292, allocations: 481.5 kB / 3.486 GB, free: 15.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/9.294, allocations: 1.042 MB / 3.487 GB, free: 15.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/9.296, allocations: 0.595 MB / 3.488 GB, free: 15.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/9.296, allocations: 6.125 kB / 3.488 GB, free: 15.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004406/9.3, allocations: 1.548 MB / 3.489 GB, free: 14.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002564/9.303, allocations: 6.878 MB / 3.496 GB, free: 23.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/9.303, allocations: 15.41 kB / 3.496 GB, free: 23.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.546e-05/9.303, allocations: 37.42 kB / 3.496 GB, free: 23.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/9.305, allocations: 388.7 kB / 3.496 GB, free: 23.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.668e-05/9.305, allocations: 37.41 kB / 3.496 GB, free: 23.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/9.307, allocations: 233.5 kB / 3.496 GB, free: 23.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/9.307, allocations: 87.5 kB / 3.497 GB, free: 23.56 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/9.307, allocations: 3.656 kB / 3.497 GB, free: 23.56 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004115/9.311, allocations: 1.461 MB / 3.498 GB, free: 23.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/9.311, allocations: 20.16 kB / 3.498 GB, free: 23.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.064e-05/9.311, allocations: 28.34 kB / 3.498 GB, free: 23.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/9.313, allocations: 382.4 kB / 3.498 GB, free: 23.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.409e-05/9.313, allocations: 36.86 kB / 3.498 GB, free: 23.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/9.314, allocations: 204.7 kB / 3.499 GB, free: 23.31 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/9.314, allocations: 76.66 kB / 3.499 GB, free: 23.31 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 () * 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.0009505/9.315, allocations: 412.3 kB / 3.499 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/9.315, allocations: 123.1 kB / 3.499 GB, free: 23.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008639/9.324, allocations: 6.087 MB / 3.505 GB, free: 20.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-05/9.324, allocations: 81.91 kB / 3.505 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.917e-06/9.324, allocations: 3.875 kB / 3.505 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/9.324, allocations: 7.406 kB / 3.505 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/9.328, allocations: 2.799 MB / 3.508 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/9.328, allocations: 0 / 3.508 GB, free: 19.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/9.329, allocations: 288.5 kB / 3.508 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/9.329, allocations: 11.36 kB / 3.508 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.323e-05/9.329, allocations: 26.47 kB / 3.508 GB, free: 19.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.909e-06/9.329, allocations: 7.969 kB / 3.508 GB, free: 19.37 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/9.329, allocations: 0 / 3.508 GB, free: 19.37 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/9.334, allocations: 2.965 MB / 3.511 GB, free: 18.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008937/9.335, allocations: 0.5302 MB / 3.512 GB, free: 17.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002434/9.336, allocations: 27.27 kB / 3.512 GB, free: 17.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/9.337, allocations: 141.2 kB / 3.512 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/9.337, allocations: 91.3 kB / 3.512 GB, free: 17.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.892e-05/9.337, allocations: 39.5 kB / 3.512 GB, free: 17.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001144/9.338, allocations: 0.664 MB / 3.513 GB, free: 17.35 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.95e-07/9.338, allocations: 3.938 kB / 3.513 GB, free: 17.35 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006608/9.345, allocations: 1.717 MB / 3.514 GB, free: 16.99 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 () * 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.008346/9.353, allocations: 1.941 MB / 3.516 GB, free: 15.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005695/9.359, allocations: 2.692 MB / 3.519 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.478e-06/9.359, allocations: 0 / 3.519 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/9.361, allocations: 1.514 MB / 3.52 GB, free: 12.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003503/9.365, allocations: 0.582 MB / 3.521 GB, free: 11.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5622/9.927, allocations: 125.3 MB / 3.643 GB, free: 35.61 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/9.928, allocations: 1.653 MB / 3.645 GB, free: 34.84 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005149/9.929, allocations: 139.3 kB / 3.645 GB, free: 34.84 MB / 474.7 MB Notification: Performance of SimCode: time 1.64e-06/9.929, allocations: 1.859 kB / 3.645 GB, free: 34.84 MB / 474.7 MB Notification: Performance of Templates: time 0.07069/10, allocations: 45.53 MB / 3.689 GB, free: 11.95 MB / 474.7 MB