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.TestValveIncompressible.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.962e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3223, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.118/6.44, allocations: 2.607 GB / 2.963 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/6.441, allocations: 85.16 kB / 2.963 GB, free: 101.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.07/8.51, allocations: 0.4981 GB / 3.462 GB, free: 31.28 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.044e-06/8.51, allocations: 3.406 kB / 3.462 GB, free: 31.28 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.773e-05/8.51, allocations: 34.48 kB / 3.462 GB, free: 31.27 MB / 490.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.007219/8.518, allocations: 2.057 MB / 3.464 GB, free: 30.11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/8.518, allocations: 10.84 kB / 3.464 GB, free: 30.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00797/8.526, allocations: 0.7151 MB / 3.464 GB, free: 30 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/8.528, allocations: 0.8573 MB / 3.465 GB, free: 29.49 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/8.528, allocations: 81.19 kB / 3.465 GB, free: 29.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/8.528, allocations: 83.91 kB / 3.465 GB, free: 29.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004664/8.533, allocations: 1.707 MB / 3.467 GB, free: 28.67 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/8.533, allocations: 7.812 kB / 3.467 GB, free: 28.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/8.533, allocations: 39.31 kB / 3.467 GB, free: 28.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/8.533, allocations: 25.03 kB / 3.467 GB, free: 28.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004943/8.538, allocations: 1.488 MB / 3.468 GB, free: 28.21 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008882/8.547, allocations: 7.366 MB / 3.476 GB, free: 22.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/8.551, allocations: 1.11 MB / 3.477 GB, free: 22.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005636/8.551, allocations: 303 kB / 3.477 GB, free: 21.89 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04647/8.598, allocations: 17.71 MB / 3.494 GB, free: 3.066 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/8.598, allocations: 47.06 kB / 3.494 GB, free: 3.008 MB / 490.7 MB Notification: Performance of pre-optimization done (n=67): time 3.773e-06/8.598, allocations: 0 / 3.494 GB, free: 3.008 MB / 490.7 MB Notification: Performance of matching and sorting (n=67): time 0.006472/8.605, allocations: 1.707 MB / 3.496 GB, free: 1.293 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/8.605, allocations: 222.1 kB / 3.496 GB, free: 1.027 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008834/8.606, allocations: 0.5939 MB / 3.497 GB, free: 436 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/8.606, allocations: 41.7 kB / 3.497 GB, free: 388 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/8.606, allocations: 0.5503 MB / 3.497 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002823/8.606, allocations: 230 kB / 3.498 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.025e-05/8.606, allocations: 20 kB / 3.498 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002015/8.607, allocations: 350.6 kB / 3.498 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008849/8.607, allocations: 258.6 kB / 3.498 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/8.609, allocations: 0.6706 MB / 3.499 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007973/8.609, allocations: 355.2 kB / 3.499 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/8.609, allocations: 8 kB / 3.499 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00242/8.612, allocations: 0.9517 MB / 3.5 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00281/8.615, allocations: 5.052 MB / 3.505 GB, free: 7.352 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/8.615, allocations: 16 kB / 3.505 GB, free: 7.336 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.434e-05/8.615, allocations: 20.06 kB / 3.505 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/8.616, allocations: 303.6 kB / 3.505 GB, free: 7.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.257e-05/8.616, allocations: 31.83 kB / 3.505 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/8.618, allocations: 186.7 kB / 3.506 GB, free: 6.805 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/8.618, allocations: 59.98 kB / 3.506 GB, free: 6.746 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/8.618, allocations: 4 kB / 3.506 GB, free: 6.742 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002139/8.62, allocations: 0.8836 MB / 3.507 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/8.62, allocations: 16 kB / 3.507 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.319e-05/8.62, allocations: 20.84 kB / 3.507 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/8.622, allocations: 295.6 kB / 3.507 GB, free: 5.531 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.281e-05/8.622, allocations: 23.92 kB / 3.507 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/8.623, allocations: 159.2 kB / 3.507 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/8.623, allocations: 59.98 kB / 3.507 GB, free: 5.293 MB / 0.4948 GB 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 () * 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.000303/8.623, allocations: 177.8 kB / 3.507 GB, free: 5.113 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/8.623, allocations: 102.8 kB / 3.507 GB, free: 5.012 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006938/8.63, allocations: 4.427 MB / 3.512 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.898e-05/8.631, allocations: 63.89 kB / 3.512 GB, free: 492 kB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/8.631, allocations: 0 / 3.512 GB, free: 492 kB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/8.631, allocations: 7.922 kB / 3.512 GB, free: 484 kB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3107/8.941, allocations: 2.156 MB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/8.941, allocations: 0 / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/8.942, allocations: 223.9 kB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/8.942, allocations: 5.438 kB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-05/8.942, allocations: 21.17 kB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.213e-06/8.942, allocations: 5 kB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.127e-06/8.943, allocations: 1.156 kB / 3.514 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/8.946, allocations: 2.048 MB / 3.516 GB, free: 55.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007093/8.946, allocations: 455.1 kB / 3.517 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/8.947, allocations: 14.97 kB / 3.517 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008758/8.947, allocations: 104.1 kB / 3.517 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/8.948, allocations: 70.19 kB / 3.517 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/8.948, allocations: 28.2 kB / 3.517 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009747/8.949, allocations: 0.5564 MB / 3.517 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.15e-07/8.949, allocations: 3.25 kB / 3.517 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006156/8.955, allocations: 1.544 MB / 3.519 GB, free: 55.35 MB / 0.4948 GB 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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.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,$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 () * 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.007974/8.963, allocations: 1.773 MB / 3.521 GB, free: 55.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003486/8.966, allocations: 1.703 MB / 3.522 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.755e-06/8.966, allocations: 2.906 kB / 3.522 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/8.968, allocations: 1.026 MB / 3.523 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/8.971, allocations: 459.4 kB / 3.524 GB, free: 55.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2653/9.236, allocations: 124.5 MB / 3.645 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00086/9.237, allocations: 1.427 MB / 3.647 GB, free: 32.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/9.238, allocations: 105.4 kB / 3.647 GB, free: 32.25 MB / 0.4948 GB Notification: Performance of SimCode: time 2.924e-06/9.238, allocations: 0 / 3.647 GB, free: 32.25 MB / 0.4948 GB Notification: Performance of Templates: time 0.06177/9.299, allocations: 39.35 MB / 3.685 GB, free: 5.801 MB / 0.4948 GB