Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.851/1.851, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004241/0.0004242, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3501, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.451/7.802, allocations: 2.497 GB / 2.821 GB, free: 24.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/7.802, allocations: 93.45 kB / 2.821 GB, free: 24.77 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.61/10.41, allocations: 0.4892 GB / 3.31 GB, free: 43.58 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.055e-06/10.41, allocations: 0 / 3.31 GB, free: 43.58 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001246/10.41, allocations: 30.12 kB / 3.31 GB, free: 43.57 MB / 458.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.009609/10.42, allocations: 2.107 MB / 3.312 GB, free: 42.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/10.42, allocations: 8.625 kB / 3.312 GB, free: 42.37 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008297/10.43, allocations: 0.6808 MB / 3.313 GB, free: 42.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/10.43, allocations: 0.8564 MB / 3.314 GB, free: 41.76 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/10.43, allocations: 77.5 kB / 3.314 GB, free: 41.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/10.43, allocations: 86.56 kB / 3.314 GB, free: 41.69 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006856/10.44, allocations: 1.751 MB / 3.316 GB, free: 40.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/10.44, allocations: 7.656 kB / 3.316 GB, free: 40.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002028/10.44, allocations: 44.41 kB / 3.316 GB, free: 40.94 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/10.44, allocations: 26.86 kB / 3.316 GB, free: 40.94 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0077/10.45, allocations: 1.644 MB / 3.317 GB, free: 40.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/10.46, allocations: 7.361 MB / 3.324 GB, free: 34.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005665/10.47, allocations: 1.219 MB / 3.326 GB, free: 34.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07032/10.54, allocations: 17.59 MB / 3.343 GB, free: 21.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/10.54, allocations: 43.12 kB / 3.343 GB, free: 21.64 MB / 458.7 MB Notification: Performance of pre-optimization done (n=67): time 3.527e-06/10.54, allocations: 0 / 3.343 GB, free: 21.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=67): time 0.01014/10.55, allocations: 2.078 MB / 3.345 GB, free: 19.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/10.55, allocations: 218.2 kB / 3.345 GB, free: 19.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/10.55, allocations: 0.6883 MB / 3.346 GB, free: 18.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/10.55, allocations: 41.7 kB / 3.346 GB, free: 18.55 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/10.55, allocations: 0.5377 MB / 3.346 GB, free: 18.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/10.55, allocations: 232 kB / 3.347 GB, free: 17.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.355e-05/10.55, allocations: 24 kB / 3.347 GB, free: 17.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.834e-05/10.55, allocations: 354.8 kB / 3.347 GB, free: 17.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/10.55, allocations: 378.3 kB / 3.347 GB, free: 17.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/10.55, allocations: 0.7877 MB / 3.348 GB, free: 16.05 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/10.55, allocations: 461.8 kB / 3.349 GB, free: 15.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/10.55, allocations: 4 kB / 3.349 GB, free: 15.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004512/10.56, allocations: 1.197 MB / 3.35 GB, free: 14.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004046/10.56, allocations: 471.2 kB / 3.35 GB, free: 13.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/10.56, allocations: 12 kB / 3.35 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.623e-05/10.56, allocations: 24.06 kB / 3.35 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/10.56, allocations: 303.5 kB / 3.35 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.085e-05/10.56, allocations: 31.92 kB / 3.35 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/10.56, allocations: 178.8 kB / 3.351 GB, free: 13.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/10.56, allocations: 59.98 kB / 3.351 GB, free: 13.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/10.56, allocations: 4 kB / 3.351 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004315/10.57, allocations: 1.118 MB / 3.352 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/10.57, allocations: 12 kB / 3.352 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.221e-05/10.57, allocations: 20 kB / 3.352 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/10.57, allocations: 300.3 kB / 3.352 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.77e-05/10.57, allocations: 31.83 kB / 3.352 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/10.57, allocations: 159.1 kB / 3.352 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/10.57, allocations: 59.98 kB / 3.352 GB, free: 11.46 MB / 458.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.000825/10.57, allocations: 348.7 kB / 3.353 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003095/10.57, allocations: 90.88 kB / 3.353 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009849/10.58, allocations: 4.655 MB / 3.357 GB, free: 6.324 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.053e-05/10.58, allocations: 63.89 kB / 3.357 GB, free: 6.262 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/10.58, allocations: 3.953 kB / 3.357 GB, free: 6.258 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.207e-05/10.58, allocations: 3.984 kB / 3.357 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004024/10.59, allocations: 2.161 MB / 3.36 GB, free: 4.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/10.59, allocations: 0 / 3.36 GB, free: 4.066 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/10.59, allocations: 227.7 kB / 3.36 GB, free: 3.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/10.59, allocations: 0 / 3.36 GB, free: 3.844 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-05/10.59, allocations: 20 kB / 3.36 GB, free: 3.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.527e-06/10.59, allocations: 4 kB / 3.36 GB, free: 3.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/10.59, allocations: 3.984 kB / 3.36 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/10.59, allocations: 2.283 MB / 3.362 GB, free: 1.492 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/10.59, allocations: 457.2 kB / 3.362 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/10.59, allocations: 23.94 kB / 3.362 GB, free: 1.004 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/10.6, allocations: 103.8 kB / 3.363 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/10.6, allocations: 68.89 kB / 3.363 GB, free: 0.8359 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/10.6, allocations: 27.98 kB / 3.363 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001212/10.6, allocations: 0.5706 MB / 3.363 GB, free: 236 kB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/10.6, allocations: 0 / 3.363 GB, free: 236 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.353/10.95, allocations: 1.533 MB / 3.365 GB, free: 48.07 MB / 458.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.01097/10.96, allocations: 1.756 MB / 3.366 GB, free: 47.94 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006693/10.97, allocations: 2.054 MB / 3.368 GB, free: 47.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/10.97, allocations: 0 / 3.368 GB, free: 47.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/10.97, allocations: 1.139 MB / 3.37 GB, free: 47.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004208/10.98, allocations: 460.7 kB / 3.37 GB, free: 47.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3551/11.33, allocations: 124 MB / 3.491 GB, free: 26.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000927/11.33, allocations: 1.428 MB / 3.492 GB, free: 24.92 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005259/11.33, allocations: 108.8 kB / 3.493 GB, free: 24.83 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/11.33, allocations: 0 / 3.493 GB, free: 24.83 MB / 458.7 MB Notification: Performance of Templates: time 0.08265/11.41, allocations: 39.44 MB / 3.531 GB, free: 10.3 MB / 474.7 MB