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.TestValveCoefficients.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004324/0.0004326, allocations: 11.98 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2753, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.1017/0.3771, allocations: 68.22 MB / 437.4 MB, free: 6.328 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04443/0.4216, allocations: 24.55 MB / 462 MB, free: 13.73 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.4238, allocations: 59.44 kB / 462 MB, free: 13.67 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.4273, allocations: 0.984 MB / 463 MB, free: 12.68 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01505/0.4424, allocations: 4.09 MB / 467.1 MB, free: 8.578 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02225/0.4647, allocations: 6.206 MB / 473.3 MB, free: 2.367 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.2849/0.7496, allocations: 2.386 MB / 475.7 MB, free: 9.953 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.7516, allocations: 0.7946 MB / 476.5 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.7548, allocations: 1.21 MB / 477.7 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.7564, allocations: 0.7651 MB / 478.5 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002847/0.7567, allocations: 60.69 kB / 478.5 MB, free: 9.879 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01925/0.7759, allocations: 8.284 MB / 486.8 MB, free: 9.867 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000675/0.7767, allocations: 298.1 kB / 487.1 MB, free: 9.867 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007097/0.7774, allocations: 336.9 kB / 487.4 MB, free: 9.836 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009754/0.7872, allocations: 4.641 MB / 492.1 MB, free: 9.578 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.628e-06/0.7872, allocations: 0 / 492.1 MB, free: 9.578 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.523e-06/0.7872, allocations: 0 / 492.1 MB, free: 9.578 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.446e-05/0.7873, allocations: 0 / 492.1 MB, free: 9.578 MB / 394.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.007198/0.7945, allocations: 2.437 MB / 494.5 MB, free: 24.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.7945, allocations: 9.75 kB / 494.5 MB, free: 24.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009032/0.8036, allocations: 0.882 MB / 495.4 MB, free: 24.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.8056, allocations: 0.9384 MB / 496.3 MB, free: 24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.8058, allocations: 103.8 kB / 496.4 MB, free: 24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.806, allocations: 114.9 kB / 496.5 MB, free: 24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007626/0.8136, allocations: 2.274 MB / 498.8 MB, free: 23.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.8137, allocations: 6.094 kB / 498.8 MB, free: 23.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.8139, allocations: 60.06 kB / 498.9 MB, free: 23.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.814, allocations: 32.19 kB / 498.9 MB, free: 23.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00909/0.8231, allocations: 2.165 MB / 0.4893 GB, free: 23.51 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/0.8371, allocations: 10.11 MB / 0.4992 GB, free: 16.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00618/0.8433, allocations: 1.543 MB / 0.5007 GB, free: 16.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04342/0.8868, allocations: 17.24 MB / 0.5176 GB, free: 2.293 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.3e-05/0.8869, allocations: 46.59 kB / 0.5176 GB, free: 2.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.391e-06/0.8869, allocations: 0 / 0.5176 GB, free: 2.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.01125/0.8982, allocations: 2.541 MB / 0.5201 GB, free: 168 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002155/0.8984, allocations: 273.1 kB / 0.5203 GB, free: 15.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/0.9002, allocations: 0.9682 MB / 0.5213 GB, free: 15.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.9004, allocations: 43.62 kB / 0.5213 GB, free: 15.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006024/0.901, allocations: 0.6889 MB / 0.522 GB, free: 14.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/0.9014, allocations: 276.4 kB / 0.5223 GB, free: 14.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/0.9015, allocations: 25.69 kB / 0.5223 GB, free: 14.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.9017, allocations: 364.2 kB / 0.5226 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.9032, allocations: 472.2 kB / 0.5231 GB, free: 13.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/0.9051, allocations: 1.065 MB / 0.5241 GB, free: 12.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.9069, allocations: 0.5808 MB / 0.5247 GB, free: 12.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.9069, allocations: 4 kB / 0.5247 GB, free: 12.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.004609/0.9115, allocations: 1.542 MB / 0.5262 GB, free: 10.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000607/0.9122, allocations: 0.6315 MB / 0.5268 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.929e-05/0.9123, allocations: 20 kB / 0.5268 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.278e-05/0.9123, allocations: 28 kB / 0.5269 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.9141, allocations: 398.6 kB / 0.5272 GB, free: 9.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.834e-05/0.9141, allocations: 38.77 kB / 0.5273 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.9161, allocations: 259.7 kB / 0.5275 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002475/0.9163, allocations: 85.22 kB / 0.5276 GB, free: 9.406 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.9164, allocations: 4 kB / 0.5276 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004053/0.9204, allocations: 1.453 MB / 0.529 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/0.9205, allocations: 16 kB / 0.5291 GB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.411e-05/0.9206, allocations: 35.98 kB / 0.5291 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.9222, allocations: 395.6 kB / 0.5295 GB, free: 8.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.177e-05/0.9223, allocations: 40.7 kB / 0.5295 GB, free: 7.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.9237, allocations: 204.5 kB / 0.5297 GB, free: 7.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.9239, allocations: 86.84 kB / 0.5298 GB, free: 7.738 MB / 426.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.0008822/0.9248, allocations: 406.9 kB / 0.5302 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.9251, allocations: 125.4 kB / 0.5303 GB, free: 7.328 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009456/0.9346, allocations: 5.938 MB / 0.5361 GB, free: 3.398 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.934e-05/0.9348, allocations: 85.12 kB / 0.5362 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.9348, allocations: 4 kB / 0.5362 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.724e-05/0.9348, allocations: 7.969 kB / 0.5362 GB, free: 3.328 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/0.9391, allocations: 2.762 MB / 0.5389 GB, free: 1.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/0.9391, allocations: 0 / 0.5389 GB, free: 1.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.9403, allocations: 262.6 kB / 0.5391 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.9403, allocations: 4 kB / 0.5391 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-05/0.9404, allocations: 25.88 kB / 0.5392 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.045e-05/0.9404, allocations: 4 kB / 0.5392 GB, free: 1.254 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.715e-06/0.9405, allocations: 7.938 kB / 0.5392 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.9455, allocations: 2.832 MB / 0.5419 GB, free: 15.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.9467, allocations: 0.5314 MB / 0.5425 GB, free: 14.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.9469, allocations: 24.25 kB / 0.5425 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009728/0.9479, allocations: 114 kB / 0.5426 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.9481, allocations: 86.94 kB / 0.5427 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.9482, allocations: 39.56 kB / 0.5427 GB, free: 14.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001458/0.9497, allocations: 0.7466 MB / 0.5434 GB, free: 13.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.85e-07/0.9497, allocations: 0 / 0.5434 GB, free: 13.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006185/0.9559, allocations: 1.652 MB / 0.545 GB, free: 12.43 MB / 442.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.006694/0.9626, allocations: 1.376 MB / 0.5464 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006455/0.9691, allocations: 2.608 MB / 0.5489 GB, free: 9.406 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.458e-06/0.9692, allocations: 0 / 0.5489 GB, free: 9.406 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.9716, allocations: 1.443 MB / 0.5503 GB, free: 8.609 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003642/0.9753, allocations: 0.5853 MB / 0.5509 GB, free: 8.137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.9855, allocations: 5.759 MB / 0.5565 GB, free: 3.164 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/0.9874, allocations: 1.652 MB / 0.5582 GB, free: 1.484 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005675/0.988, allocations: 135.7 kB / 0.5583 GB, free: 1.363 MB / 442.7 MB Notification: Performance of SimCode: time 1.846e-06/0.988, allocations: 4 kB / 0.5583 GB, free: 1.359 MB / 442.7 MB Notification: Performance of Templates: time 0.08807/1.076, allocations: 44.33 MB / 0.6016 GB, free: 5.648 MB / 490.7 MB