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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1483
RA = 20.1227, Dec = -27.0229
tmin = 623721601, tmax = 623980801
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='550246', job_status='RUN', time_executed='2021-08-13 23:34:58.705912', time_epoch_executed='1628922898.71' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550246

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550246/ft1_4FGL_J0120.4-2701_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550246/ft1_4FGL_J0120.4-2701_daily_bin1483.fits outfile=/scratch/kocevski/550246/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1483.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=623721601.0 tmax=623980801.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 11.69
user 4.94
sys 6.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.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/550246/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.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 7.13
user 0.35
sys 6.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/550246/ltcube_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.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/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits
.....................!
real 24.34
user 15.73
sys 8.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/550246/ltcube_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits outfile=/scratch/kocevski/550246/expmap_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.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/550246/ltcube_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits
.....................!
real 199.51
user 186.21
sys 12.84

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/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits outfile=/scratch/kocevski/550246/cmap_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.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 6.81
user 0.39
sys 6.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits outfile=/scratch/kocevski/550246/cmap_HighResolution_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.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 6.88
user 0.41
sys 6.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550246/Model_4FGL_J0120.4-2701_daily_bin1483.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/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits.....................!
real 42.37
user 32.60
sys 9.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits', '/scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits', expMap='/scratch/kocevski/550246/expmap_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits', expCube='/scratch/kocevski/550246/ltcube_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550246/Model_4FGL_J0120.4-2701_daily_bin1483.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/550246/ft1_filtered_4FGL_J0120.4-2701_daily_bin1483.fits
Spacecraft file(s): /scratch/kocevski/550246/ft2_4FGL_J0120.4-2701_daily_bin1483.fits
Exposure map: /scratch/kocevski/550246/expmap_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits
Exposure cube: /scratch/kocevski/550246/ltcube_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550246/Model_4FGL_J0120.4-2701_daily_bin1483.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) = 3326.37367227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.775       1.0000         .10000E-03   10000.    
     9 'norm      '    .11172E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11817E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1928       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1781       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .61815       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.

 FCN=   3326.342     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2028 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1970        8.4868        .40313E-02   -.15772E-02
   2  Prefactor     .10003E-03    490.66        .90712E-02** at limit **
   3  norm          .10000E-03    6.8901        .90712E-02** at limit **
   4  norm          2.9226        3.5678        .59407E-02    .52104E-04
   5  Prefactor     .10000E-03    6.2658        .90712E-02** at limit **
   6  Prefactor     .10000E-03    4.8474        .90712E-02** at limit **
   7  Prefactor     .10000E-03    1.1335        .90712E-02** at limit **
   8  Prefactor     33.795        18.220        .17238E-02    .30233E-03
   9  norm          .10000E-03    2.1331        .90712E-02** at limit **
  10  norm          .10000E-03    1.1339        .90712E-02** at limit **
  11  Prefactor     .10002E-03    8.1172        .90712E-02** at limit **
  12  Prefactor     .10000E-03    8.6589        .90712E-02** at limit **
  13  norm          1.1921        1.8520        .10419E-01    .55231E-03
  14  norm          3.8142        2.8267        .51666E-02    .25486E-03
  15  Prefactor     3.1775        4.4887        .56830E-02   -.16370E-02
  16  norm          4.8757        4.4124        .45543E-02    .31282E-02
  17  Prefactor     .10000E-03    43.792        .90712E-02** at limit **
  18  Prefactor     .10002E-03    7.9732        .90712E-02** at limit **
  19  Normalizat    1.2458        .22160        .33857E-01   -.80842E-03
  20  Prefactor     .61798        .23757        .69966E-01   -.45298E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.19704
  Prefactor  = 0.000100026
  norm       = 0.0001
  norm       = 2.92265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.7946
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  norm       = 1.19214
  norm       = 3.81415
  Prefactor  = 3.17746
  norm       = 4.87569
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Normalizat = 1.2458
  Prefactor  = 0.617981
 **********
 **   18 **HESSE 
 **********

 FCN=   3326.342     FROM HESSE     STATUS=OK           281 CALLS     2309 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1970        8.4801        .16125E-03   -1.5210    
   2  Prefactor     .10003E-03    491.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8919        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9226        3.5609        .11626E-03   -1.5366    
   5  Prefactor     .10000E-03    6.3369        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8495        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1351        .59963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.795        18.105        .68952E-04   -1.4545    
   9  norm          .10000E-03    2.1380        .81799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1419        .59966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    8.1370        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8829        .33016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1921        1.8178        .93420E-04   -1.5490    
  14  norm          3.8142        2.8258        .79720E-04   -1.5317    
  15  Prefactor     3.1775        4.4768        .13920E-03   -1.5351    
  16  norm          4.8757        4.4082        .10857E-03   -1.5266    
  17  Prefactor     .10000E-03    43.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    8.0024        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2458        .25232        .20629E-03   -.85199    
  20  Prefactor     .61798        .26869        .30968E-03   -1.0683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50605e-08
Minuit parameter uncertainties:
  1  8.48179
  2  0.00721611
  3  7.26142e-05
  4  3.56117
  5  2.9581e-05
  6  3.27177e-06
  7  1.9335e-05
  8  18.108
  9  3.82212e-07
  10  2.21644e-05
  11  0.000791207
  12  0.000260871
  13  1.81786
  14  2.82588
  15  4.47724
  16  4.40853
  17  0.000417705
  18  0.000753945
  19  0.252563
  20  0.26925
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  2.216e-05  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:  6.180e-01  2.693e-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.246e+00  2.526e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550246/likelihoodResults_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.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) = 3326.34565236
delta logL = -0.00374082448934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3326.34191119
delta logL = 3.44875388691e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8020       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61796       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=   3326.342     FROM MIGRAD    STATUS=FAILED        95 CALLS      239 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    41.054        .60521E-02** at limit **
   2  alpha         1.4826        3.0104        .50000       -.29718E-05
   3  Normalizat    1.2458        .31557E-01    .20629E-03   -.87917E-04
   4  Prefactor     .61798        .34612E-01    .30968E-03   -.51377E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3326.342     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      423 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    41.054        .22993E-03** at limit **
   2  alpha         1.4826        3.0104        .21397E-05   -.29718E-05
   3  Normalizat    1.2458        .31557E-01    .30097E-07   -.87917E-04
   4  Prefactor     .61798        .34612E-01    .17063E-07   -.51377E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3326.342     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      493 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4252        .12756E-03** at limit **
   2  alpha         1.4827        4.2299        .50000       -.29543E-05
   3  Normalizat    1.2458        .24410        .82516E-05   -.87625E-04
   4  Prefactor     .61798        .26740        .24774E-05   -.51396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48267
  Normalizat = 1.24581
  Prefactor  = 0.617981
 **********
 **   18 **HESSE 
 **********

 FCN=   3326.342     FROM HESSE     STATUS=OK            27 CALLS      520 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2950        .25511E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4827        2.6351        .50000       -.41909    
   3  Normalizat    1.2458        .24381        .16503E-05   -.85199    
   4  Prefactor     .61798        .26668        .49549E-06   -1.0683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00359e-08
Minuit parameter uncertainties:
  1  6.086e-06
  2  77.2669
  3  0.244036
  4  0.267231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550246': 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) = 3326.3419065
delta logL = 5.03039609612e-06

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  6.086e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.483e+00  7.727e+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:  6.180e-01  2.672e-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.246e+00  2.440e-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/550246/cmap_HighResolution_623721601_623980801_4FGL_J0120.4-2701_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-08-13 23:44:49.354892', job_id='550246', GAL2='0.62', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1628923489.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='5.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1483' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 550246: <4FGL_J0120.4-2701_daily_bin1483> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1483> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:34 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:31:34 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:31:34 2021
Terminated at Fri Aug 13 23:44:51 2021
Results reported at Fri Aug 13 23:44:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1483 20.1227 -27.0229 623721601 623980801 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 :                                   676.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            857 sec.

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

