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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1040
RA = 20.1227, Dec = -27.0229
tmin = 508896001, tmax = 509155201
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='548823', job_status='RUN', time_executed='2021-08-13 23:27:59.021039', time_epoch_executed='1628922479.02' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548823

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548823/ft1_4FGL_J0120.4-2701_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548823/ft1_4FGL_J0120.4-2701_daily_bin1040.fits outfile=/scratch/kocevski/548823/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1040.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=508896001.0 tmax=509155201.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 4.43
user 3.49
sys 0.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/548823/ltcube_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.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/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits
.....................!
real 13.73
user 12.49
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/548823/ltcube_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.fits outfile=/scratch/kocevski/548823/expmap_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.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/548823/ltcube_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.fits
.....................!
real 192.41
user 186.06
sys 5.83

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/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits scfile=/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits outfile=/scratch/kocevski/548823/cmap_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.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 1.27
user 0.40
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits scfile=/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits outfile=/scratch/kocevski/548823/cmap_HighResolution_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.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 1.25
user 0.38
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/548823/ft2_4FGL_J0120.4-2701_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548823/Model_4FGL_J0120.4-2701_daily_bin1040.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/548823/ft1_filtered_4FGL_J0120.4-2701_daily_bin1040.fits.....................!
real 39.24
user 37.06
sys 2.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.77       1.0000         .10000E-03   10000.    
     3 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11670E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4513       1.0000         .10000E-03   10000.    
    10 'norm      '    .75120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28309       1.0000         .10000E-03   10000.    
    14 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8768       1.0000         .10000E-03   10000.    
    16 'norm      '    .18838E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .63699       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3347       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=   4114.585     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2095 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.967        14.331        .31616E-06    .37452E-04
   2  Prefactor     104.55        132.55        .21996E-06   -.81184E-04
   3  norm          .10000E-03    10.229       -.10059E-05** at limit **
   4  norm          .10000E-03    1.4277        .10791E-06** at limit **
   5  Prefactor     .10000E-03    2.1392       -.51272E-08** at limit **
   6  Prefactor     .10000E-03    6.0596        .15032E-06** at limit **
   7  Prefactor     7.3260        4.6109        .18518E-06   -.42277E-04
   8  Prefactor     .10000E-03    15.159        .37064E-07** at limit **
   9  norm          2.4497        2.2541        .67647E-08   -.24611E-03
  10  norm          .74903        2.9387        .28680E-05   -.21235E-03
  11  Prefactor     35.382        24.141       -.24997E-05   -.30576E-03
  12  Prefactor     .10000E-03    2.7051        .28555E-06** at limit **
  13  norm          .28274        1.3768        .56905E-06   -.25376E-03
  14  norm          .10000E-03    1.8497        .16006E-05** at limit **
  15  Prefactor     4.8767        3.6027        .65359E-07   -.27688E-04
  16  norm          .10000E-03    2.8510        .14070E-05** at limit **
  17  Prefactor     13.781        47.917       -.91000E-06   -.63016E-04
  18  Prefactor     .10000E-03    8.1092        .10039E-06** at limit **
  19  Normalizat    .63709        .20685       -.38369E-05   -.45512E-03
  20  Prefactor     1.3347        .23207        .22228E-06   -.48791E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 53.9671
  Prefactor  = 104.545
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32597
  Prefactor  = 0.0001
  norm       = 2.44966
  norm       = 0.749027
  Prefactor  = 35.3816
  Prefactor  = 0.0001
  norm       = 0.282743
  norm       = 0.000100001
  Prefactor  = 4.87667
  norm       = 0.000100002
  Prefactor  = 13.7814
  Prefactor  = 0.0001
  Normalizat = 0.637089
  Prefactor  = 1.33467
 **********
 **   18 **HESSE 
 **********

 FCN=   4114.585     FROM HESSE     STATUS=OK           291 CALLS     2386 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.967        14.358        .54598E-04   -1.4237    
   2  Prefactor     104.55        131.96        .19643E-03   -1.3659    
   3  norm          .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4386        .74857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1413        .91622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0690        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3260        4.6133        .10499E-03   -1.5167    
   8  Prefactor     .10000E-03    15.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4497        2.2450        .88573E-04   -1.5395    
  10  norm          .74903        2.9124        .19591E-03   -1.5535    
  11  Prefactor     35.382        24.401        .67362E-04   -1.4518    
  12  Prefactor     .10000E-03    2.7266        .10298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28274        2.3413        .13858E-02   -1.5602    
  14  norm          .10000E-03    2.6862        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8767        3.6034        .10177E-03   -1.5266    
  16  norm          .10000E-03    4.7303        .20216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.781        47.928        .10744E-03   -1.4965    
  18  Prefactor     .10000E-03    8.1369        .17840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63709        .24382        .28256E-03   -1.0643    
  20  Prefactor     1.3347        .27623        .24030E-03   -.82282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47285e-08
Minuit parameter uncertainties:
  1  14.3587
  2  132.335
  3  6.84725e-05
  4  1.02603e-06
  5  3.51873e-06
  6  5.39826e-06
  7  4.61357
  8  7.17098e-05
  9  2.24509
  10  2.91292
  11  24.4081
  12  2.56622e-06
  13  1.62705
  14  0.000116545
  15  3.60352
  16  0.000171214
  17  48.062
  18  9.293e-06
  19  0.244236
  20  0.276538
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  7.490e-01  2.913e+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.335e+00  2.765e-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:  6.371e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548823/likelihoodResults_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.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) = 4113.04294715
delta logL = 1.54159438287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4112.61690074
delta logL = 1.96764079351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41065E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .45878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4734       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=   4112.617     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      284 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41069E-01    .60847        .15722E-02    .20386E-02
   2  alpha         5.0000        3.4393        .46268    ** at limit **
   3  Normalizat    .45889        .13869        .74217E-01    .24674E-04
   4  Prefactor     1.4731        .16156        .52027E-01   -.17775E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0410694
  alpha      = 5
  Normalizat = 0.45889
  Prefactor  = 1.47314
 **********
 **   18 **HESSE 
 **********

 FCN=   4112.617     FROM HESSE     STATUS=OK            37 CALLS      321 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41069E-01    .28101E-01    .70148E-05   -1.5667    
   2  alpha         5.0000        .53690        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .45889        .25183        .32864E-03   -1.1436    
   4  Prefactor     1.4731        .28901        .22999E-03   -.78295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06365e-12
Minuit parameter uncertainties:
  1  0.0281011
  2  2.3744e-05
  3  0.252457
  4  0.289336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548823': 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) = 4112.6168971
delta logL = 1.96764443378

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.107e-02  2.810e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  2.374e-05  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.473e+00  2.893e-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:  4.589e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.49e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.01e-05 +/- 1.37e-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/548823/cmap_HighResolution_508896001_509155201_4FGL_J0120.4-2701_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-05', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='1.97e+00', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-08-13 23:36:40.439910', photon_index_error2='0.00', photon_index2='5.00', ts='0.09', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='7.35e-08', energy_flux_error2='1.37e-05', EG='0.64', time_epoch_completed='1628923000.44', return_code='0', job_id='548823', GAL2='1.47', EG2='0.46', return_code2='0', photon_flux_error2='1.01e-07', ts2='4.54', photon_index='1.82' WHERE bin_id='1040' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 548823: <4FGL_J0120.4-2701_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1040 20.1227 -27.0229 508896001 509155201 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            673 sec.

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

