/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 42 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0120.4-2701_daily_bin315
RA = 20.1227, Dec = -27.0229
tmin = 320976001, tmax = 321235201
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='544699', job_status='RUN', time_executed='2021-08-13 23:18:19.974544', time_epoch_executed='1628921899.97' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544699/ft1_4FGL_J0120.4-2701_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544699/ft1_4FGL_J0120.4-2701_daily_bin315.fits outfile=/scratch/kocevski/544699/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin315.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=320976001.0 tmax=321235201.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.38
user 3.25
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.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/544699/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.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.37
user 0.34
sys 1.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/544699/ltcube_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.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/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits
.....................!
real 13.99
user 12.56
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/544699/ltcube_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.fits outfile=/scratch/kocevski/544699/expmap_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.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/544699/ltcube_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.fits
.....................!
real 192.70
user 186.05
sys 6.01

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/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits outfile=/scratch/kocevski/544699/cmap_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.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.38
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits outfile=/scratch/kocevski/544699/cmap_HighResolution_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.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.39
user 0.37
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/544699/ft2_4FGL_J0120.4-2701_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544699/Model_4FGL_J0120.4-2701_daily_bin315.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/544699/ft1_filtered_4FGL_J0120.4-2701_daily_bin315.fits.....................!
real 39.06
user 36.68
sys 2.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11230E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    287.34       1.0000         .10000E-03   10000.    
     3 'norm      '    .12370E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58800E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.382       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8931       1.0000         .10000E-03   10000.    
    10 'norm      '    .13034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25859E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6699       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2466       1.0000         .10000E-03   10000.    
    14 'norm      '    .10975E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8636       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12983E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70382       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=   3972.040     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2107 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4003        .19151E-07** at limit **
   2  Prefactor     287.18        163.87       -.91040E-04   -.16228E-06
   3  norm          .10000E-03    6.6664        .16735E-05** at limit **
   4  norm          .10000E-03    2.1747       -.17770E-06** at limit **
   5  Prefactor     .10000E-03    6.8738       -.59880E-05** at limit **
   6  Prefactor     .10053E-03    14.480        .39120E-05** at limit **
   7  Prefactor     9.5439        6.5948        .46945E-05   -.75112E-04
   8  Prefactor     67.542        24.343        .18751E-05    .66620E-04
   9  norm          2.8789        3.7124       -.17239E-06   -.36618E-04
  10  norm          .10002E-03    2.7081        .14110E-05** at limit **
  11  Prefactor     .10048E-03    22.614       -.51575E-05** at limit **
  12  Prefactor     1.6730        4.4371       -.96583E-06   -.33348E-03
  13  norm          1.2460        1.5859       -.25171E-06   -.38373E-03
  14  norm          .10000E-03    2.0083       -.60685E-07** at limit **
  15  Prefactor     4.8722        5.9612       -.16823E-05   -.26101E-03
  16  norm          1.6725        2.6177       -.36318E-06   -.13614E-03
  17  Prefactor     .10000E-03    12.040       -.10285E-05** at limit **
  18  Prefactor     .10000E-03    4.7190       -.13736E-06** at limit **
  19  Normalizat    1.2241        .21476        .20645E-05    .25866E-04
  20  Prefactor     .70387        .22745        .31132E-05    .38636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 287.181
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100531
  Prefactor  = 9.54393
  Prefactor  = 67.5418
  norm       = 2.87888
  norm       = 0.000100017
  Prefactor  = 0.000100483
  Prefactor  = 1.67304
  norm       = 1.24599
  norm       = 0.0001
  Prefactor  = 4.87224
  norm       = 1.6725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22408
  Prefactor  = 0.70387
 **********
 **   18 **HESSE 
 **********

 FCN=   3972.040     FROM HESSE     STATUS=OK           297 CALLS     2404 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4054        .95356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     287.18        164.08        .11972E-03   -1.2302    
   3  norm          .10000E-03    6.6745        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1931        .90745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9034        .16108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10053E-03    80.778        .44834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5439        6.6063        .12615E-03   -1.5090    
   8  Prefactor     67.542        24.109        .48896E-04   -1.4062    
   9  norm          2.8789        3.6642        .11594E-03   -1.5369    
  10  norm          .10002E-03    6.5914        .19174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10048E-03    192.66        .53717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6730        4.3575        .20265E-03   -1.5449    
  13  norm          1.2460        1.5540        .85716E-04   -1.5485    
  14  norm          .10000E-03    2.0726        .17381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8722        5.9518        .16182E-03   -1.5266    
  16  norm          1.6725        2.5874        .12236E-03   -1.5449    
  17  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7286        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2241        .25095        .22143E-03   -.85862    
  20  Prefactor     .70387        .26650        .31306E-03   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18161e-08
Minuit parameter uncertainties:
  1  6.61832e-06
  2  164.342
  3  0.000133496
  4  2.12382e-05
  5  7.76201e-05
  6  0.0131213
  7  6.60684
  8  24.1121
  9  3.66453
  10  0.000672097
  11  0.0193467
  12  4.35828
  13  1.55401
  14  4.61223e-06
  15  5.95257
  16  2.58753
  17  4.44778e-06
  18  7.27786e-06
  19  0.251198
  20  0.266983
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  6.721e-04  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:  7.039e-01  2.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.224e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544699/likelihoodResults_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.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) = 3972.04032284
delta logL = -0.000723124571778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3972.03960237
delta logL = -2.66228971668e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16194E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9017       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3972.040     FROM MIGRAD    STATUS=FAILED       101 CALLS      268 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10123E-03    342.42        .16072E-02** at limit **
   2  alpha         2.0252        3.7584        .50000       -.61721E-04
   3  Normalizat    1.2241        .23855        .22143E-03    .53087E-03
   4  Prefactor     .70387        .26393        .31306E-03    .45206E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3972.040     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      407 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10123E-03    342.42        .65104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0252        3.7584        .80448E-04   -.19110    
   3  Normalizat    1.2241        .23855        .10475E-04   -.85862    
   4  Prefactor     .70387        .26393        .11588E-04   -1.0338    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3970.652     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      540 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37601E-01    .27277E-01    .17945E-02    .21357E-01
   2  alpha         5.0000        .45550        .50000    ** at limit **
   3  Normalizat    1.0673        .27120        .44286E-03   -.32385E-03
   4  Prefactor     .81344        .28250        .62613E-03   -.82379E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0376008
  alpha      = 5
  Normalizat = 1.06733
  Prefactor  = 0.813439
 **********
 **   18 **HESSE 
 **********

 FCN=   3970.652     FROM HESSE     STATUS=OK            27 CALLS      567 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37601E-01    .27142E-01    .80580E-05   -1.5747    
   2  alpha         5.0000        3.1203        .35117E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0673        .25788        .17714E-04   -.90808    
   4  Prefactor     .81344        .27631        .25045E-04   -.99235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11059e-09
Minuit parameter uncertainties:
  1  0.0271415
  2  7.83447e-05
  3  0.258187
  4  0.276779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544699': 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) = 3970.65247726
delta logL = 1.38712244955

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  3.760e-02  2.714e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  7.834e-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:  8.134e-01  2.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.067e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.36e-07 +/- 9.76e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.32e-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/544699/cmap_HighResolution_320976001_321235201_4FGL_J0120.4-2701_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-05', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='1.39e+00', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-13 23:27:01.477471', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='6.50e-08', energy_flux_error2='1.32e-05', EG='1.22', time_epoch_completed='1628922421.48', return_code='0', job_id='544699', GAL2='0.81', EG2='1.07', return_code2='0', photon_flux_error2='9.76e-08', ts2='3.05', photon_index='1.82' WHERE bin_id='315' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 544699: <4FGL_J0120.4-2701_daily_bin315> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin315> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 23:11:12 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:17:10 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:17:10 2021
Terminated at Fri Aug 13 23:27:02 2021
Results reported at Fri Aug 13 23:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin315 20.1227 -27.0229 320976001 321235201 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 :                                   532.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            950 sec.

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

