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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1118
RA = 20.1227, Dec = -27.0229
tmin = 529113601, tmax = 529372801
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='548936', job_status='RUN', time_executed='2021-08-13 23:26:59.627118', time_epoch_executed='1628922419.63' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548936/ft1_4FGL_J0120.4-2701_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548936/ft1_4FGL_J0120.4-2701_daily_bin1118.fits outfile=/scratch/kocevski/548936/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1118.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=529113601.0 tmax=529372801.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 3.93
user 3.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/548936/ltcube_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.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/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits
.....................!
real 13.31
user 12.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/548936/ltcube_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.fits outfile=/scratch/kocevski/548936/expmap_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.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/548936/ltcube_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.fits
.....................!
real 190.71
user 185.55
sys 4.77

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/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits scfile=/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits outfile=/scratch/kocevski/548936/cmap_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits scfile=/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits outfile=/scratch/kocevski/548936/cmap_HighResolution_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.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 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/548936/ft2_4FGL_J0120.4-2701_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548936/Model_4FGL_J0120.4-2701_daily_bin1118.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/548936/ft1_filtered_4FGL_J0120.4-2701_daily_bin1118.fits.....................!
real 44.97
user 43.58
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.553       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2441       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63919E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0192       1.0000         .10000E-03   10000.    
    10 'norm      '    .61939       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7499       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2495       1.0000         .10000E-03   10000.    
    14 'norm      '    .34924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12126E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94378       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64256       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=   5571.970     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2095 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1555        4.6799        .13290E-06   -.43299E-04
   2  Prefactor     74.559        69.989        .15105E-05    .16752E-04
   3  norm          3.2440        5.4666        .70128E-07   -.38123E-04
   4  norm          .10000E-03    1.1380       -.27777E-08** at limit **
   5  Prefactor     .10000E-03    1.6061        .15720E-07** at limit **
   6  Prefactor     .10007E-03    5.3120       -.73248E-06** at limit **
   7  Prefactor     .66833        2.3984        .10381E-05   -.22579E-03
   8  Prefactor     .10000E-03    4.4699        .25103E-07** at limit **
   9  norm          1.0208        1.6413        .33619E-06   -.10288E-03
  10  norm          .61962        1.4212        .12191E-05    .38143E-03
  11  Prefactor     17.751        14.020        .11162E-05    .23370E-03
  12  Prefactor     1.7481        3.8906        .33328E-06   -.11792E-03
  13  norm          1.2495        .78394        .19748E-07   -.73774E-04
  14  norm          .34773        1.3222        .36879E-06   -.73305E-03
  15  Prefactor     .10000E-03    1.5140        .48806E-07** at limit **
  16  norm          .10000E-03    .59863        .30145E-08** at limit **
  17  Prefactor     .10000E-03    9.5126       -.11940E-07** at limit **
  18  Prefactor     .10000E-03    4.7002       -.84431E-07** at limit **
  19  Normalizat    .94371        .13634       -.16488E-05    .47525E-04
  20  Prefactor     .64256        .15526        .14905E-06   -.10343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.15547
  Prefactor  = 74.5591
  norm       = 3.24402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.66833
  Prefactor  = 0.0001
  norm       = 1.02075
  norm       = 0.619624
  Prefactor  = 17.7507
  Prefactor  = 1.74809
  norm       = 1.24952
  norm       = 0.347734
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.943712
  Prefactor  = 0.642558
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.970     FROM HESSE     STATUS=OK           311 CALLS     2406 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1555        4.6780        .12588E-03   -1.5173    
   2  Prefactor     74.559        69.940        .46501E-04   -1.3979    
   3  norm          3.2440        5.4513        .21958E-03   -1.5348    
   4  norm          .10000E-03    1.1613        .77735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6132        .92355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    9.9261        .56807E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66833        2.4136        .20594E-03   -1.5544    
   8  Prefactor     .10000E-03    4.4974        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0208        1.4028        .10850E-02   -1.5506    
  10  norm          .61962        1.3637        .14121E-02   -1.5551    
  11  Prefactor     17.751        14.459        .95050E-04   -1.4865    
  12  Prefactor     1.7481        3.6606        .18559E-03   -1.5444    
  13  norm          1.2495        .78365        .50834E-04   -1.5484    
  14  norm          .34773        2.0159        .14947E-02   -1.5590    
  15  Prefactor     .10000E-03    3.2180        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .60399        .56352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7231        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94371        .15920        .18087E-03   -.94941    
  20  Prefactor     .64256        .18479        .25603E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68395e-09
Minuit parameter uncertainties:
  1  4.67824
  2  70.0173
  3  5.45215
  4  2.85756e-06
  5  3.3308e-07
  6  0.00167428
  7  2.414
  8  1.13205e-05
  9  1.40287
  10  1.3638
  11  14.4618
  12  3.66106
  13  0.78366
  14  1.67437
  15  3.91635e-05
  16  3.18578e-08
  17  3.42195e-06
  18  5.24386e-06
  19  0.159278
  20  0.184969
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  6.196e-01  1.364e+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:  6.426e-01  1.850e-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.437e-01  1.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/548936/likelihoodResults_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.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): 0
logL (Free Index) = 5570.85663094
delta logL = 1.11338006422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5570.82441917
delta logL = 1.1455918346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14298E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .87354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70131       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=   5570.824     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      376 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14300E-01    .34122        .14083E-02    .54379E-02
   2  alpha         5.0000        4.9627        .46270    ** at limit **
   3  Normalizat    .87334        .67581E-01    .44563E-01   -.82760E-07
   4  Prefactor     .70152        .79477E-01    .42419E-01    .14475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0142999
  alpha      = 5
  Normalizat = 0.873336
  Prefactor  = 0.701523
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.824     FROM HESSE     STATUS=OK            37 CALLS      413 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14300E-01    .12873E-01    .63324E-04   -1.5684    
   2  alpha         5.0000        .83982        .49886        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .87334        .16119        .18682E-03   -.97404    
   4  Prefactor     .70152        .18830        .24589E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86835e-10
Minuit parameter uncertainties:
  1  0.0128729
  2  1.68953e-05
  3  0.161281
  4  0.188469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548936': 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) = 5570.82441489
delta logL = 1.14559611323

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.430e-02  1.287e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  1.690e-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:  7.015e-01  1.885e-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.733e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.17e-08 +/- 4.63e-08
Energy Flux (Free Index): 7.00e-06 +/- 6.28e-06

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/548936/cmap_HighResolution_529113601_529372801_4FGL_J0120.4-2701_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', comment='SUCCESS', energy_flux2='7.00e-06', dlogl='1.15e+00', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-08-13 23:36:47.575460', photon_index_error2='0.00', photon_index2='5.00', ts='0.30', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='6.28e-06', EG='0.94', time_epoch_completed='1628923007.58', return_code='0', job_id='548936', GAL2='0.70', EG2='0.87', return_code2='0', photon_flux_error2='4.63e-08', ts2='2.72', photon_index='1.82' WHERE bin_id='1118' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:36:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 548936: <4FGL_J0120.4-2701_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1118 20.1227 -27.0229 529113601 529372801 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 :                                   584.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             363.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            673 sec.

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

