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.TestValveLinear.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.TestValveLinear,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.000439, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.296, allocations: 54.87 MB / 369.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03857/0.3346, allocations: 23.67 MB / 392.9 MB, free: 2.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0205/0.3552, allocations: 11.36 MB / 404.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005239/0.3557, allocations: 11.94 kB / 404.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007748/0.3565, allocations: 211 kB / 404.4 MB, free: 7.234 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3666, allocations: 2.817 MB / 407.3 MB, free: 4.41 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007156/0.3738, allocations: 1.901 MB / 409.2 MB, free: 2.508 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.3751, allocations: 0.5821 MB / 409.7 MB, free: 1.926 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.3755, allocations: 201 kB / 409.9 MB, free: 1.727 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.3766, allocations: 406.6 kB / 410.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.377, allocations: 199.2 kB / 410.5 MB, free: 1.133 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.3771, allocations: 16 kB / 410.5 MB, free: 1.117 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01692/0.394, allocations: 7.012 MB / 417.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.3942, allocations: 79.72 kB / 417.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.3944, allocations: 109.5 kB / 417.7 MB, free: 9.906 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006827/0.4013, allocations: 2.931 MB / 420.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4013, allocations: 0 / 420.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.642e-06/0.4013, allocations: 0 / 420.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.922e-06/0.4013, allocations: 4 kB / 420.7 MB, free: 6.965 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003594/0.405, allocations: 1.177 MB / 421.8 MB, free: 5.738 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.405, allocations: 12.03 kB / 421.9 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003345/0.4084, allocations: 223.3 kB / 422.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.4096, allocations: 370 kB / 422.4 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.828e-05/0.4097, allocations: 24.66 kB / 422.5 MB, free: 5.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.4098, allocations: 28 kB / 422.5 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003524/0.4134, allocations: 0.6096 MB / 423.1 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.4135, allocations: 3.938 kB / 423.1 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.659e-05/0.4136, allocations: 16 kB / 423.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.4136, allocations: 8 kB / 423.1 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003936/0.4176, allocations: 0.5914 MB / 423.7 MB, free: 3.785 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.4237, allocations: 2.562 MB / 426.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0035/0.4272, allocations: 494.1 kB / 426.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4308/0.858, allocations: 52.01 MB / 478.8 MB, free: 92.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.8581, allocations: 37.03 kB / 478.8 MB, free: 92.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 4.449e-06/0.8581, allocations: 0.7031 kB / 478.8 MB, free: 92.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.003816/0.862, allocations: 0.8687 MB / 479.7 MB, free: 92.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.8621, allocations: 110.6 kB / 479.8 MB, free: 92.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.8624, allocations: 281.5 kB / 480.1 MB, free: 92.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.8624, allocations: 33.67 kB / 480.1 MB, free: 92.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.8626, allocations: 274.1 kB / 480.4 MB, free: 91.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.8627, allocations: 88.5 kB / 480.5 MB, free: 91.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.8627, allocations: 8 kB / 480.5 MB, free: 91.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.155e-05/0.8628, allocations: 322.4 kB / 480.8 MB, free: 91.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005655/0.8634, allocations: 162.9 kB / 480.9 MB, free: 91.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006473/0.864, allocations: 296.2 kB / 481.2 MB, free: 91.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006348/0.8647, allocations: 199.3 kB / 481.4 MB, free: 91.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.065e-06/0.8647, allocations: 0 / 481.4 MB, free: 91.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001509/0.8662, allocations: 474 kB / 481.9 MB, free: 91.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.8663, allocations: 6.5 kB / 481.9 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.8663, allocations: 8.359 kB / 481.9 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/0.8663, allocations: 9.625 kB / 481.9 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.8668, allocations: 105 kB / 482 MB, free: 91.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.8669, allocations: 9.266 kB / 482 MB, free: 91.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.8673, allocations: 69.84 kB / 482.1 MB, free: 91.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.8674, allocations: 21.47 kB / 482.1 MB, free: 91.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.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 (40): * Single equations (assignments): 40 * 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.0002329/0.8676, allocations: 159 kB / 482.3 MB, free: 90.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.532e-05/0.8677, allocations: 37.88 kB / 482.3 MB, free: 90.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002917/0.8707, allocations: 1.958 MB / 484.3 MB, free: 89.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/0.8707, allocations: 27.8 kB / 484.3 MB, free: 89.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.434e-06/0.8707, allocations: 0 / 484.3 MB, free: 89.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.044e-06/0.8708, allocations: 11.89 kB / 484.3 MB, free: 89.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.8719, allocations: 0.9827 MB / 485.3 MB, free: 89.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.8719, allocations: 0 / 485.3 MB, free: 89.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.8724, allocations: 93.27 kB / 485.4 MB, free: 89.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.95e-06/0.8724, allocations: 4 kB / 485.4 MB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.8724, allocations: 7.938 kB / 485.4 MB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.026e-06/0.8725, allocations: 3.953 kB / 485.4 MB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.224e-06/0.8725, allocations: 3.875 kB / 485.4 MB, free: 89.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.8744, allocations: 1.124 MB / 486.5 MB, free: 88.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.8746, allocations: 212.9 kB / 486.7 MB, free: 88.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.966e-05/0.8747, allocations: 5.531 kB / 486.7 MB, free: 88.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.8751, allocations: 47.98 kB / 486.8 MB, free: 88.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.8753, allocations: 39.62 kB / 486.8 MB, free: 88.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.8753, allocations: 6.781 kB / 486.8 MB, free: 88.17 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000339/0.8757, allocations: 261.4 kB / 487.1 MB, free: 88 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.07e-07/0.8757, allocations: 1.531 kB / 487.1 MB, free: 88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002619/0.8783, allocations: 0.9912 MB / 488.1 MB, free: 87.55 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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.005112/0.8835, allocations: 1.18 MB / 489.2 MB, free: 86.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.8849, allocations: 0.6422 MB / 489.9 MB, free: 85.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.356e-06/0.885, allocations: 0 / 489.9 MB, free: 85.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008083/0.8858, allocations: 0.5329 MB / 490.4 MB, free: 85.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.8869, allocations: 173.6 kB / 490.6 MB, free: 85.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.8895, allocations: 2.016 MB / 492.6 MB, free: 83.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.8899, allocations: 0.9788 MB / 493.6 MB, free: 82.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.8901, allocations: 39.44 kB / 493.6 MB, free: 82.16 MB / 394.7 MB Notification: Performance of SimCode: time 1.402e-06/0.8901, allocations: 4 kB / 493.6 MB, free: 82.16 MB / 394.7 MB Notification: Performance of Templates: time 0.04199/0.9321, allocations: 26.98 MB / 0.5084 GB, free: 55.18 MB / 394.7 MB