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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.307/2.307, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.623e-05, allocations: 3.938 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2983, allocations: 54.86 MB / 358.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9914/1.29, allocations: 414.1 MB / 0.7541 GB, free: 52.18 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.29, allocations: 96.02 kB / 0.7542 GB, free: 52.12 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6979/1.988, allocations: 116.6 MB / 0.8681 GB, free: 129.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.502e-06/1.988, allocations: 0 / 0.8681 GB, free: 129.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.491e-05/1.988, allocations: 19.05 kB / 0.8681 GB, free: 129.8 MB / 474.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.002584/1.991, allocations: 0.9745 MB / 0.8691 GB, free: 128.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/1.991, allocations: 16.02 kB / 0.8691 GB, free: 128.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005849/1.991, allocations: 83.16 kB / 0.8691 GB, free: 128.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/1.993, allocations: 0.5472 MB / 0.8697 GB, free: 128.1 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/1.993, allocations: 88.64 kB / 0.8698 GB, free: 128 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/1.993, allocations: 32 kB / 0.8698 GB, free: 128 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001189/1.994, allocations: 0.5375 MB / 0.8703 GB, free: 127.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/1.996, allocations: 0.7285 MB / 0.871 GB, free: 126.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/1.996, allocations: 7.891 kB / 0.871 GB, free: 126.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/1.996, allocations: 4 kB / 0.871 GB, free: 126.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.219e-05/1.996, allocations: 37.3 kB / 0.8711 GB, free: 126.6 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/2.001, allocations: 3.971 MB / 0.875 GB, free: 122.4 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/2.002, allocations: 312.2 kB / 0.8753 GB, free: 122.1 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/2.002, allocations: 157.4 kB / 0.8754 GB, free: 121.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003173/2.002, allocations: 348.7 kB / 0.8757 GB, free: 121.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/2.002, allocations: 38.84 kB / 0.8758 GB, free: 121.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 3.244e-06/2.002, allocations: 0 / 0.8758 GB, free: 121.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=39): time 0.004112/2.007, allocations: 1.267 MB / 0.877 GB, free: 120.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/2.007, allocations: 132.5 kB / 0.8771 GB, free: 120 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/2.007, allocations: 454.1 kB / 0.8776 GB, free: 119.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.97e-05/2.007, allocations: 25.7 kB / 0.8776 GB, free: 119.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/2.008, allocations: 429.4 kB / 0.878 GB, free: 119.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/2.008, allocations: 145.9 kB / 0.8781 GB, free: 119 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/2.008, allocations: 0 / 0.8781 GB, free: 119 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.702e-05/2.008, allocations: 338.8 kB / 0.8785 GB, free: 118.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/2.008, allocations: 197.5 kB / 0.8787 GB, free: 118.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005016/2.009, allocations: 0.5062 MB / 0.8792 GB, free: 117.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009535/2.01, allocations: 344 kB / 0.8795 GB, free: 117.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/2.01, allocations: 4 kB / 0.8795 GB, free: 117.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002539/2.012, allocations: 0.8554 MB / 0.8803 GB, free: 116.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/2.012, allocations: 8.906 kB / 0.8803 GB, free: 116.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/2.012, allocations: 12 kB / 0.8803 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009959/2.013, allocations: 223.1 kB / 0.8806 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/2.014, allocations: 135.8 kB / 0.8807 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/2.015, allocations: 0.8633 MB / 0.8815 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009876/2.016, allocations: 43.88 kB / 0.8816 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/2.016, allocations: 39.98 kB / 0.8816 GB, free: 115.2 MB / 474.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 () * 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.000201/2.016, allocations: 128.7 kB / 0.8817 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/2.017, allocations: 59.34 kB / 0.8818 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/2.018, allocations: 0.588 MB / 0.8824 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/2.018, allocations: 4 kB / 0.8824 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.531e-06/2.018, allocations: 0 / 0.8824 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.992e-06/2.018, allocations: 7.938 kB / 0.8824 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/2.022, allocations: 1.466 MB / 0.8838 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/2.022, allocations: 7.984 kB / 0.8838 GB, free: 112.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/2.023, allocations: 187.7 kB / 0.884 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002962/2.023, allocations: 52.8 kB / 0.884 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/2.023, allocations: 12.08 kB / 0.884 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/2.025, allocations: 2.688 MB / 0.8867 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.334e-06/2.025, allocations: 0 / 0.8867 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/2.027, allocations: 0.9531 MB / 0.8876 GB, free: 108.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004256/2.028, allocations: 192.2 kB / 0.8878 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/2.028, allocations: 4 kB / 0.8878 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/2.028, allocations: 23.98 kB / 0.8878 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/2.029, allocations: 39.84 kB / 0.8879 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.863e-05/2.029, allocations: 19.98 kB / 0.8879 GB, free: 108.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004937/2.029, allocations: 330.9 kB / 0.8882 GB, free: 108 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-07/2.029, allocations: 0 / 0.8882 GB, free: 108 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001312/2.031, allocations: 207.9 kB / 0.8884 GB, free: 107.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * 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.0006086/2.031, allocations: 250.2 kB / 0.8886 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00128/2.032, allocations: 0.5275 MB / 0.8891 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.358e-06/2.032, allocations: 0 / 0.8891 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001193/2.034, allocations: 415.4 kB / 0.8895 GB, free: 106.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/2.035, allocations: 269.3 kB / 0.8898 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/2.038, allocations: 0.9984 MB / 0.8908 GB, free: 105.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/2.038, allocations: 0.942 MB / 0.8917 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/2.038, allocations: 63.42 kB / 0.8917 GB, free: 104.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.86e-06/2.038, allocations: 0 / 0.8917 GB, free: 104.3 MB / 474.7 MB Notification: Performance of Templates: time 0.02118/2.06, allocations: 14.26 MB / 0.9057 GB, free: 90.06 MB / 474.7 MB