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.TestValveCoefficients.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.TestValveCoefficients,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 1.95/1.95, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004363, allocations: 12 kB / 282.5 MB, free: 9.621 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2829, allocations: 48.7 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.09863/0.3816, allocations: 67.65 MB / 398.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04342/0.4251, allocations: 24.29 MB / 423.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/0.4275, allocations: 59.44 kB / 423.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003649/0.4312, allocations: 0.9879 MB / 424.2 MB, free: 1.34 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01506/0.4463, allocations: 4.063 MB / 428.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0217/0.4681, allocations: 6.116 MB / 434.4 MB, free: 7.145 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004966/0.4731, allocations: 2.343 MB / 436.7 MB, free: 4.797 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.4749, allocations: 0.7874 MB / 437.5 MB, free: 3.984 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003205/0.4781, allocations: 1.195 MB / 438.7 MB, free: 2.785 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.4796, allocations: 0.7587 MB / 439.5 MB, free: 2.023 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.4798, allocations: 60 kB / 439.5 MB, free: 1.965 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02141/0.5012, allocations: 8.105 MB / 447.6 MB, free: 9.852 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006728/0.5019, allocations: 298.9 kB / 447.9 MB, free: 9.559 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007372/0.5027, allocations: 333 kB / 448.2 MB, free: 9.227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.5139, allocations: 4.564 MB / 452.8 MB, free: 4.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.514, allocations: 0 / 452.8 MB, free: 4.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.112e-06/0.514, allocations: 4 kB / 452.8 MB, free: 4.648 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.209e-05/0.514, allocations: 0 / 452.8 MB, free: 4.648 MB / 378.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.007311/0.5214, allocations: 2.362 MB / 455.2 MB, free: 2.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.5214, allocations: 12.03 kB / 455.2 MB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009203/0.5306, allocations: 0.8333 MB / 456 MB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002295/0.533, allocations: 0.943 MB / 457 MB, free: 408 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.5332, allocations: 98.38 kB / 457.1 MB, free: 308 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002321/0.5334, allocations: 116 kB / 457.2 MB, free: 192 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007992/0.5414, allocations: 2.275 MB / 459.4 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.101e-05/0.5415, allocations: 3.938 kB / 459.4 MB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.5417, allocations: 55.94 kB / 459.5 MB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.68e-05/0.5418, allocations: 32 kB / 459.5 MB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008501/0.5503, allocations: 2.17 MB / 461.7 MB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/0.5661, allocations: 10.11 MB / 471.8 MB, free: 0.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2253/0.7914, allocations: 1.545 MB / 473.4 MB, free: 120.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04317/0.8346, allocations: 17.22 MB / 490.6 MB, free: 110.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.8347, allocations: 43.33 kB / 490.6 MB, free: 110.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 5.021e-06/0.8347, allocations: 2.844 kB / 490.6 MB, free: 110.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.01098/0.8457, allocations: 2.542 MB / 493.2 MB, free: 109 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/0.8458, allocations: 273.4 kB / 493.4 MB, free: 108.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/0.8474, allocations: 0.9699 MB / 494.4 MB, free: 108.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/0.8476, allocations: 41.67 kB / 494.4 MB, free: 108.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/0.848, allocations: 0.6853 MB / 495.1 MB, free: 107.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.8482, allocations: 278.3 kB / 495.4 MB, free: 107.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/0.8483, allocations: 31.91 kB / 495.4 MB, free: 107.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.687e-05/0.8484, allocations: 362.6 kB / 495.8 MB, free: 107 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.8498, allocations: 470.3 kB / 496.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/0.8515, allocations: 1.064 MB / 497.3 MB, free: 105.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.8533, allocations: 0.5802 MB / 497.9 MB, free: 105.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/0.8533, allocations: 3.969 kB / 497.9 MB, free: 105.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.004451/0.8578, allocations: 1.547 MB / 499.4 MB, free: 104.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000271/0.8581, allocations: 0.6304 MB / 0.4883 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.931e-05/0.8581, allocations: 22.66 kB / 0.4884 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-05/0.8582, allocations: 28.38 kB / 0.4884 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.8597, allocations: 395.5 kB / 0.4888 GB, free: 103.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.514e-05/0.8597, allocations: 42.55 kB / 0.4888 GB, free: 103.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.8613, allocations: 258.2 kB / 0.4891 GB, free: 103.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.8616, allocations: 82.7 kB / 0.4891 GB, free: 103.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.8616, allocations: 2.969 kB / 0.4891 GB, free: 103.6 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003693/0.8653, allocations: 1.451 MB / 0.4906 GB, free: 102.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/0.8654, allocations: 17.55 kB / 0.4906 GB, free: 102.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.198e-05/0.8654, allocations: 33.17 kB / 0.4906 GB, free: 102.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.8671, allocations: 389.3 kB / 0.491 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.463e-05/0.8671, allocations: 39.08 kB / 0.491 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.8685, allocations: 205.7 kB / 0.4912 GB, free: 102.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.8686, allocations: 87.98 kB / 0.4913 GB, free: 102.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 167 * 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.0007598/0.8694, allocations: 404.5 kB / 0.4917 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.8697, allocations: 122.5 kB / 0.4918 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007424/0.8771, allocations: 5.943 MB / 0.4976 GB, free: 96.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.647e-05/0.8772, allocations: 83.84 kB / 0.4977 GB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9e-06/0.8772, allocations: 0 / 0.4977 GB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.8773, allocations: 7.984 kB / 0.4977 GB, free: 95.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.8804, allocations: 2.782 MB / 0.5004 GB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/0.8804, allocations: 0 / 0.5004 GB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.8815, allocations: 255.7 kB / 0.5006 GB, free: 92.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.8815, allocations: 4 kB / 0.5007 GB, free: 92.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.596e-05/0.8816, allocations: 27.98 kB / 0.5007 GB, free: 92.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.059e-06/0.8816, allocations: 4 kB / 0.5007 GB, free: 92.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.677e-06/0.8816, allocations: 0 / 0.5007 GB, free: 92.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003984/0.8856, allocations: 2.836 MB / 0.5035 GB, free: 90.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007338/0.8864, allocations: 0.5277 MB / 0.504 GB, free: 89.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.8866, allocations: 20 kB / 0.504 GB, free: 89.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008869/0.8875, allocations: 123.7 kB / 0.5041 GB, free: 89.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.8877, allocations: 84.86 kB / 0.5042 GB, free: 89.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-05/0.8878, allocations: 35.84 kB / 0.5042 GB, free: 89.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.889, allocations: 0.7504 MB / 0.505 GB, free: 88.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.733e-06/0.889, allocations: 0 / 0.505 GB, free: 88.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004938/0.8939, allocations: 1.649 MB / 0.5066 GB, free: 86.89 MB / 394.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 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.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,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * 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.005329/0.8993, allocations: 1.358 MB / 0.5079 GB, free: 85.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005682/0.905, allocations: 2.608 MB / 0.5104 GB, free: 83.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.9051, allocations: 1.125 kB / 0.5104 GB, free: 83.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.907, allocations: 1.437 MB / 0.5118 GB, free: 81.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/0.9104, allocations: 0.5862 MB / 0.5124 GB, free: 81.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007578/0.918, allocations: 5.765 MB / 0.518 GB, free: 75.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.9191, allocations: 1.646 MB / 0.5197 GB, free: 73.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005387/0.9197, allocations: 139.4 kB / 0.5198 GB, free: 73.58 MB / 394.7 MB Notification: Performance of SimCode: time 1.845e-06/0.9197, allocations: 0 / 0.5198 GB, free: 73.58 MB / 394.7 MB Notification: Performance of Templates: time 0.067/0.9867, allocations: 44.16 MB / 0.5629 GB, free: 29.4 MB / 394.7 MB