Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadModel(ModelicaTest): time 2.216/2.216, allocations: 234.9 MB / 250.5 MB, free: 9.684 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004344, allocations: 12 kB / 314.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2954, allocations: 54.85 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.998/1.293, allocations: 414.9 MB / 0.7658 GB, free: 103.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.294, allocations: 94.5 kB / 0.7659 GB, free: 103.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6635/1.957, allocations: 118 MB / 0.8811 GB, free: 132.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.789e-06/1.957, allocations: 2.938 kB / 0.8811 GB, free: 132.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.68e-05/1.957, allocations: 14.83 kB / 0.8812 GB, free: 132.5 MB / 490.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.002554/1.96, allocations: 1.057 MB / 0.8822 GB, free: 132 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/1.96, allocations: 7.219 kB / 0.8822 GB, free: 132 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005164/1.961, allocations: 91.27 kB / 0.8823 GB, free: 131.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/1.962, allocations: 0.5416 MB / 0.8828 GB, free: 131.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/1.962, allocations: 99.81 kB / 0.8829 GB, free: 131.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/1.962, allocations: 51.56 kB / 0.883 GB, free: 131.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/1.964, allocations: 0.8083 MB / 0.8838 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/1.964, allocations: 1.969 kB / 0.8838 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/1.964, allocations: 25.11 kB / 0.8838 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-05/1.964, allocations: 44.42 kB / 0.8838 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/1.965, allocations: 0.6345 MB / 0.8844 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005538/1.971, allocations: 3.899 MB / 0.8882 GB, free: 129 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/1.972, allocations: 389.7 kB / 0.8886 GB, free: 129 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004506/1.972, allocations: 0.4969 MB / 0.8891 GB, free: 128.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/1.973, allocations: 45.7 kB / 0.8891 GB, free: 128.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 4.405e-06/1.973, allocations: 0 / 0.8891 GB, free: 128.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.004029/1.977, allocations: 1.488 MB / 0.8906 GB, free: 128 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/1.977, allocations: 135.5 kB / 0.8907 GB, free: 127.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007403/1.977, allocations: 494.9 kB / 0.8912 GB, free: 127.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.175e-05/1.978, allocations: 38.89 kB / 0.8912 GB, free: 127.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/1.978, allocations: 403.4 kB / 0.8916 GB, free: 127.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/1.978, allocations: 164.6 kB / 0.8918 GB, free: 127.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/1.978, allocations: 15.62 kB / 0.8918 GB, free: 127.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.06e-05/1.978, allocations: 344.3 kB / 0.8921 GB, free: 127 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/1.979, allocations: 217.8 kB / 0.8923 GB, free: 127 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006288/1.979, allocations: 0.533 MB / 0.8929 GB, free: 126.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006317/1.98, allocations: 322.3 kB / 0.8932 GB, free: 126.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/1.98, allocations: 3.438 kB / 0.8932 GB, free: 126.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002442/1.982, allocations: 0.9303 MB / 0.8941 GB, free: 126.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/1.982, allocations: 14.45 kB / 0.8941 GB, free: 126.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/1.982, allocations: 11.41 kB / 0.8941 GB, free: 126.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/1.984, allocations: 259 kB / 0.8943 GB, free: 126.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005829/1.984, allocations: 135.3 kB / 0.8945 GB, free: 126.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/1.986, allocations: 0.8504 MB / 0.8953 GB, free: 126 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009372/1.986, allocations: 45.52 kB / 0.8953 GB, free: 126 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.987, allocations: 39.06 kB / 0.8954 GB, free: 126 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (77): * Single equations (assignments): 76 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004722/1.987, allocations: 251.5 kB / 0.8956 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/1.987, allocations: 66.67 kB / 0.8957 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/1.989, allocations: 0.6962 MB / 0.8964 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/1.989, allocations: 3.625 kB / 0.8964 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.868e-06/1.989, allocations: 6.25 kB / 0.8964 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.989, allocations: 1.812 kB / 0.8964 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/1.992, allocations: 1.369 MB / 0.8977 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.623e-06/1.992, allocations: 6.281 kB / 0.8977 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/1.993, allocations: 188.4 kB / 0.8979 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004057/1.994, allocations: 69.95 kB / 0.898 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.794e-05/1.994, allocations: 7.531 kB / 0.898 GB, free: 125.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/1.996, allocations: 2.812 MB / 0.9007 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.247e-06/1.996, allocations: 3.656 kB / 0.9007 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/1.998, allocations: 1.054 MB / 0.9018 GB, free: 122.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004339/1.999, allocations: 195.1 kB / 0.9019 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/1.999, allocations: 11.59 kB / 0.9019 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005508/2, allocations: 34.06 kB / 0.902 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/2, allocations: 43.8 kB / 0.902 GB, free: 122.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.402e-05/2, allocations: 21.25 kB / 0.902 GB, free: 122.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005771/2, allocations: 381.5 kB / 0.9024 GB, free: 122.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.094e-06/2, allocations: 0 / 0.9024 GB, free: 122.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001172/2.002, allocations: 221.9 kB / 0.9026 GB, free: 122.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006073/2.002, allocations: 271 kB / 0.9029 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001503/2.004, allocations: 0.6036 MB / 0.9035 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.04e-06/2.004, allocations: 4 kB / 0.9035 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/2.005, allocations: 452.8 kB / 0.9039 GB, free: 122 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/2.007, allocations: 303.9 kB / 0.9042 GB, free: 122 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/2.01, allocations: 1.695 MB / 0.9058 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/2.01, allocations: 0.948 MB / 0.9068 GB, free: 120.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002969/2.011, allocations: 65.66 kB / 0.9068 GB, free: 120.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.709e-06/2.011, allocations: 3.062 kB / 0.9068 GB, free: 120.5 MB / 490.7 MB Notification: Performance of Templates: time 0.02271/2.033, allocations: 14.67 MB / 0.9212 GB, free: 120.1 MB / 490.7 MB