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.82/1.82, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004457, allocations: 20 kB / 282.6 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08975, allocations: 48.7 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.051/6.141, allocations: 2.497 GB / 2.82 GB, free: 107.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/6.141, allocations: 84.39 kB / 2.82 GB, free: 107.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.132/8.273, allocations: 0.4892 GB / 3.31 GB, free: 36.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.4e-06/8.273, allocations: 1.438 kB / 3.31 GB, free: 36.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.569e-05/8.273, allocations: 31.16 kB / 3.31 GB, free: 36.43 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.007035/8.28, allocations: 2.113 MB / 3.312 GB, free: 35.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/8.28, allocations: 6.625 kB / 3.312 GB, free: 35.42 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007333/8.288, allocations: 0.6838 MB / 3.312 GB, free: 35.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/8.29, allocations: 0.8477 MB / 3.313 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/8.29, allocations: 80.88 kB / 3.313 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/8.29, allocations: 87.75 kB / 3.313 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005735/8.296, allocations: 1.741 MB / 3.315 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/8.296, allocations: 5.344 kB / 3.315 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/8.296, allocations: 42.78 kB / 3.315 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.449e-05/8.296, allocations: 25.77 kB / 3.315 GB, free: 34.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006013/8.302, allocations: 1.652 MB / 3.317 GB, free: 34.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008825/8.311, allocations: 7.355 MB / 3.324 GB, free: 29.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004709/8.316, allocations: 1.219 MB / 3.325 GB, free: 29.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0472/8.363, allocations: 17.59 MB / 3.342 GB, free: 20.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/8.363, allocations: 42.19 kB / 3.342 GB, free: 20.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 3.951e-06/8.363, allocations: 0 / 3.342 GB, free: 20.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.008186/8.371, allocations: 2.082 MB / 3.344 GB, free: 20.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/8.371, allocations: 219.5 kB / 3.345 GB, free: 20.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009299/8.372, allocations: 0.6046 MB / 3.345 GB, free: 20.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.855e-05/8.373, allocations: 37.2 kB / 3.345 GB, free: 20.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/8.373, allocations: 0.5448 MB / 3.346 GB, free: 20.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/8.373, allocations: 228.3 kB / 3.346 GB, free: 19.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/8.373, allocations: 21.56 kB / 3.346 GB, free: 19.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/8.373, allocations: 350.1 kB / 3.346 GB, free: 19.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/8.374, allocations: 371.4 kB / 3.347 GB, free: 19.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/8.376, allocations: 0.788 MB / 3.347 GB, free: 19.08 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/8.377, allocations: 465.1 kB / 3.348 GB, free: 19.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/8.377, allocations: 3.906 kB / 3.348 GB, free: 19.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003413/8.381, allocations: 1.191 MB / 3.349 GB, free: 19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009979/8.382, allocations: 5.062 MB / 3.354 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/8.382, allocations: 10.62 kB / 3.354 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.528e-05/8.382, allocations: 23.19 kB / 3.354 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/8.383, allocations: 298.4 kB / 3.354 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.159e-05/8.383, allocations: 31 kB / 3.354 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/8.385, allocations: 185.6 kB / 3.355 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/8.385, allocations: 58.19 kB / 3.355 GB, free: 13.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/8.385, allocations: 6.781 kB / 3.355 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003167/8.388, allocations: 1.109 MB / 3.356 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/8.388, allocations: 18.47 kB / 3.356 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/8.388, allocations: 21.84 kB / 3.356 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/8.389, allocations: 293.8 kB / 3.356 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.624e-05/8.389, allocations: 32.94 kB / 3.356 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/8.39, allocations: 158 kB / 3.356 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/8.39, allocations: 60.58 kB / 3.356 GB, free: 13.45 MB / 442.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.0006976/8.391, allocations: 356.2 kB / 3.357 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/8.391, allocations: 93.34 kB / 3.357 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006724/8.398, allocations: 4.647 MB / 3.361 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.669e-05/8.398, allocations: 65.89 kB / 3.361 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.946e-06/8.398, allocations: 0 / 3.361 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/8.398, allocations: 7.469 kB / 3.361 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/8.401, allocations: 2.164 MB / 3.363 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.516e-06/8.401, allocations: 3.844 kB / 3.363 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/8.402, allocations: 221.2 kB / 3.364 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/8.402, allocations: 3.875 kB / 3.364 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/8.402, allocations: 24.78 kB / 3.364 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.061e-06/8.402, allocations: 3.656 kB / 3.364 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.577e-06/8.402, allocations: 4 kB / 3.364 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/8.406, allocations: 2.276 MB / 3.366 GB, free: 11.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006773/8.407, allocations: 445.2 kB / 3.366 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/8.407, allocations: 15.88 kB / 3.366 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008616/8.408, allocations: 110.2 kB / 3.366 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/8.408, allocations: 77.55 kB / 3.366 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.858e-05/8.408, allocations: 30.77 kB / 3.367 GB, free: 11.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009373/8.409, allocations: 0.562 MB / 3.367 GB, free: 10.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.86e-07/8.409, allocations: 4.844 kB / 3.367 GB, free: 10.78 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005892/8.415, allocations: 1.544 MB / 3.369 GB, free: 10.46 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: 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 () * 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.00794/8.423, allocations: 1.762 MB / 3.37 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004865/8.428, allocations: 2.048 MB / 3.372 GB, free: 9.336 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/8.428, allocations: 0 / 3.372 GB, free: 9.336 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/8.43, allocations: 1.149 MB / 3.373 GB, free: 8.824 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/8.432, allocations: 448.5 kB / 3.374 GB, free: 8.707 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5441/8.977, allocations: 124.2 MB / 3.495 GB, free: 42.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008849/8.978, allocations: 1.424 MB / 3.497 GB, free: 42.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/8.978, allocations: 108 kB / 3.497 GB, free: 42.07 MB / 458.7 MB Notification: Performance of SimCode: time 1.578e-06/8.978, allocations: 0 / 3.497 GB, free: 42.07 MB / 458.7 MB Notification: Performance of Templates: time 0.06226/9.04, allocations: 39.45 MB / 3.535 GB, free: 38.01 MB / 458.7 MB