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.Vessels.TestVolume.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.Vessels.TestVolume,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Volume.ports.1..m_flow|Volume.ports.1..p|Volume.ports.1..h_outflow|Volume.ports.2..m_flow|Volume.ports.2..p|Volume.ports.2..h_outflow|Volume.portsData.1..diameter|Volume.portsData.1..height|Volume.portsData.1..zeta_out|Volume.portsData.1..zeta_in|Volume.portsData.2..diameter|Volume.portsData.2..height|Volume.portsData.2..zeta_out|Volume.portsData.2..zeta_in|Volume.ports_H_flow.1.|Volume.ports_H_flow.2.|Volume.ports_E_flow.1.|Volume.ports_E_flow.2.|Volume.ports_penetration.1.|Volume.ports_penetration.2.|Volume.portsData_diameter_internal.1.|Volume.portsData_diameter_internal.2.|Volume.portsData_height_internal.1.|Volume.portsData_height_internal.2.|Volume.portsData_zeta_in_internal.1.|Volume.portsData_zeta_in_internal.2.|Volume.portsData_zeta_out_internal.1.|Volume.portsData_zeta_out_internal.2.|Volume.portsData_diameter.1.|Volume.portsData_diameter.2.|Volume.portsData_height.1.|Volume.portsData_height.2.|Volume.portsData_zeta_in.1.|Volume.portsData_zeta_in.2.|Volume.portsData_zeta_out.1.|Volume.portsData_zeta_out.2.|FlowSource.ports.1..m_flow|FlowSource.ports.1..p|FlowSource.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Step1.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume") Notification: Performance of loadModel(ModelicaTest): time 1.808/1.808, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.835e-05, allocations: 4 kB / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1372, allocations: 48.71 MB / 326.6 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.149/6.286, allocations: 2.485 GB / 2.804 GB, free: 122.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/6.287, allocations: 81.61 kB / 2.804 GB, free: 122.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.547/7.834, allocations: 347.2 MB / 3.143 GB, free: 57.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.287e-06/7.834, allocations: 0 / 3.143 GB, free: 57.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.729e-05/7.834, allocations: 19.36 kB / 3.143 GB, free: 57.97 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.006066/7.84, allocations: 1.616 MB / 3.145 GB, free: 57.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/7.84, allocations: 10.84 kB / 3.145 GB, free: 57.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004709/7.845, allocations: 403.5 kB / 3.145 GB, free: 57.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/7.847, allocations: 0.5781 MB / 3.146 GB, free: 57.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/7.847, allocations: 112 kB / 3.146 GB, free: 56.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/7.847, allocations: 61.72 kB / 3.146 GB, free: 56.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003565/7.851, allocations: 1.144 MB / 3.147 GB, free: 56.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/7.851, allocations: 3.375 kB / 3.147 GB, free: 56.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/7.851, allocations: 27.72 kB / 3.147 GB, free: 56.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.414e-05/7.851, allocations: 29.66 kB / 3.147 GB, free: 56.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/7.854, allocations: 1.019 MB / 3.148 GB, free: 56.79 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008543/7.863, allocations: 4.926 MB / 3.153 GB, free: 53.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/7.866, allocations: 0.7977 MB / 3.154 GB, free: 53.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005664/7.866, allocations: 286.7 kB / 3.154 GB, free: 53.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07408/7.94, allocations: 32.89 MB / 3.186 GB, free: 34.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/7.94, allocations: 38.81 kB / 3.186 GB, free: 34.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=46): time 4.318e-06/7.94, allocations: 3.688 kB / 3.186 GB, free: 34.27 MB / 442.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: Volume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=59): time 0.02482/7.965, allocations: 4.087 MB / 3.19 GB, free: 33.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/7.965, allocations: 111.3 kB / 3.19 GB, free: 33.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007451/7.966, allocations: 496.1 kB / 3.191 GB, free: 33.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/7.966, allocations: 36.83 kB / 3.191 GB, free: 33.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/7.967, allocations: 391.7 kB / 3.191 GB, free: 33.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/7.967, allocations: 189.2 kB / 3.191 GB, free: 33.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/7.967, allocations: 19.28 kB / 3.191 GB, free: 33.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.928e-05/7.967, allocations: 345.4 kB / 3.192 GB, free: 32.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008233/7.968, allocations: 412.1 kB / 3.192 GB, free: 32.92 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/7.969, allocations: 0.6304 MB / 3.193 GB, free: 32.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009821/7.97, allocations: 458.7 kB / 3.193 GB, free: 32.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.35e-06/7.97, allocations: 1.688 kB / 3.193 GB, free: 32.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003301/7.973, allocations: 1.408 MB / 3.195 GB, free: 32.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005542/7.974, allocations: 2.707 MB / 3.197 GB, free: 29.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/7.974, allocations: 7.469 kB / 3.197 GB, free: 29.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002735/7.976, allocations: 1.1 MB / 3.198 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008071/7.977, allocations: 150.2 kB / 3.198 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003802/7.981, allocations: 2.663 MB / 3.201 GB, free: 28.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/7.983, allocations: 98.72 kB / 3.201 GB, free: 28.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/7.983, allocations: 43.61 kB / 3.201 GB, free: 28.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/7.983, allocations: 8.875 kB / 3.201 GB, free: 28.08 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003112/7.986, allocations: 1.264 MB / 3.202 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/7.986, allocations: 8.406 kB / 3.202 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/7.988, allocations: 0.9712 MB / 3.203 GB, free: 27.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009513/7.989, allocations: 169 kB / 3.203 GB, free: 27.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005486/7.995, allocations: 4.939 MB / 3.208 GB, free: 24.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/7.996, allocations: 89 kB / 3.208 GB, free: 24.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/7.996, allocations: 46.89 kB / 3.208 GB, free: 24.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 7,2 1,3 9} Notification: Performance of prepare postOptimizeDAE: time 0.000337/7.997, allocations: 157.3 kB / 3.209 GB, free: 24.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/7.997, allocations: 68.52 kB / 3.209 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007595/8.005, allocations: 4.689 MB / 3.213 GB, free: 23.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-05/8.005, allocations: 52.67 kB / 3.213 GB, free: 23.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/8.005, allocations: 0 / 3.213 GB, free: 23.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/8.005, allocations: 7.75 kB / 3.213 GB, free: 23.66 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/8.015, allocations: 6.408 MB / 3.22 GB, free: 23.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/8.015, allocations: 3.656 kB / 3.22 GB, free: 23.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004817/8.016, allocations: 86.17 kB / 3.22 GB, free: 23.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004616/8.02, allocations: 2.498 MB / 3.222 GB, free: 22.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/8.02, allocations: 23.73 kB / 3.222 GB, free: 22.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004986/8.025, allocations: 4.024 MB / 3.226 GB, free: 21.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.337e-06/8.025, allocations: 3.812 kB / 3.226 GB, free: 21.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/8.031, allocations: 3.294 MB / 3.229 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008273/8.031, allocations: 377 kB / 3.23 GB, free: 19.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/8.032, allocations: 15.88 kB / 3.23 GB, free: 19.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/8.033, allocations: 85.53 kB / 3.23 GB, free: 19.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/8.033, allocations: 70.64 kB / 3.23 GB, free: 19.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/8.033, allocations: 31.61 kB / 3.23 GB, free: 19.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007277/8.034, allocations: 474.8 kB / 3.23 GB, free: 19.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.62e-07/8.034, allocations: 0 / 3.23 GB, free: 19.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005975/8.04, allocations: 1.43 MB / 3.232 GB, free: 19.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 29 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 1,3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.008629/8.049, allocations: 1.664 MB / 3.233 GB, free: 18.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007095/8.056, allocations: 2.479 MB / 3.236 GB, free: 18.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.217e-06/8.056, allocations: 3.938 kB / 3.236 GB, free: 18.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/8.059, allocations: 1.244 MB / 3.237 GB, free: 17.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/8.061, allocations: 293.3 kB / 3.237 GB, free: 17.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.473/8.535, allocations: 76.78 MB / 3.312 GB, free: 66.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008648/8.535, allocations: 1.219 MB / 3.313 GB, free: 65.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002618/8.536, allocations: 62.28 kB / 3.313 GB, free: 65.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.799e-06/8.536, allocations: 1.938 kB / 3.313 GB, free: 65.89 MB / 458.7 MB Notification: Performance of Templates: time 0.07281/8.609, allocations: 48.66 MB / 3.361 GB, free: 64.01 MB / 458.7 MB