/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 214 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7600
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1195
RA = 307.811, Dec = -41.3574
tmin = 549072001, tmax = 549331201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='993922', job_status='RUN', time_executed='2021-09-25 09:09:06.788038', time_epoch_executed='1632586146.79' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993922

Creating custom pfile directory:
/scratch/kocevski/993922/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=549072001.0 && nMetStart<549331201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=549072001.0 && nMetStart<549331201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993922/ft1_4FGL_J2031.2-4121_daily_bin1195.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=549072001.0 && nMetStart<549331201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993922/ft1_4FGL_J2031.2-4121_daily_bin1195.fits outfile=/scratch/kocevski/993922/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1195.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=549072001.0 tmax=549331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.93
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/993922/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.61
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/993922/ltcube_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits
.....................!
real 16.28
user 15.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/993922/ltcube_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits outfile=/scratch/kocevski/993922/expmap_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/993922/ltcube_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits
.....................!
real 191.03
user 185.27
sys 4.97

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2031.2-4121 @ 307.811 -41.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits outfile=/scratch/kocevski/993922/cmap_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=307.811 yref=-41.3574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits outfile=/scratch/kocevski/993922/cmap_HighResolution_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=307.811 yref=-41.3574 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993922/Model_4FGL_J2031.2-4121_daily_bin1195.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits.....................!
real 64.92
user 63.40
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits', '/scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits', expMap='/scratch/kocevski/993922/expmap_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits', expCube='/scratch/kocevski/993922/ltcube_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993922/Model_4FGL_J2031.2-4121_daily_bin1195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2031.2-4121'

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993922/ft1_filtered_4FGL_J2031.2-4121_daily_bin1195.fits
Spacecraft file(s): /scratch/kocevski/993922/ft2_4FGL_J2031.2-4121_daily_bin1195.fits
Exposure map: /scratch/kocevski/993922/expmap_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits
Exposure cube: /scratch/kocevski/993922/ltcube_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993922/Model_4FGL_J2031.2-4121_daily_bin1195.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8170.0056279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8170.00200372

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8099       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5658       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6923       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6787       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8406       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4007       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.475       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68219       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8170.002     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2332 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.820        12.427       -.21692E-06   -.25537E-04
   2  Prefactor     .10000E-03    18.678        .25110E-05** at limit **
   3  Prefactor     .10000E-03    13.940        .30051E-05** at limit **
   4  norm          23.241        22.856       -.18127E-05    .83444E-04
   5  Prefactor     1.2039        4.0235       -.20904E-05   -.12824E-02
   6  norm          1.8095        1.3717        .75004E-07   -.83238E-03
   7  norm          .10000E-03    2.4038       -.21447E-06** at limit **
   8  norm          6.5607        20.910       -.69551E-05    .88063E-04
   9  norm          1.6127        2.0748       -.24803E-06   -.71014E-03
  10  Prefactor     .10000E-03    14.930       -.23393E-05** at limit **
  11  norm          6.6926        4.5854        .31428E-06   -.20913E-03
  12  norm          .10000E-03    2.5532       -.38307E-06** at limit **
  13  norm          .10000E-03    6.6920       -.53263E-06** at limit **
  14  Prefactor     .10000E-03    15.465       -.39553E-05** at limit **
  15  Prefactor     .10000E-03    29.794       -.14902E-06** at limit **
  16  Prefactor     2.6737        49.905       -.14240E-04    .40295E-04
  17  norm          6.8406        2.3648       -.82891E-07    .86425E-04
  18  Prefactor     16.874        22.785       -.22517E-05    .65237E-04
  19  Prefactor     7.4010        6.4141       -.18524E-06   -.71518E-04
  20  Prefactor     45.472        30.180       -.33176E-05    .19874E-03
  21  Normalizat    .68211        .26086        .34080E-05    .73478E-04
  22  Prefactor     1.2034        .11334       -.21838E-06    .24440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2414
  Prefactor  = 1.20389
  norm       = 1.80949
  norm       = 0.0001
  norm       = 6.56071
  norm       = 1.61269
  Prefactor  = 0.0001
  norm       = 6.69257
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.67374
  norm       = 6.84059
  Prefactor  = 16.8736
  Prefactor  = 7.40099
  Prefactor  = 45.4722
  Normalizat = 0.682107
  Prefactor  = 1.20336
 **********
 **   18 **HESSE 
 **********

 FCN=   8170.002     FROM HESSE     STATUS=OK           342 CALLS     2674 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.820        12.430        .11186E-03   -1.4992    
   2  Prefactor     .10000E-03    18.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.241        22.806        .83083E-04   -1.4743    
   5  Prefactor     1.2039        4.4980        .35833E-03   -1.5489    
   6  norm          1.8095        1.3637        .87599E-04   -1.5439    
   7  norm          .10000E-03    2.4053        .13681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5607        20.614        .15662E-03   -1.5196    
   9  norm          1.6127        2.0673        .14305E-03   -1.5454    
  10  Prefactor     .10000E-03    14.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6926        4.5631        .15053E-03   -1.5191    
  12  norm          .10000E-03    2.5548        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6737        49.410        .24897E-03   -1.5381    
  17  norm          6.8406        2.3640        .76502E-04   -1.5185    
  18  Prefactor     16.874        22.753        .97498E-04   -1.4886    
  19  Prefactor     7.4010        6.4127        .14743E-03   -1.5164    
  20  Prefactor     45.472        29.898        .59455E-04   -1.4358    
  21  Normalizat    .68211        .27913        .46384E-03   -1.0460    
  22  Prefactor     1.2034        .12385        .16665E-03   -.86228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39593e-09
Minuit parameter uncertainties:
  1  12.4322
  2  0.000137136
  3  0.000166768
  4  22.8146
  5  4.49929
  6  1.36372
  7  9.16156e-06
  8  20.636
  9  2.06738
  10  0.000109448
  11  4.56339
  12  6.07485e-06
  13  1.60973e-05
  14  0.000186563
  15  1.06484e-06
  16  23.0094
  17  2.36402
  18  22.7648
  19  6.41326
  20  29.9078
  21  0.279714
  22  0.123879
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8170.00200344

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  1.610e-05  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.203e+00  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  6.821e-01  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 307.811 -41.357
Photon Flux Upper Limit: 2.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993922/likelihoodResults_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8170.0027109
delta logL = -0.000707456784767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8170.00200344
delta logL = 8.47740011523e-09

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2754       1.0000          .0000       5.0000    
     3 'Normalizat'    .68211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2034       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8170.002     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    356.25        .18142E-01** at limit **
   2  alpha         1.7181        4.1392        .16545        .17865E-08
   3  Normalizat    .68211        .44033E-01    .46384E-03    .10441E-04
   4  Prefactor     1.2034        .20641E-01    .16665E-03    .28857E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71805
  Normalizat = 0.682107
  Prefactor  = 1.20336
 **********
 **   18 **HESSE 
 **********

 FCN=   8170.002     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1774        .23610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7181        2.9251        .66181E-02   -.31812    
   3  Normalizat    .68211        .25452        .18554E-04   -1.0460    
   4  Prefactor     1.2034        .11948        .66659E-05   -.86228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62257e-13
Minuit parameter uncertainties:
  1  5.0992e-06
  2  552.968
  3  0.254965
  4  0.119509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993922': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8170.00200296
delta logL = 4.87073521072e-07

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  5.099e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.718e+00  5.530e+02  0.000e+00  5.000e+00 ( 1.000e+00)
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.203e+00  1.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  6.821e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 307.811 -41.357

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993922/cmap_HighResolution_549072001_549331201_4FGL_J2031.2-4121_daily_bin1195.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/993922

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='2.74e-08', time_completed='2021-09-25 09:21:03.782811', job_id='993922', GAL2='1.20', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632586863.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='4.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1195' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 993922: <4FGL_J2031.2-4121_daily_bin1195> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1195> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep 25 09:05:16 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:05:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 09:05:19 2021
Terminated at Sat Sep 25 09:21:04 2021
Results reported at Sat Sep 25 09:21:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1195 307.811 -41.3574 549072001 549331201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2031.2-4121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

The output (if any) is above this job summary.

