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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1020
RA = 20.1227, Dec = -27.0229
tmin = 503712001, tmax = 503971201
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='548793', job_status='RUN', time_executed='2021-08-13 23:28:34.611171', time_epoch_executed='1628922514.61' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548793/ft1_4FGL_J0120.4-2701_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548793/ft1_4FGL_J0120.4-2701_daily_bin1020.fits outfile=/scratch/kocevski/548793/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1020.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=503712001.0 tmax=503971201.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 7.04
user 5.25
sys 1.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.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/548793/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.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 2.11
user 0.33
sys 1.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/548793/ltcube_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.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/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits
.....................!
real 13.72
user 11.35
sys 2.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/548793/ltcube_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.fits outfile=/scratch/kocevski/548793/expmap_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.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/548793/ltcube_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.fits
.....................!
real 191.79
user 183.89
sys 7.16

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/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits outfile=/scratch/kocevski/548793/cmap_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.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 2.07
user 0.37
sys 1.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits outfile=/scratch/kocevski/548793/cmap_HighResolution_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.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 2.09
user 0.37
sys 1.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/548793/ft2_4FGL_J0120.4-2701_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548793/Model_4FGL_J0120.4-2701_daily_bin1020.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/548793/ft1_filtered_4FGL_J0120.4-2701_daily_bin1020.fits.....................!
real 38.04
user 34.66
sys 3.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    72.629       1.0000         .10000E-03   10000.    
     3 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14804E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28882E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11677E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6367       1.0000         .10000E-03   10000.    
    16 'norm      '    .26079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88896       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0820       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=   3479.885     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2141 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.306        8.2062        .98213E-08    .29169E-04
   2  Prefactor     72.629        102.82       -.10164E-05    .43842E-05
   3  norm          .10000E-03    12.584        .49112E-05** at limit **
   4  norm          .10000E-03    4.7319       -.22577E-05** at limit **
   5  Prefactor     7.6325        9.8699       -.25040E-06    .96745E-04
   6  Prefactor     .10000E-03    7.2844        .54208E-06** at limit **
   7  Prefactor     21.082        10.337       -.16290E-06    .61247E-04
   8  Prefactor     .10000E-03    19.588       -.13345E-04** at limit **
   9  norm          .10000E-03    2.0234        .17486E-06** at limit **
  10  norm          4.3894        3.4906       -.52910E-07    .13674E-03
  11  Prefactor     .10000E-03    11.565       -.69043E-05** at limit **
  12  Prefactor     .10492E-03    3.7638       -.21759E-05** at limit **
  13  norm          .10000E-03    .57780        .17897E-06** at limit **
  14  norm          .10000E-03    2.7433        .14800E-05** at limit **
  15  Prefactor     6.6317        10.136       -.48441E-06   -.78777E-04
  16  norm          .10000E-03    4.4834       -.50223E-06** at limit **
  17  Prefactor     .10000E-03    38.612        .24403E-04** at limit **
  18  Prefactor     .10000E-03    14.667        .81167E-05** at limit **
  19  Normalizat    .88995        .23558        .58987E-06    .35587E-03
  20  Prefactor     1.0813        .25631        .50258E-06    .24876E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3064
  Prefactor  = 72.6285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.63246
  Prefactor  = 0.0001
  Prefactor  = 21.0816
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 4.38939
  Prefactor  = 0.0001
  Prefactor  = 0.000104918
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 6.63172
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.889948
  Prefactor  = 1.08131
 **********
 **   18 **HESSE 
 **********

 FCN=   3479.885     FROM HESSE     STATUS=OK           291 CALLS     2432 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.306        8.1917        .91140E-04   -1.4829    
   2  Prefactor     72.629        102.66        .47108E-04   -1.4001    
   3  norm          .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9046        .25031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6325        9.8645        .14507E-03   -1.5155    
   6  Prefactor     .10000E-03    7.2894        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.082        10.331        .87226E-04   -1.4789    
   8  Prefactor     .10000E-03    19.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6533        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3894        3.4859        .94812E-04   -1.5289    
  11  Prefactor     .10000E-03    11.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10492E-03    69.880        .20612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .58892        .43745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8153        .18216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6317        10.129        .15577E-03   -1.5193    
  16  norm          .10000E-03    67.286        .23100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88995        .27996        .25005E-03   -.96814    
  20  Prefactor     1.0813        .31046        .26187E-03   -.90066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62016e-08
Minuit parameter uncertainties:
  1  8.19214
  2  102.911
  3  8.29056e-05
  4  1.19602e-05
  5  9.86656
  6  1.09428e-05
  7  10.3321
  8  6.4201e-05
  9  0.000224878
  10  3.48607
  11  0.000116017
  12  0.0371191
  13  7.13012e-07
  14  0.000175328
  15  10.1319
  16  0.000742266
  17  0.000745373
  18  0.000143437
  19  0.280416
  20  0.310982
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.389e+00  3.486e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.081e+00  3.110e-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:  8.899e-01  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 3.70e-05 +/- 2.93e-05

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) = 3479.8733385
delta logL = 0.0112941190623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3479.86740002
delta logL = 0.0172326025977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8990       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6443       1.0000          .0000       5.0000    
     3 'Normalizat'    .89713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0807       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=   3479.867     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      201 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8990        3.4374        .51083E-02    .14817E-02
   2  alpha         1.6442        .58555        .37312       -.17822E-04
   3  Normalizat    .89713        .22455        .44865E-01    .56196E-05
   4  Prefactor     1.0807        .25583        .59251E-01    .69212E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89903
  alpha      = 1.64419
  Normalizat = 0.897132
  Prefactor  = 1.08068
 **********
 **   18 **HESSE 
 **********

 FCN=   3479.867     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8990        4.5472        .95553E-04   -1.5313    
   2  alpha         1.6442        .91183        .13626E-01   -.34939    
   3  Normalizat    .89713        .27199        .24920E-03   -.96561    
   4  Prefactor     1.0807        .31044        .26203E-03   -.90086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59463e-10
Minuit parameter uncertainties:
  1  4.5476
  2  0.936438
  3  0.272407
  4  0.310963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548793': 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) = 3479.86740002
delta logL = 0.0172326074548

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.899e+00  4.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.644e+00  9.364e-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:  1.081e+00  3.110e-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:  8.971e-01  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.64 +/- 0.94
Photon Flux (Free Index): 2.82e-08 +/- 5.30e-08
Energy Flux (Free Index): 4.30e-05 +/- 5.36e-05

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/548793/cmap_HighResolution_503712001_503971201_4FGL_J0120.4-2701_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='4.30e-05', photon_flux_error='3.02e-08', dlogl='1.72e-02', energy_flux='3.70e-05', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-08-13 23:36:30.625492', photon_index_error2='0.94', photon_index2='1.64', ts='6.24', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='5.36e-05', EG='0.89', time_epoch_completed='1628922990.63', return_code='0', job_id='548793', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='5.30e-08', ts2='6.27', photon_index='1.82' WHERE bin_id='1020' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 548793: <4FGL_J0120.4-2701_daily_bin1020> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1020> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:25 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:25:33 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:25:33 2021
Terminated at Fri Aug 13 23:36:31 2021
Results reported at Fri Aug 13 23:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1020 20.1227 -27.0229 503712001 503971201 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 :                                   495.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            666 sec.

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

