Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.24/2.24, allocations: 234.9 MB / 251.1 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004444, allocations: 12 kB / 315 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4269, allocations: 54.85 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.291/1.718, allocations: 414.9 MB / 0.7663 GB, free: 101.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003901/1.719, allocations: 109.9 kB / 0.7664 GB, free: 101.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7602/2.479, allocations: 118 MB / 0.8817 GB, free: 134 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.234e-06/2.479, allocations: 0 / 0.8817 GB, free: 134 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.934e-05/2.479, allocations: 16.83 kB / 0.8817 GB, free: 134 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.003622/2.483, allocations: 1.048 MB / 0.8827 GB, free: 133.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/2.483, allocations: 14.58 kB / 0.8827 GB, free: 133.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006627/2.483, allocations: 80.16 kB / 0.8828 GB, free: 133.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/2.485, allocations: 0.5535 MB / 0.8833 GB, free: 133.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/2.485, allocations: 101.2 kB / 0.8834 GB, free: 133.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/2.486, allocations: 50.44 kB / 0.8835 GB, free: 133.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/2.488, allocations: 0.8082 MB / 0.8843 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/2.488, allocations: 0 / 0.8843 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/2.488, allocations: 35.25 kB / 0.8843 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-05/2.488, allocations: 40.09 kB / 0.8844 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/2.49, allocations: 0.6321 MB / 0.885 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006877/2.497, allocations: 3.904 MB / 0.8888 GB, free: 130.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/2.498, allocations: 385.5 kB / 0.8892 GB, free: 130.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000572/2.499, allocations: 0.5005 MB / 0.8896 GB, free: 129.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/2.499, allocations: 41.83 kB / 0.8897 GB, free: 129.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 2.435e-06/2.499, allocations: 0 / 0.8897 GB, free: 129.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.005052/2.504, allocations: 1.484 MB / 0.8911 GB, free: 129.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/2.504, allocations: 139.1 kB / 0.8913 GB, free: 129.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009119/2.505, allocations: 0.5521 MB / 0.8918 GB, free: 129.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/2.505, allocations: 29.33 kB / 0.8918 GB, free: 129.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/2.505, allocations: 405.8 kB / 0.8922 GB, free: 128.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/2.505, allocations: 163.3 kB / 0.8924 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/2.505, allocations: 17.78 kB / 0.8924 GB, free: 128.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.564e-05/2.506, allocations: 343.6 kB / 0.8927 GB, free: 128.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/2.506, allocations: 222.9 kB / 0.8929 GB, free: 128.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007308/2.507, allocations: 0.5353 MB / 0.8935 GB, free: 128.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/2.508, allocations: 318.4 kB / 0.8938 GB, free: 128.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/2.508, allocations: 5.875 kB / 0.8938 GB, free: 128.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002868/2.511, allocations: 0.9279 MB / 0.8947 GB, free: 128 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/2.511, allocations: 13.03 kB / 0.8947 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/2.511, allocations: 10.78 kB / 0.8947 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/2.512, allocations: 262.5 kB / 0.8949 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009006/2.513, allocations: 130.4 kB / 0.8951 GB, free: 128 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/2.516, allocations: 0.8491 MB / 0.8959 GB, free: 127.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/2.517, allocations: 52.44 kB / 0.8959 GB, free: 127.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/2.517, allocations: 45.81 kB / 0.896 GB, free: 127.5 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.0005585/2.518, allocations: 249.8 kB / 0.8962 GB, free: 127.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/2.518, allocations: 66.64 kB / 0.8963 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/2.52, allocations: 0.6927 MB / 0.897 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/2.52, allocations: 10.97 kB / 0.897 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/2.52, allocations: 3.375 kB / 0.897 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/2.52, allocations: 1.969 kB / 0.897 GB, free: 127.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/2.523, allocations: 1.362 MB / 0.8983 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/2.523, allocations: 3.938 kB / 0.8983 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/2.525, allocations: 191.9 kB / 0.8985 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005033/2.526, allocations: 69.42 kB / 0.8986 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-05/2.526, allocations: 14.09 kB / 0.8986 GB, free: 126.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/2.529, allocations: 2.798 MB / 0.9013 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/2.529, allocations: 6.719 kB / 0.9013 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/2.531, allocations: 0.9668 MB / 0.9023 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/2.532, allocations: 199.9 kB / 0.9025 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/2.532, allocations: 10.34 kB / 0.9025 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007565/2.533, allocations: 38.27 kB / 0.9025 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/2.533, allocations: 39.02 kB / 0.9025 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-05/2.533, allocations: 24.25 kB / 0.9026 GB, free: 123.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006852/2.534, allocations: 378.9 kB / 0.9029 GB, free: 123.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.223e-06/2.534, allocations: 0 / 0.9029 GB, free: 123.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001402/2.535, allocations: 224.9 kB / 0.9031 GB, free: 123.8 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.0007523/2.536, allocations: 276.9 kB / 0.9034 GB, free: 123.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001891/2.538, allocations: 0.6004 MB / 0.904 GB, free: 123.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/2.538, allocations: 0 / 0.904 GB, free: 123.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/2.54, allocations: 463.9 kB / 0.9044 GB, free: 123.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002715/2.542, allocations: 301.1 kB / 0.9047 GB, free: 123.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/2.546, allocations: 1.688 MB / 0.9064 GB, free: 122.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/2.546, allocations: 0.9509 MB / 0.9073 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/2.547, allocations: 61.27 kB / 0.9073 GB, free: 122.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/2.547, allocations: 3.875 kB / 0.9074 GB, free: 122.2 MB / 490.7 MB Notification: Performance of Templates: time 0.02857/2.575, allocations: 14.66 MB / 0.9217 GB, free: 121.6 MB / 490.7 MB