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.199/2.199, allocations: 234.9 MB / 250.5 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004455, allocations: 12 kB / 314.3 MB, free: 9.727 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2898, allocations: 54.86 MB / 369.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.09824/0.388, allocations: 68.25 MB / 437.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04381/0.4319, allocations: 24.57 MB / 462 MB, free: 15.74 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002261/0.4342, allocations: 59.44 kB / 462.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003577/0.4378, allocations: 0.9879 MB / 463.1 MB, free: 14.69 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01475/0.4526, allocations: 4.102 MB / 467.2 MB, free: 10.58 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02195/0.4746, allocations: 6.224 MB / 473.4 MB, free: 4.355 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005063/0.4797, allocations: 2.402 MB / 475.8 MB, free: 1.949 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001695/0.4814, allocations: 0.7989 MB / 476.6 MB, free: 1.129 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003209/0.4847, allocations: 1.215 MB / 477.8 MB, free: 15.91 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.4862, allocations: 0.7625 MB / 478.6 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002774/0.4866, allocations: 60 kB / 478.6 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02119/0.5078, allocations: 8.261 MB / 486.9 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006764/0.5085, allocations: 306.8 kB / 487.2 MB, free: 6.516 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006977/0.5092, allocations: 333 kB / 487.5 MB, free: 6.184 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.5201, allocations: 4.634 MB / 492.1 MB, free: 1.539 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.688e-06/0.5201, allocations: 0 / 492.1 MB, free: 1.539 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.02e-06/0.5201, allocations: 0 / 492.1 MB, free: 1.539 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.392e-05/0.5202, allocations: 0 / 492.1 MB, free: 1.539 MB / 410.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.007547/0.5277, allocations: 2.452 MB / 494.6 MB, free: 15.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.5278, allocations: 8.031 kB / 494.6 MB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009232/0.537, allocations: 0.8762 MB / 495.5 MB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.5394, allocations: 0.9312 MB / 496.4 MB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.5396, allocations: 106.4 kB / 496.5 MB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/0.5399, allocations: 120 kB / 496.6 MB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008178/0.5481, allocations: 2.295 MB / 498.9 MB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.215e-05/0.5481, allocations: 11.88 kB / 498.9 MB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/0.5484, allocations: 56 kB / 499 MB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.109e-05/0.5484, allocations: 32 kB / 499 MB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008837/0.5573, allocations: 2.201 MB / 0.4895 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2662/0.8235, allocations: 9.798 MB / 0.499 GB, free: 120.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007477/0.831, allocations: 1.628 MB / 0.5006 GB, free: 120.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04311/0.8742, allocations: 19.07 MB / 0.5193 GB, free: 108.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.8742, allocations: 46.03 kB / 0.5193 GB, free: 108.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=88): time 4.535e-06/0.8743, allocations: 0 / 0.5193 GB, free: 108.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=88): time 0.01116/0.8854, allocations: 2.756 MB / 0.522 GB, free: 105.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/0.8856, allocations: 270 kB / 0.5223 GB, free: 105.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.8868, allocations: 0.8548 MB / 0.5231 GB, free: 104.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.8869, allocations: 41.7 kB / 0.5231 GB, free: 104.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.8873, allocations: 0.6854 MB / 0.5238 GB, free: 104 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/0.8876, allocations: 309.6 kB / 0.5241 GB, free: 103.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.8877, allocations: 24 kB / 0.5241 GB, free: 103.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.8878, allocations: 366.3 kB / 0.5245 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.8892, allocations: 486.3 kB / 0.5249 GB, free: 102.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.8907, allocations: 1.041 MB / 0.5259 GB, free: 101.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.8922, allocations: 0.595 MB / 0.5265 GB, free: 100.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.8922, allocations: 4 kB / 0.5265 GB, free: 100.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003671/0.8959, allocations: 1.552 MB / 0.528 GB, free: 99.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.8962, allocations: 0.5969 MB / 0.5286 GB, free: 98.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.8962, allocations: 20 kB / 0.5286 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.046e-05/0.8963, allocations: 28 kB / 0.5287 GB, free: 98.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.8977, allocations: 391.4 kB / 0.529 GB, free: 98.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.494e-05/0.8977, allocations: 35.86 kB / 0.5291 GB, free: 98.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.8993, allocations: 238.4 kB / 0.5293 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.8994, allocations: 79.98 kB / 0.5294 GB, free: 97.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.8995, allocations: 4 kB / 0.5294 GB, free: 97.76 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003432/0.9029, allocations: 1.467 MB / 0.5308 GB, free: 96.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.903, allocations: 16 kB / 0.5308 GB, free: 96.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.903, allocations: 28 kB / 0.5309 GB, free: 96.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.9044, allocations: 387.4 kB / 0.5312 GB, free: 95.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.182e-05/0.9044, allocations: 35.86 kB / 0.5313 GB, free: 95.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.9056, allocations: 198.9 kB / 0.5315 GB, free: 95.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.9057, allocations: 79.98 kB / 0.5315 GB, free: 95.56 MB / 426.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.0007594/0.9065, allocations: 414.2 kB / 0.5319 GB, free: 95.15 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002787/0.9068, allocations: 122.5 kB / 0.532 GB, free: 95.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007942/0.9147, allocations: 6.088 MB / 0.538 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.809e-05/0.9148, allocations: 83.86 kB / 0.5381 GB, free: 88.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.803e-06/0.9149, allocations: 0 / 0.5381 GB, free: 88.85 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.9149, allocations: 7.969 kB / 0.5381 GB, free: 88.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.9182, allocations: 2.796 MB / 0.5408 GB, free: 86.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.9182, allocations: 4 kB / 0.5408 GB, free: 86.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.9194, allocations: 287.7 kB / 0.5411 GB, free: 85.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/0.9194, allocations: 7.984 kB / 0.5411 GB, free: 85.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/0.9195, allocations: 28 kB / 0.5411 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/0.9195, allocations: 4 kB / 0.5411 GB, free: 85.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.58e-06/0.9195, allocations: 7.938 kB / 0.5411 GB, free: 85.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004451/0.924, allocations: 2.971 MB / 0.544 GB, free: 82.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007718/0.9248, allocations: 0.5199 MB / 0.5445 GB, free: 82.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.925, allocations: 24 kB / 0.5446 GB, free: 82.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009373/0.926, allocations: 135.6 kB / 0.5447 GB, free: 81.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.9262, allocations: 92.86 kB / 0.5448 GB, free: 81.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.449e-05/0.9263, allocations: 39.98 kB / 0.5448 GB, free: 81.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009568/0.9272, allocations: 0.6668 MB / 0.5455 GB, free: 81.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.13e-07/0.9273, allocations: 0 / 0.5455 GB, free: 81.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004761/0.932, allocations: 1.644 MB / 0.5471 GB, free: 79.63 MB / 426.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 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.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.005592/0.9377, allocations: 1.384 MB / 0.5484 GB, free: 78.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005626/0.9433, allocations: 2.698 MB / 0.5511 GB, free: 75.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.797e-06/0.9434, allocations: 0 / 0.5511 GB, free: 75.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002249/0.9456, allocations: 1.508 MB / 0.5525 GB, free: 74.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/0.949, allocations: 0.5794 MB / 0.5531 GB, free: 73.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007968/0.957, allocations: 5.843 MB / 0.5588 GB, free: 67.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.9581, allocations: 1.658 MB / 0.5604 GB, free: 66.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.9586, allocations: 139.4 kB / 0.5606 GB, free: 66.07 MB / 426.7 MB Notification: Performance of SimCode: time 1.642e-06/0.9586, allocations: 0 / 0.5606 GB, free: 66.07 MB / 426.7 MB Notification: Performance of Templates: time 0.06681/1.025, allocations: 44.11 MB / 0.6036 GB, free: 21.95 MB / 426.7 MB