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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1417
RA = 20.1227, Dec = -27.0229
tmin = 606614401, tmax = 606873601
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='550144', job_status='RUN', time_executed='2021-08-13 23:34:04.579648', time_epoch_executed='1628922844.58' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550144/ft1_4FGL_J0120.4-2701_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550144/ft1_4FGL_J0120.4-2701_daily_bin1417.fits outfile=/scratch/kocevski/550144/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1417.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=606614401.0 tmax=606873601.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 14.28
user 4.89
sys 9.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.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/550144/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1417.fits evtable="EVENTS" outfile="/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.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 9.99
user 0.34
sys 9.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/550144/ltcube_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.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/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits
.....................!
real 23.48
user 13.02
sys 10.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/550144/ltcube_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits outfile=/scratch/kocevski/550144/expmap_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.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/550144/ltcube_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits
.....................!
real 204.27
user 187.15
sys 16.74

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

Setting source of interest to:
4FGL J0120.4-2701 @ 20.1227 -27.0229

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits outfile=/scratch/kocevski/550144/cmap_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.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=20.1227 yref=-27.0229 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 9.34
user 0.38
sys 8.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits outfile=/scratch/kocevski/550144/cmap_HighResolution_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.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=20.1227 yref=-27.0229 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 8.80
user 0.38
sys 8.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550144/Model_4FGL_J0120.4-2701_daily_bin1417.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/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits.....................!
real 62.21
user 49.29
sys 12.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits', '/scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits', expMap='/scratch/kocevski/550144/expmap_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits', expCube='/scratch/kocevski/550144/ltcube_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550144/Model_4FGL_J0120.4-2701_daily_bin1417.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0120.4-2701'

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/550144/ft1_filtered_4FGL_J0120.4-2701_daily_bin1417.fits
Spacecraft file(s): /scratch/kocevski/550144/ft2_4FGL_J0120.4-2701_daily_bin1417.fits
Exposure map: /scratch/kocevski/550144/expmap_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits
Exposure cube: /scratch/kocevski/550144/ltcube_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550144/Model_4FGL_J0120.4-2701_daily_bin1417.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) = 6195.88304337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2204       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33578E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3730       1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82861       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8572       1.0000         .10000E-03   10000.    
    14 'norm      '    .34343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7698       1.0000         .10000E-03   10000.    
    16 'norm      '    .55514E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90664       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6195.835     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2122 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5749        4.5365        .50189E-07    .14065E-04
   2  Prefactor     .10000E-03    22.518       -.35435E-07** at limit **
   3  norm          1.2190        8.5021        .14109E-05    .71026E-03
   4  norm          5.0709        2.8639        .26632E-07    .22920E-05
   5  Prefactor     .10000E-03    6.9744       -.45157E-06** at limit **
   6  Prefactor     .10000E-03    15.309       -.65992E-06** at limit **
   7  Prefactor     .10000E-03    1.1300       -.94997E-07** at limit **
   8  Prefactor     .10000E-03    10.375       -.42860E-06** at limit **
   9  norm          2.3725        2.3372        .22167E-06    .53775E-03
  10  norm          .10000E-03    .86560       -.69088E-07** at limit **
  11  Prefactor     12.250        9.9209       -.20246E-06    .18246E-04
  12  Prefactor     .83145        3.2440       -.10892E-06   -.10406E-03
  13  norm          1.8572        1.0142        .29998E-07   -.54626E-04
  14  norm          .34459        .82186        .12391E-05    .15873E-02
  15  Prefactor     2.7702        2.9633        .42916E-07    .50494E-04
  16  norm          .10028E-03    2.2710       -.15412E-05** at limit **
  17  Prefactor     12.999        24.971        .19809E-05    .20102E-04
  18  Prefactor     .10000E-03    4.1245        .52036E-06** at limit **
  19  Normalizat    1.0016        .14817       -.51671E-06    .35864E-03
  20  Prefactor     .90681        .17393       -.14811E-06    .20022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5749
  Prefactor  = 0.0001
  norm       = 1.21896
  norm       = 5.07091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37251
  norm       = 0.0001
  Prefactor  = 12.2497
  Prefactor  = 0.831452
  norm       = 1.85724
  norm       = 0.344589
  Prefactor  = 2.77022
  norm       = 0.000100284
  Prefactor  = 12.9994
  Prefactor  = 0.0001
  Normalizat = 1.00162
  Prefactor  = 0.906809
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.835     FROM HESSE     STATUS=OK           301 CALLS     2423 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5749        4.5323        .16125E-03   -1.5280    
   2  Prefactor     .10000E-03    22.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2190        9.1641        .20415E-02   -1.5487    
   4  norm          5.0709        2.8633        .96901E-04   -1.5258    
   5  Prefactor     .10000E-03    7.1727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1527        .81639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.985        .38257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3725        1.9234        .89079E-04   -1.5400    
  10  norm          .10000E-03    .88364        .71411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.250        9.8974        .11444E-03   -1.5008    
  12  Prefactor     .83145        4.8859        .23443E-02   -1.5526    
  13  norm          1.8572        1.0112        .56704E-04   -1.5435    
  14  norm          .34459        .82105        .12120E-02   -1.5591    
  15  Prefactor     2.7702        2.9538        .13458E-03   -1.5375    
  16  norm          .10028E-03    12.742        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.999        24.878        .11096E-03   -1.4987    
  18  Prefactor     .10000E-03    4.1200        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0016        .17302        .20329E-03   -.92976    
  20  Prefactor     .90681        .20682        .25731E-03   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46711e-08
Minuit parameter uncertainties:
  1  4.53263
  2  7.47227e-06
  3  6.68568
  4  2.86338
  5  4.03089e-05
  6  7.4593e-05
  7  3.79904e-06
  8  1.78951e-05
  9  1.92346
  10  2.67975e-06
  11  9.89871
  12  4.03135
  13  1.0112
  14  0.821078
  15  2.95392
  16  0.00380375
  17  24.8982
  18  1.72968e-05
  19  0.173115
  20  0.207001
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  2.680e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.068e-01  2.070e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.002e+00  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 20.123 -27.023
Photon Flux Upper Limit: 3.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550144/likelihoodResults_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.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) = 6195.83621934
delta logL = -0.00155860349241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6195.83465277
delta logL = 7.96340736997e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6195.835     FROM MIGRAD    STATUS=FAILED        86 CALLS      277 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    61.968        .12049E-02** at limit **
   2  alpha         2.2022        3.6448        .50000       -.43716E-05
   3  Normalizat    1.0016        .29440E-01    .20329E-03    .31812E-03
   4  Prefactor     .90681        .35820E-01    .25731E-03    .22450E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6195.835     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      433 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    61.968        .17040E-03** at limit **
   2  alpha         2.2022        3.6448        .68157E-04   -.43716E-05
   3  Normalizat    1.0016        .29440E-01    .11061E-05    .31812E-03
   4  Prefactor     .90681        .35820E-01    .10787E-05    .22450E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6195.835     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      467 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    212.66        .24099E-03** at limit **
   2  alpha         2.1995        3.5980        .50000       -.50899E-05
   3  Normalizat    1.0016        .85458E-01    .40657E-04    .31418E-03
   4  Prefactor     .90681        .10390        .10292E-04    .22202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  alpha      = 2.19947
  Normalizat = 1.00162
  Prefactor  = 0.90681
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.835     FROM HESSE     STATUS=OK            29 CALLS      496 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.0997        .48197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1995        3.8943        .50000       -.12050    
   3  Normalizat    1.0016        .16858        .81315E-05   -.92976    
   4  Prefactor     .90681        .20506        .20584E-05   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51258e-08
Minuit parameter uncertainties:
  1  0.000317866
  2  74.0158
  3  0.168673
  4  0.20524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550144': 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) = 6195.83465272
delta logL = 8.0157251432e-06

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  3.179e-04  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.199e+00  7.402e+01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.068e-01  2.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.002e+00  1.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 20.123 -27.023

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/550144/cmap_HighResolution_606614401_606873601_4FGL_J0120.4-2701_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='3.15e-08', time_completed='2021-08-13 23:47:03.145289', job_id='550144', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1628923623.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1417' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 550144: <4FGL_J0120.4-2701_daily_bin1417> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1417> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:26 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:30:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:30:53 2021
Terminated at Fri Aug 13 23:47:04 2021
Results reported at Fri Aug 13 23:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1417 20.1227 -27.0229 606614401 606873601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0120.4-2701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   909.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            998 sec.

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

