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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1422
RA = 20.1227, Dec = -27.0229
tmin = 607910401, tmax = 608169601
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='550153', job_status='RUN', time_executed='2021-08-13 23:34:47.662406', time_epoch_executed='1628922887.66' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550153/ft1_4FGL_J0120.4-2701_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550153/ft1_4FGL_J0120.4-2701_daily_bin1422.fits outfile=/scratch/kocevski/550153/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1422.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=607910401.0 tmax=608169601.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 8.71
user 3.29
sys 5.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.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/550153/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1422.fits evtable="EVENTS" outfile="/scratch/kocevski/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.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 5.59
user 0.32
sys 5.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/550153/ltcube_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.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/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits
.....................!
real 18.84
user 12.70
sys 6.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/550153/ltcube_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.fits outfile=/scratch/kocevski/550153/expmap_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.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/550153/ltcube_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.fits
.....................!
real 197.59
user 185.80
sys 11.38

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/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits outfile=/scratch/kocevski/550153/cmap_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.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 5.55
user 0.38
sys 5.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits outfile=/scratch/kocevski/550153/cmap_HighResolution_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.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 5.54
user 0.38
sys 5.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/550153/ft2_4FGL_J0120.4-2701_daily_bin1422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550153/Model_4FGL_J0120.4-2701_daily_bin1422.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/550153/ft1_filtered_4FGL_J0120.4-2701_daily_bin1422.fits.....................!
real 51.13
user 43.06
sys 7.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9662       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0459       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9374       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0234       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3416       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5540       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96036       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99168       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=   5286.243     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1767 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1165        4.0629        .32996E-07    .27396E-04
   2  Prefactor     10.253        286.57       -.46997E-04   -.20955E-04
   3  norm          .10000E-03    4.5051        .57184E-06** at limit **
   4  norm          .10000E-03    1.5793       -.71394E-06** at limit **
   5  Prefactor     5.0442        7.1855        .79982E-06    .40350E-04
   6  Prefactor     .10000E-03    7.7084       -.21518E-06** at limit **
   7  Prefactor     .10000E-03    2.2762       -.36762E-06** at limit **
   8  Prefactor     5.9437        16.458        .32527E-05    .64801E-04
   9  norm          1.0228        3.6098       -.13762E-05   -.24738E-03
  10  norm          3.1197        1.9951       -.24054E-07   -.31318E-03
  11  Prefactor     .32473        9.7063        .36928E-05   -.72605E-03
  12  Prefactor     .10000E-03    1.7450       -.12328E-06** at limit **
  13  norm          1.3417        1.4812       -.10280E-07   -.54647E-05
  14  norm          3.2932        2.4389        .71401E-07   -.24951E-03
  15  Prefactor     1.5549        3.9701        .29829E-05    .40215E-03
  16  norm          1.6616        2.4666        .21381E-09   -.86537E-04
  17  Prefactor     1.7492        97.441        .18089E-06   -.38757E-05
  18  Prefactor     .10000E-03    2.7821       -.79715E-08** at limit **
  19  Normalizat    .96037        .17285       -.28597E-05    .15296E-03
  20  Prefactor     .99160        .19197        .42346E-05    .77351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11651
  Prefactor  = 10.2531
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.04418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94366
  norm       = 1.02282
  norm       = 3.11965
  Prefactor  = 0.324732
  Prefactor  = 0.0001
  norm       = 1.34172
  norm       = 3.29316
  Prefactor  = 1.55491
  norm       = 1.66163
  Prefactor  = 1.74924
  Prefactor  = 0.0001
  Normalizat = 0.960371
  Prefactor  = 0.991599
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.243     FROM HESSE     STATUS=OK           301 CALLS     2068 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1165        4.0535        .16158E-03   -1.5355    
   2  Prefactor     10.253        291.73        .12693E-03   -1.5067    
   3  norm          .10000E-03    4.5128        .15080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7862        .17638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0442        7.1812        .17901E-03   -1.5259    
   6  Prefactor     .10000E-03    7.7504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3579        .21402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9437        15.136        .16480E-03   -1.5220    
   9  norm          1.0228        3.2514        .14268E-03   -1.5506    
  10  norm          3.1197        1.9992        .79110E-04   -1.5355    
  11  Prefactor     .32473        46.372        .39425E-02   -1.5594    
  12  Prefactor     .10000E-03    1.7669        .93687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3417        1.4620        .88396E-04   -1.5476    
  14  norm          3.2932        2.4229        .90895E-04   -1.5345    
  15  Prefactor     1.5549        3.9868        .10883E-02   -1.5459    
  16  norm          1.6616        2.4366        .13156E-03   -1.5450    
  17  Prefactor     1.7492        98.342        .30655E-03   -1.5443    
  18  Prefactor     .10000E-03    2.7829        .11844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96037        .19708        .21482E-03   -.94370    
  20  Prefactor     .99160        .22050        .25263E-03   -.93010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67855e-09
Minuit parameter uncertainties:
  1  4.05385
  2  109.978
  3  4.15471e-05
  4  2.43186e-05
  5  7.18241
  6  3.17888e-05
  7  1.48155e-05
  8  15.1462
  9  3.25194
  10  1.99927
  11  7.76599
  12  5.93981e-06
  13  1.46199
  14  2.42297
  15  3.98749
  16  2.43673
  17  26.2763
  18  1.85868e-06
  19  0.197228
  20  0.220697
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.120e+00  1.999e+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:  9.916e-01  2.207e-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:  9.604e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.07
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.68e-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) = 5284.13896972
delta logL = 2.10444479348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5283.52438656
delta logL = 2.71902795054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85194       1.0000         .10000E-03   10000.    
     2 'alpha     '    .67915       1.0000          .0000       5.0000    
     3 'Normalizat'    .97120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99489       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=   5283.524     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85108        .75044        .10342E-01   -.24129E-03
   2  alpha         .67884        .33572        .23807       -.24909E-04
   3  Normalizat    .97125        .15558        .45805E-01    .38945E-04
   4  Prefactor     .99483        .18657        .46203E-01    .55843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.851084
  alpha      = 0.678837
  Normalizat = 0.971252
  Prefactor  = 0.994834
 **********
 **   18 **HESSE 
 **********

 FCN=   5283.524     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85108        1.2732        .43695E-03   -1.5523    
   2  alpha         .67884        .53450        .10599E-02   -.81608    
   3  Normalizat    .97125        .18275        .21379E-03   -.94000    
   4  Prefactor     .99483        .21922        .25235E-03   -.92902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0771e-12
Minuit parameter uncertainties:
  1  1.27319
  2  0.54358
  3  0.182872
  4  0.219421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550153': 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) = 5283.52438627
delta logL = 2.71902824152

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  8.511e-01  1.273e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  6.788e-01  5.436e-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.948e-01  2.194e-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:  9.713e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.50
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 0.68 +/- 0.54
Photon Flux (Free Index): 7.80e-09 +/- 6.21e-09
Energy Flux (Free Index): 1.49e-04 +/- 1.37e-04

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/550153/cmap_HighResolution_607910401_608169601_4FGL_J0120.4-2701_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.49e-04', photon_flux_error='1.73e-08', dlogl='2.72e+00', energy_flux='2.63e-05', photon_flux2='7.80e-09', job_status='DONE', time_completed='2021-08-13 23:44:28.139331', photon_index_error2='0.54', photon_index2='0.68', ts='19.07', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.37e-04', EG='0.96', time_epoch_completed='1628923468.14', return_code='0', job_id='550153', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='6.21e-09', ts2='24.50', photon_index='1.82' WHERE bin_id='1422' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 550153: <4FGL_J0120.4-2701_daily_bin1422> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1422> 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) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:30:56 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:56 2021
Terminated at Fri Aug 13 23:44:29 2021
Results reported at Fri Aug 13 23:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1422 20.1227 -27.0229 607910401 608169601 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            843 sec.

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

