Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|p_start|T_start|h_start|X_start.1.|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.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.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.|fixedMassFlowRate.ports.1..m_flow|fixedMassFlowRate.ports.1..p|fixedMassFlowRate.ports.1..h_outflow|shortPipe.port_b.m_flow|shortPipe.port_b.p|shortPipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater") Notification: Performance of loadModel(ModelicaTest): time 2.131/2.131, allocations: 209.3 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004459/0.0004459, allocations: 23.98 kB / 283.1 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3693, allocations: 48.69 MB / 331.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.026/1.395, allocations: 341.5 MB / 0.6575 GB, free: 121.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/1.396, allocations: 101.2 kB / 0.6576 GB, free: 121.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4123/1.808, allocations: 129.9 MB / 0.7844 GB, free: 22.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.808, allocations: 0 / 0.7844 GB, free: 22.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.35e-05/1.808, allocations: 19.98 kB / 0.7845 GB, free: 22.24 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002731/1.811, allocations: 0.9666 MB / 0.7854 GB, free: 21.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/1.811, allocations: 12.03 kB / 0.7854 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005444/1.811, allocations: 87.14 kB / 0.7855 GB, free: 21.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/1.813, allocations: 0.552 MB / 0.786 GB, free: 20.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/1.813, allocations: 100.4 kB / 0.7861 GB, free: 20.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/1.813, allocations: 51.98 kB / 0.7862 GB, free: 20.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/1.815, allocations: 0.8114 MB / 0.787 GB, free: 19.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/1.815, allocations: 7.875 kB / 0.787 GB, free: 19.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/1.815, allocations: 24 kB / 0.787 GB, free: 19.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.793e-05/1.815, allocations: 36.98 kB / 0.787 GB, free: 19.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/1.817, allocations: 0.6282 MB / 0.7876 GB, free: 18.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006067/1.823, allocations: 4.01 MB / 0.7916 GB, free: 14.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008874/1.824, allocations: 339.3 kB / 0.7919 GB, free: 14.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002712/1.827, allocations: 1.78 MB / 0.7936 GB, free: 12.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/1.827, allocations: 38.56 kB / 0.7937 GB, free: 12.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 2.575e-06/1.827, allocations: 0 / 0.7937 GB, free: 12.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.004229/1.831, allocations: 1.197 MB / 0.7948 GB, free: 10.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/1.831, allocations: 140.5 kB / 0.795 GB, free: 10.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009896/1.832, allocations: 0.6248 MB / 0.7956 GB, free: 10.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.673e-05/1.832, allocations: 33.7 kB / 0.7956 GB, free: 10.03 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004074/1.833, allocations: 448.4 kB / 0.796 GB, free: 9.586 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/1.833, allocations: 126.2 kB / 0.7962 GB, free: 9.461 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/1.833, allocations: 16 kB / 0.7962 GB, free: 9.445 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/1.833, allocations: 342.8 kB / 0.7965 GB, free: 9.102 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006925/1.834, allocations: 173.9 kB / 0.7967 GB, free: 8.934 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/1.835, allocations: 0.5771 MB / 0.7972 GB, free: 8.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/1.836, allocations: 296.1 kB / 0.7975 GB, free: 7.871 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.358e-05/1.836, allocations: 4 kB / 0.7975 GB, free: 7.867 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001666/1.838, allocations: 0.7437 MB / 0.7982 GB, free: 7.117 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/1.838, allocations: 8 kB / 0.7982 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/1.838, allocations: 20.12 kB / 0.7983 GB, free: 7.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.872e-05/1.838, allocations: 20 kB / 0.7983 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/1.839, allocations: 211.6 kB / 0.7985 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.894e-05/1.839, allocations: 31.86 kB / 0.7985 GB, free: 6.832 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009819/1.84, allocations: 47.89 kB / 0.7986 GB, free: 6.785 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.62e-05/1.84, allocations: 43.98 kB / 0.7986 GB, free: 6.742 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * 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.0004851/1.841, allocations: 257.3 kB / 0.7988 GB, free: 6.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/1.841, allocations: 71.19 kB / 0.7989 GB, free: 6.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/1.842, allocations: 426.1 kB / 0.7993 GB, free: 5.969 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/1.842, allocations: 8 kB / 0.7993 GB, free: 5.961 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/1.842, allocations: 0 / 0.7993 GB, free: 5.961 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/1.842, allocations: 4 kB / 0.7993 GB, free: 5.957 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/1.845, allocations: 1.209 MB / 0.8005 GB, free: 4.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/1.845, allocations: 4 kB / 0.8005 GB, free: 4.625 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004818/1.845, allocations: 68.25 kB / 0.8006 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002666/1.845, allocations: 44.83 kB / 0.8006 GB, free: 4.512 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/1.845, allocations: 12 kB / 0.8006 GB, free: 4.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003802/1.846, allocations: 0.5602 MB / 0.8012 GB, free: 3.914 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.846, allocations: 7.938 kB / 0.8012 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/1.847, allocations: 0.678 MB / 0.8019 GB, free: 3.164 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003523/1.847, allocations: 184.2 kB / 0.802 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/1.848, allocations: 19.94 kB / 0.802 GB, free: 2.945 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006411/1.848, allocations: 20.06 kB / 0.8021 GB, free: 2.926 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.884e-05/1.848, allocations: 35.89 kB / 0.8021 GB, free: 2.891 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.148e-05/1.848, allocations: 16 kB / 0.8021 GB, free: 2.875 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007376/1.849, allocations: 431 kB / 0.8025 GB, free: 2.457 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.403e-06/1.849, allocations: 0 / 0.8025 GB, free: 2.457 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001194/1.85, allocations: 219.9 kB / 0.8027 GB, free: 2.242 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000794/1.851, allocations: 330.4 kB / 0.8031 GB, free: 1.918 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/1.852, allocations: 466.3 kB / 0.8035 GB, free: 1.465 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.852, allocations: 384 / 0.8035 GB, free: 1.465 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005061/1.853, allocations: 170 kB / 0.8037 GB, free: 1.301 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/1.855, allocations: 275 kB / 0.8039 GB, free: 1.039 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3481/2.203, allocations: 1.541 MB / 0.8054 GB, free: 102.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000972/2.204, allocations: 0.9474 MB / 0.8064 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004398/2.205, allocations: 60.03 kB / 0.8064 GB, free: 101.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.703e-06/2.205, allocations: 1.031 kB / 0.8064 GB, free: 101.5 MB / 442.7 MB Notification: Performance of Templates: time 0.04613/2.251, allocations: 12.37 MB / 0.8185 GB, free: 101.3 MB / 442.7 MB