/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 33 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 = 7502
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2120.6-1254_daily_bin1552
RA = 320.154, Dec = -12.9097
tmin = 641606401, tmax = 641865601
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='463892', job_status='RUN', time_executed='2021-09-26 12:03:38.659051', time_epoch_executed='1632683018.66' WHERE source_name='4FGL J2120.6-1254' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463892

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463892/ft1_4FGL_J2120.6-1254_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463892/ft1_4FGL_J2120.6-1254_daily_bin1552.fits outfile=/scratch/kocevski/463892/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1552.fits ra=320.154 dec=-12.9097 rad=12.0 tmin=641606401.0 tmax=641865601.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.57
user 2.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.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/463892/ft1_filteredMKT_4FGL_J2120.6-1254_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/463892/ltcube_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.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/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits
.....................!
real 14.74
user 14.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/463892/ltcube_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits outfile=/scratch/kocevski/463892/expmap_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.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/463892/ltcube_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits
.....................!
real 190.20
user 185.18
sys 4.48

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2120.6-1254 @ 320.154 -12.9097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits outfile=/scratch/kocevski/463892/cmap_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.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=320.154 yref=-12.9097 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits outfile=/scratch/kocevski/463892/cmap_HighResolution_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.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=320.154 yref=-12.9097 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463892/Model_4FGL_J2120.6-1254_daily_bin1552.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/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits.....................!
real 72.77
user 70.92
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits', '/scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits', expMap='/scratch/kocevski/463892/expmap_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits', expCube='/scratch/kocevski/463892/ltcube_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463892/Model_4FGL_J2120.6-1254_daily_bin1552.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2120.6-1254'

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/463892/ft1_filtered_4FGL_J2120.6-1254_daily_bin1552.fits
Spacecraft file(s): /scratch/kocevski/463892/ft2_4FGL_J2120.6-1254_daily_bin1552.fits
Exposure map: /scratch/kocevski/463892/expmap_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits
Exposure cube: /scratch/kocevski/463892/ltcube_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463892/Model_4FGL_J2120.6-1254_daily_bin1552.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) = 7722.61896432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21505E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26676E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12473E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15811E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.299       1.0000         .10000E-03   10000.    
    12 'norm      '    11.597       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14515E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37705E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3978       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .83979       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7722.613     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1536 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2072        .90712E-02** at limit **
   2  Prefactor     .48168        2.0620        .74304E-01    .51109E-03
   3  Prefactor     .10000E-03    7.3160        .91301E-01** at limit **
   4  Prefactor     .10000E-03    5.7428        .90712E-02** at limit **
   5  Prefactor     7.5862        8.6854        .36409E-02    .60258E-04
   6  Prefactor     .10001E-03    16.865        .90712E-02** at limit **
   7  Prefactor     4.9823        4.8388        .44999E-02    .31422E-03
   8  Prefactor     .10000E-03    .92901        .50976E-01** at limit **
   9  Prefactor     .10002E-03    3.0975        .57807E-01** at limit **
  10  Prefactor     .10000E-03    14.493        .90712E-02** at limit **
  11  Prefactor     38.453        20.533        .16191E-02   -.42986E-04
  12  norm          11.594        6.8113        .29410E-02   -.13412E-02
  13  Prefactor     .10000E-03    3.5207        .90712E-02** at limit **
  14  Prefactor     .10000E-03    5.7740        .10645E-01** at limit **
  15  Normalizat    1.3974        .20997        .64928E-01   -.22343E-04
  16  Prefactor     .83995        .11041        .44233E-01   -.53327E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.481677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58621
  Prefactor  = 0.000100009
  Prefactor  = 4.98225
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 38.4531
  norm       = 11.5936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39744
  Prefactor  = 0.839948
 **********
 **   18 **HESSE 
 **********

 FCN=   7722.613     FROM HESSE     STATUS=OK           209 CALLS     1745 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2708        .25486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48168        9.9146        .23853E-02   -1.5569    
   3  Prefactor     .10000E-03    51.247        .45423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5862        8.6819        .14564E-03   -1.5157    
   6  Prefactor     .10001E-03    16.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9823        4.8333        .18000E-03   -1.5262    
   8  Prefactor     .10000E-03    13.443        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    15.813        .30086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.453        20.676        .64764E-04   -1.4467    
  12  norm          11.594        6.8122        .58820E-03   -1.5027    
  13  Prefactor     .10000E-03    3.5692        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7865        .20622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3974        .25500        .28721E-03   -.80703    
  16  Prefactor     .83995        .13496        .19434E-03   -.98272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87852e-08
Minuit parameter uncertainties:
  1  5.81193e-06
  2  4.37103
  3  5.46314e-05
  4  1.08628e-05
  5  8.6833
  6  0.000796226
  7  4.83367
  8  0.000123903
  9  0.00103615
  10  0.00027946
  11  20.6801
  12  6.81266
  13  3.61397e-07
  14  9.20723e-06
  15  0.255227
  16  0.135016
Done.

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

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  7.586e+00  8.683e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.399e-01  1.350e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.397e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 320.154 -12.910
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 8.52e-06 +/- 9.75e-06

TS (Fixed Index): 1.53
Ra Dec: 320.154 -12.910
Photon Flux Upper Limit: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463892/likelihoodResults_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.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): 0
logL (Free Index) = 7722.23165368
delta logL = 0.381252820859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7722.23144854
delta logL = 0.381457961237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.271       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7400       1.0000          .0000       10.000    
     3 'Normalizat'    1.4088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7722.231     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.284        581.36        .29833E-02   -.41576E-04
   2  Index         1.7409        5.0546        .27539        .33393E-04
   3  Normalizat    1.4089        .13125        .64706E-01   -.25399E-04
   4  Prefactor     .83647        .54323E-01    .44190E-01   -.27693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.284
  Index      = 1.74088
  Normalizat = 1.40886
  Prefactor  = 0.836465
 **********
 **   18 **HESSE 
 **********

 FCN=   7722.231     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.284        12.315        .11933E-03   -1.5036    
   2  Index         1.7409        .64651        .10800E-01   -.70999    
   3  Normalizat    1.4089        .24624        .28622E-03   -.80373    
   4  Prefactor     .83647        .13392        .19467E-03   -.98398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70981e-10
Minuit parameter uncertainties:
  1  12.3174
  2  0.649687
  3  0.246447
  4  0.133976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463892': 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) = 7722.23144729
delta logL = 0.381459214213

Extracting fit parameters...

4FGL J2120.6-1254
   Spectrum: PowerLaw
314    Prefactor:  1.128e+01  1.232e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.741e+00  6.497e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.365e-01  1.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.409e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 320.154 -12.910
Photon Index (Free Index): 1.74 +/- 0.65
Photon Flux (Free Index): 1.36e-08 +/- 1.95e-08
Energy Flux (Free Index): 1.95e-05 +/- 3.01e-05

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/463892/cmap_HighResolution_641606401_641865601_4FGL_J2120.6-1254_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='1.95e-05', photon_flux_error='2.72e-08', dlogl='3.81e-01', energy_flux='8.52e-06', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-26 12:13:52.547453', photon_index_error2='0.65', photon_index2='1.74', ts='1.53', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='3.01e-05', EG='1.40', time_epoch_completed='1632683632.55', return_code='0', job_id='463892', GAL2='0.84', EG2='1.41', return_code2='0', energy_flux_error='9.75e-06', photon_flux_error2='1.95e-08', ts2='2.30', photon_index='2.34' WHERE bin_id='1552' AND source_name='4FGL J2120.6-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:13:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 463892: <4FGL_J2120.6-1254_daily_bin1552> in cluster <slac> Done

Job <4FGL_J2120.6-1254_daily_bin1552> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 12:00:42 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:02:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:02:56 2021
Terminated at Sun Sep 26 12:13:53 2021
Results reported at Sun Sep 26 12:13:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2120.6-1254_daily_bin1552 320.154 -12.9097 641606401 641865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2120.6-1254 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            791 sec.

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

