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.TestValveIncompressible.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.TestValveIncompressible,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",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 1.821/1.821, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009477/0.0009478, allocations: 16 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3082, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.07312/0.3814, allocations: 53.07 MB / 384.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03762/0.419, allocations: 21.09 MB / 405.4 MB, free: 4.227 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.421, allocations: 43.62 kB / 405.4 MB, free: 4.184 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002897/0.4239, allocations: 0.7389 MB / 406.1 MB, free: 3.441 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01441/0.4384, allocations: 3.689 MB / 409.8 MB, free: 15.74 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01845/0.4568, allocations: 5.066 MB / 414.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00419/0.4611, allocations: 1.78 MB / 416.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.4625, allocations: 0.5975 MB / 417.3 MB, free: 8.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.4651, allocations: 0.9306 MB / 418.2 MB, free: 7.336 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.4664, allocations: 0.5875 MB / 418.8 MB, free: 6.746 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002065/0.4666, allocations: 44 kB / 418.8 MB, free: 6.703 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02002/0.4866, allocations: 7.742 MB / 426.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004935/0.4872, allocations: 223.2 kB / 426.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005325/0.4877, allocations: 261.1 kB / 427 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009535/0.4973, allocations: 4.042 MB / 431.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.952e-06/0.4973, allocations: 0 / 431.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.483e-06/0.4973, allocations: 0 / 431.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.4973, allocations: 0 / 431.1 MB, free: 10.42 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006075/0.5034, allocations: 1.987 MB / 433.1 MB, free: 8.383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.5035, allocations: 11.97 kB / 433.1 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006873/0.5104, allocations: 0.6269 MB / 433.7 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.5122, allocations: 0.7602 MB / 434.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.5124, allocations: 82 kB / 434.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.5126, allocations: 88 kB / 434.6 MB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006083/0.5187, allocations: 1.735 MB / 436.4 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/0.5187, allocations: 11.92 kB / 436.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.5189, allocations: 40 kB / 436.4 MB, free: 4.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.519, allocations: 24 kB / 436.5 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006706/0.5257, allocations: 1.666 MB / 438.1 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.5373, allocations: 7.397 MB / 445.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005049/0.5424, allocations: 1.211 MB / 446.7 MB, free: 9.992 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04976/0.5922, allocations: 17.76 MB / 464.5 MB, free: 6.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.752e-05/0.5923, allocations: 39.12 kB / 464.5 MB, free: 6.465 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 4.292e-06/0.5923, allocations: 0 / 464.5 MB, free: 6.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.00894/0.6012, allocations: 2.094 MB / 466.6 MB, free: 4.363 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.6014, allocations: 214.2 kB / 466.8 MB, free: 4.105 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.6026, allocations: 0.6883 MB / 467.5 MB, free: 3.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6028, allocations: 37.7 kB / 467.5 MB, free: 3.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.6033, allocations: 0.5513 MB / 468.1 MB, free: 2.809 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002774/0.6036, allocations: 228.8 kB / 468.3 MB, free: 2.582 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-05/0.6037, allocations: 20 kB / 468.3 MB, free: 2.562 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.6039, allocations: 354.8 kB / 468.7 MB, free: 2.207 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.6051, allocations: 374.4 kB / 469.1 MB, free: 1.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.6067, allocations: 0.7954 MB / 469.8 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.6081, allocations: 469.8 kB / 470.3 MB, free: 400 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.6081, allocations: 4 kB / 470.3 MB, free: 396 kB / 394.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003434/0.6115, allocations: 1.194 MB / 471.5 MB, free: 15.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004243/0.612, allocations: 468.7 kB / 472 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.612, allocations: 16 kB / 472 MB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.712e-05/0.6121, allocations: 20 kB / 472 MB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.6133, allocations: 299.6 kB / 472.3 MB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.444e-05/0.6134, allocations: 35.81 kB / 472.3 MB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.6146, allocations: 174.8 kB / 472.5 MB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.6148, allocations: 63.92 kB / 472.6 MB, free: 13.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.6148, allocations: 4 kB / 472.6 MB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003114/0.6179, allocations: 1.114 MB / 473.7 MB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.618, allocations: 16 kB / 473.7 MB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.833e-05/0.618, allocations: 23.98 kB / 473.7 MB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.6192, allocations: 296.3 kB / 474 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-05/0.6193, allocations: 31.91 kB / 474 MB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009528/0.6203, allocations: 163.2 kB / 474.2 MB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.6204, allocations: 59.98 kB / 474.3 MB, free: 12.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (127): * Single equations (assignments): 127 * 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.0007127/0.6211, allocations: 356.6 kB / 474.6 MB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002362/0.6214, allocations: 90.88 kB / 474.7 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008059/0.6294, allocations: 4.647 MB / 479.3 MB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.844e-05/0.6296, allocations: 63.89 kB / 479.4 MB, free: 7.055 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.509e-06/0.6296, allocations: 0 / 479.4 MB, free: 7.055 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.6296, allocations: 7.984 kB / 479.4 MB, free: 7.047 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.633, allocations: 2.16 MB / 481.6 MB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.251e-06/0.633, allocations: 0 / 481.6 MB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009916/0.634, allocations: 223.8 kB / 481.8 MB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.376e-05/0.6341, allocations: 4 kB / 481.8 MB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.136e-05/0.6341, allocations: 23.94 kB / 481.8 MB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.663e-06/0.6341, allocations: 4 kB / 481.8 MB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.403e-06/0.6342, allocations: 0 / 481.8 MB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/0.6386, allocations: 2.275 MB / 484.1 MB, free: 2.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007887/0.6394, allocations: 457.3 kB / 484.5 MB, free: 1.801 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.6396, allocations: 16 kB / 484.6 MB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007882/0.6404, allocations: 103.7 kB / 484.7 MB, free: 1.684 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.6406, allocations: 72.89 kB / 484.7 MB, free: 1.613 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-05/0.6407, allocations: 27.98 kB / 484.8 MB, free: 1.586 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.6417, allocations: 0.5667 MB / 485.3 MB, free: 1.012 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.18e-07/0.6418, allocations: 3.938 kB / 485.3 MB, free: 1.008 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.2809/0.9227, allocations: 1.474 MB / 486.8 MB, free: 135.3 MB / 410.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: 42 ($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,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.005541/0.9282, allocations: 1.305 MB / 488.1 MB, free: 135.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005001/0.9333, allocations: 2.058 MB / 490.2 MB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.012e-06/0.9333, allocations: 1.781 kB / 490.2 MB, free: 134.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.9353, allocations: 1.141 MB / 491.3 MB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.9379, allocations: 445.7 kB / 491.7 MB, free: 134.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006618/0.9445, allocations: 4.569 MB / 496.3 MB, free: 131.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.9456, allocations: 1.424 MB / 497.7 MB, free: 131.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003967/0.946, allocations: 106.6 kB / 497.8 MB, free: 131.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.349e-06/0.946, allocations: 0 / 497.8 MB, free: 131.1 MB / 410.7 MB Notification: Performance of Templates: time 0.06093/1.007, allocations: 38.57 MB / 0.5238 GB, free: 100.3 MB / 410.7 MB