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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.889/1.889, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.568e-05/1.574e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2604, allocations: 48.69 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.991/6.252, allocations: 2.496 GB / 2.809 GB, free: 9.121 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/6.252, allocations: 76.11 kB / 2.809 GB, free: 9.082 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.195/8.447, allocations: 494.3 MB / 3.291 GB, free: 27.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.242e-06/8.447, allocations: 0 / 3.291 GB, free: 27.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.377e-05/8.447, allocations: 34.91 kB / 3.291 GB, free: 27.07 MB / 442.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.007015/8.454, allocations: 1.998 MB / 3.293 GB, free: 25.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/8.454, allocations: 14.16 kB / 3.293 GB, free: 25.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007583/8.462, allocations: 0.6783 MB / 3.294 GB, free: 24.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/8.464, allocations: 0.8429 MB / 3.295 GB, free: 23.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/8.464, allocations: 40.69 kB / 3.295 GB, free: 23.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/8.464, allocations: 52 kB / 3.295 GB, free: 23.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002135/8.466, allocations: 0.907 MB / 3.296 GB, free: 22.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/8.468, allocations: 1.083 MB / 3.297 GB, free: 21.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/8.468, allocations: 7.938 kB / 3.297 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/8.469, allocations: 7.953 kB / 3.297 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/8.469, allocations: 24 kB / 3.297 GB, free: 21.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8365/9.305, allocations: 201.3 MB / 3.493 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008774/9.306, allocations: 411.2 kB / 3.494 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/9.306, allocations: 190.7 kB / 3.494 GB, free: 4.469 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3305/9.637, allocations: 16.32 MB / 3.51 GB, free: 96.34 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/9.637, allocations: 42.38 kB / 3.51 GB, free: 96.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=43): time 3.268e-06/9.637, allocations: 0 / 3.51 GB, free: 96.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=43): time 0.006247/9.643, allocations: 1.254 MB / 3.511 GB, free: 96.26 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/9.643, allocations: 215.6 kB / 3.511 GB, free: 96.01 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/9.644, allocations: 0.6618 MB / 3.512 GB, free: 95.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.9e-05/9.644, allocations: 25.7 kB / 3.512 GB, free: 95.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003453/9.645, allocations: 0.6102 MB / 3.513 GB, free: 95.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/9.645, allocations: 149.1 kB / 3.513 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/9.645, allocations: 1.422 kB / 3.513 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.93e-05/9.645, allocations: 348.2 kB / 3.513 GB, free: 95.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005268/9.646, allocations: 243.9 kB / 3.513 GB, free: 95.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/9.646, allocations: 0.64 MB / 3.514 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00339/9.65, allocations: 0.5622 MB / 3.515 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-05/9.65, allocations: 4.062 kB / 3.515 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004693/9.655, allocations: 1.102 MB / 3.516 GB, free: 94.57 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009839/9.656, allocations: 5.059 MB / 3.521 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/9.656, allocations: 11.06 kB / 3.521 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/9.656, allocations: 20.16 kB / 3.521 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/9.657, allocations: 305.1 kB / 3.521 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/9.657, allocations: 25.47 kB / 3.521 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/9.659, allocations: 255.8 kB / 3.521 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/9.659, allocations: 65.56 kB / 3.521 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/9.659, allocations: 3.062 kB / 3.521 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003921/9.663, allocations: 0.9315 MB / 3.522 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/9.663, allocations: 14.53 kB / 3.522 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/9.663, allocations: 21.78 kB / 3.522 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/9.664, allocations: 292.3 kB / 3.523 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/9.664, allocations: 31.41 kB / 3.523 GB, free: 89.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/9.666, allocations: 176 kB / 3.523 GB, free: 89.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/9.666, allocations: 62.86 kB / 3.523 GB, free: 89.25 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.0003225/9.667, allocations: 149.7 kB / 3.523 GB, free: 89.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/9.667, allocations: 91.09 kB / 3.523 GB, free: 89.09 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/9.67, allocations: 1.442 MB / 3.524 GB, free: 88.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/9.67, allocations: 2.969 kB / 3.524 GB, free: 88.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/9.67, allocations: 5.422 kB / 3.524 GB, free: 88.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/9.67, allocations: 3.516 kB / 3.524 GB, free: 88.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/9.672, allocations: 1.071 MB / 3.525 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/9.672, allocations: 0 / 3.525 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005158/9.672, allocations: 100.2 kB / 3.526 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/9.672, allocations: 3.938 kB / 3.526 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/9.672, allocations: 10.09 kB / 3.526 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.776e-06/9.672, allocations: 0 / 3.526 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.996e-06/9.672, allocations: 3.281 kB / 3.526 GB, free: 88.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/9.674, allocations: 0.6098 MB / 3.526 GB, free: 88.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008395/9.675, allocations: 492.5 kB / 3.527 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002647/9.675, allocations: 3.25 kB / 3.527 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000932/9.676, allocations: 75.48 kB / 3.527 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/9.676, allocations: 26.89 kB / 3.527 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/9.676, allocations: 13.94 kB / 3.527 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001897/9.678, allocations: 1.092 MB / 3.528 GB, free: 88.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.278e-06/9.678, allocations: 0 / 3.528 GB, free: 88.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007018/9.685, allocations: 1.538 MB / 3.529 GB, free: 88.06 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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 Backend phase and start with SimCode phase: time 0.008668/9.694, allocations: 1.899 MB / 3.531 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002135/9.696, allocations: 0.9614 MB / 3.532 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.727e-06/9.696, allocations: 0 / 3.532 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003177/9.696, allocations: 147.4 kB / 3.532 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/9.699, allocations: 374.5 kB / 3.533 GB, free: 87.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/9.702, allocations: 1.366 MB / 3.534 GB, free: 87.39 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000678/9.703, allocations: 1.184 MB / 3.535 GB, free: 86.68 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004302/9.703, allocations: 109 kB / 3.535 GB, free: 86.67 MB / 0.4948 GB Notification: Performance of SimCode: time 2.079e-06/9.703, allocations: 0 / 3.535 GB, free: 86.67 MB / 0.4948 GB Notification: Performance of Templates: time 0.06423/9.767, allocations: 37.63 MB / 3.572 GB, free: 83.29 MB / 0.4948 GB