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.197/2.197, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004385/0.0004386, allocations: 16 kB / 314.3 MB, free: 9.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3898, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.1106/0.5005, allocations: 53.49 MB / 422.7 MB, free: 5.082 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04041/0.541, allocations: 21.29 MB / 444 MB, free: 15.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001859/0.5429, allocations: 47.56 kB / 444 MB, free: 15.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002878/0.5458, allocations: 0.739 MB / 444.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.56, allocations: 3.728 MB / 448.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01935/0.5794, allocations: 5.121 MB / 453.6 MB, free: 6.098 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003902/0.5833, allocations: 1.815 MB / 455.4 MB, free: 4.281 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001358/0.5847, allocations: 0.5898 MB / 456 MB, free: 3.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002515/0.5873, allocations: 0.95 MB / 457 MB, free: 2.723 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.5885, allocations: 0.5797 MB / 457.5 MB, free: 2.141 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.5887, allocations: 44 kB / 457.6 MB, free: 2.098 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02034/0.609, allocations: 7.901 MB / 465.5 MB, free: 10.19 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005027/0.6096, allocations: 223.1 kB / 465.7 MB, free: 9.969 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005597/0.6102, allocations: 265.1 kB / 466 MB, free: 9.703 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00987/0.62, allocations: 4.104 MB / 470.1 MB, free: 5.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.119e-06/0.6201, allocations: 0 / 470.1 MB, free: 5.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.813e-06/0.6201, allocations: 8 kB / 470.1 MB, free: 5.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.6201, allocations: 0 / 470.1 MB, free: 5.582 MB / 394.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.006466/0.6266, allocations: 2.042 MB / 472.1 MB, free: 3.488 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.6267, allocations: 12.03 kB / 472.1 MB, free: 3.477 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006981/0.6337, allocations: 0.6659 MB / 472.8 MB, free: 2.809 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.6356, allocations: 0.7679 MB / 473.6 MB, free: 1.996 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.6357, allocations: 78 kB / 473.6 MB, free: 1.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.6359, allocations: 84 kB / 473.7 MB, free: 1.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2587/0.8946, allocations: 1.735 MB / 475.5 MB, free: 94.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.032e-05/0.8948, allocations: 3.875 kB / 475.5 MB, free: 94.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.895, allocations: 38.44 kB / 475.5 MB, free: 94.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.8951, allocations: 24.44 kB / 475.5 MB, free: 94.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00715/0.9023, allocations: 1.665 MB / 477.2 MB, free: 94.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009965/0.9123, allocations: 7.399 MB / 484.6 MB, free: 88.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004933/0.9172, allocations: 1.218 MB / 485.8 MB, free: 88.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04684/0.9641, allocations: 17.78 MB / 0.4918 GB, free: 74.49 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.9642, allocations: 47.06 kB / 0.4918 GB, free: 74.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 4.23e-06/0.9642, allocations: 0 / 0.4918 GB, free: 74.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.008764/0.973, allocations: 2.082 MB / 0.4939 GB, free: 72.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.9731, allocations: 218.2 kB / 0.4941 GB, free: 72.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009147/0.974, allocations: 0.6922 MB / 0.4948 GB, free: 71.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.9742, allocations: 37.7 kB / 0.4948 GB, free: 71.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.9745, allocations: 0.5431 MB / 0.4953 GB, free: 70.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.9747, allocations: 230.9 kB / 0.4955 GB, free: 70.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/0.9748, allocations: 24 kB / 0.4956 GB, free: 70.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.228e-05/0.9748, allocations: 346.8 kB / 0.4959 GB, free: 70.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.9759, allocations: 378.4 kB / 0.4963 GB, free: 69.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.9771, allocations: 0.7915 MB / 0.497 GB, free: 68.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.9782, allocations: 466.5 kB / 0.4975 GB, free: 68.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/0.9783, allocations: 7.953 kB / 0.4975 GB, free: 68.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002899/0.9812, allocations: 1.19 MB / 0.4986 GB, free: 67.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.9814, allocations: 476.5 kB / 0.4991 GB, free: 66.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.9815, allocations: 16 kB / 0.4991 GB, free: 66.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.418e-05/0.9815, allocations: 24 kB / 0.4991 GB, free: 66.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.9827, allocations: 296.5 kB / 0.4994 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.931e-05/0.9827, allocations: 31.88 kB / 0.4994 GB, free: 66.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.9839, allocations: 178.7 kB / 0.4996 GB, free: 66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.9841, allocations: 63.98 kB / 0.4997 GB, free: 65.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.9841, allocations: 2.031 kB / 0.4997 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00271/0.9868, allocations: 1.118 MB / 0.5008 GB, free: 64.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.9869, allocations: 19.89 kB / 0.5008 GB, free: 64.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.9869, allocations: 20 kB / 0.5008 GB, free: 64.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.988, allocations: 300.9 kB / 0.5011 GB, free: 64.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.511e-05/0.9881, allocations: 23.94 kB / 0.5011 GB, free: 64.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009843/0.9891, allocations: 155.2 kB / 0.5013 GB, free: 64.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.9892, allocations: 67.3 kB / 0.5013 GB, free: 64.25 MB / 394.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.000645/0.9899, allocations: 352.7 kB / 0.5017 GB, free: 63.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.9901, allocations: 94.88 kB / 0.5018 GB, free: 63.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006367/0.9965, allocations: 4.644 MB / 0.5063 GB, free: 59.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-05/0.9966, allocations: 67.89 kB / 0.5064 GB, free: 59.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.518e-06/0.9966, allocations: 0 / 0.5064 GB, free: 59.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.9966, allocations: 3.984 kB / 0.5064 GB, free: 59.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002578/0.9992, allocations: 2.158 MB / 0.5085 GB, free: 56.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.9993, allocations: 0 / 0.5085 GB, free: 56.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/1, allocations: 223.7 kB / 0.5087 GB, free: 56.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/1, allocations: 4 kB / 0.5087 GB, free: 56.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-05/1, allocations: 23.98 kB / 0.5087 GB, free: 56.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.518e-06/1, allocations: 7.953 kB / 0.5087 GB, free: 56.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.263e-06/1, allocations: 3.984 kB / 0.5087 GB, free: 56.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003481/1.004, allocations: 2.275 MB / 0.5109 GB, free: 54.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006377/1.005, allocations: 453.4 kB / 0.5114 GB, free: 53.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/1.005, allocations: 19.84 kB / 0.5114 GB, free: 53.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007805/1.006, allocations: 99.77 kB / 0.5115 GB, free: 53.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/1.006, allocations: 76.78 kB / 0.5116 GB, free: 53.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-05/1.006, allocations: 28 kB / 0.5116 GB, free: 53.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008289/1.007, allocations: 0.5667 MB / 0.5121 GB, free: 53.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.888e-06/1.007, allocations: 0 / 0.5121 GB, free: 53.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004437/1.011, allocations: 1.492 MB / 0.5136 GB, free: 51.63 MB / 394.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.00568/1.017, allocations: 1.316 MB / 0.5149 GB, free: 50.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004502/1.021, allocations: 2.058 MB / 0.5169 GB, free: 48.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.559e-06/1.021, allocations: 0 / 0.5169 GB, free: 48.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/1.023, allocations: 1.14 MB / 0.518 GB, free: 47.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/1.026, allocations: 455.9 kB / 0.5184 GB, free: 46.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006358/1.032, allocations: 4.566 MB / 0.5229 GB, free: 42.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008498/1.033, allocations: 1.426 MB / 0.5243 GB, free: 40.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/1.033, allocations: 103.4 kB / 0.5244 GB, free: 40.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.068e-06/1.033, allocations: 0 / 0.5244 GB, free: 40.8 MB / 394.7 MB Notification: Performance of Templates: time 0.06054/1.094, allocations: 38.72 MB / 0.5622 GB, free: 2.047 MB / 394.7 MB