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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1362
RA = 20.1227, Dec = -27.0229
tmin = 592358401, tmax = 592617601
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='549256', job_status='RUN', time_executed='2021-08-13 23:29:42.868942', time_epoch_executed='1628922582.87' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549256/ft1_4FGL_J0120.4-2701_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549256/ft1_4FGL_J0120.4-2701_daily_bin1362.fits outfile=/scratch/kocevski/549256/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1362.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=592358401.0 tmax=592617601.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.39
user 3.23
sys 1.10

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.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/549256/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/549256/ft1_filtered_4FGL_J0120.4-2701_daily_bin1362.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.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549256/ft1_filtered_4FGL_J0120.4-2701_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/549256/ltcube_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.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/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits
.....................!
real 14.13
user 12.80
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549256/ft1_filtered_4FGL_J0120.4-2701_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/549256/ltcube_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.fits outfile=/scratch/kocevski/549256/expmap_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.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/549256/ltcube_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.fits
.....................!
real 192.93
user 186.11
sys 6.19

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/549256/ft1_filtered_4FGL_J0120.4-2701_daily_bin1362.fits scfile=/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits outfile=/scratch/kocevski/549256/cmap_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.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.40
user 0.38
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549256/ft1_filtered_4FGL_J0120.4-2701_daily_bin1362.fits scfile=/scratch/kocevski/549256/ft2_4FGL_J0120.4-2701_daily_bin1362.fits outfile=/scratch/kocevski/549256/cmap_HighResolution_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.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.41
user 0.39
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4500       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9252       1.0000         .10000E-03   10000.    
     9 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16203E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0550       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2940       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .73454       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5105.363     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1842 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9502        6.2134         .0000        .21559E-02
   2  Prefactor     2.0569        647.53         .0000       -.23962E-04
   3  norm          .10000E-03    5.1405         .0000    ** at limit **
   4  norm          3.5845        2.8882         .0000        .43233E-03
   5  Prefactor     .10000E-03    1.3444         .0000    ** at limit **
   6  Prefactor     .10000E-03    2.3451         .0000    ** at limit **
   7  Prefactor     1.3609        3.3945         .0000        .85977E-03
   8  Prefactor     4.9510        9.0577         .0000        .40998E-02
   9  norm          .10000E-03    1.5726         .0000    ** at limit **
  10  norm          .10000E-03    1.4363         .0000    ** at limit **
  11  Prefactor     26.039        15.451         .0000       -.30341E-03
  12  Prefactor     .10000E-03    2.0634         .0000    ** at limit **
  13  norm          1.0550        1.0424         .0000        .47464E-03
  14  norm          .10000E-03    .57824         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.6280         .0000    ** at limit **
  16  norm          .10000E-03    .79285         .0000    ** at limit **
  17  Prefactor     2.2285        39.226         .0000        .17317E-02
  18  Prefactor     5.2882        8.7184         .0000        .32128E-02
  19  Normalizat    1.1263        .16286         .0000       -.13229E-03
  20  Prefactor     .73459        .18731         .0000       -.93644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.95023
  Prefactor  = 2.05686
  norm       = 0.0001
  norm       = 3.58455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36093
  Prefactor  = 4.95099
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0394
  Prefactor  = 0.0001
  norm       = 1.05496
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.22852
  Prefactor  = 5.28823
  Normalizat = 1.12634
  Prefactor  = 0.734589
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.363     FROM HESSE     STATUS=OK           295 CALLS     2137 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9502        6.2158        .66987E-03   -1.5110    
   2  Prefactor     2.0569        650.29        .26134E-03   -1.5421    
   3  norm          .10000E-03    5.1412        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5845        2.8872        .10549E-03   -1.5329    
   5  Prefactor     .10000E-03    1.3457        .80905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3458        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3609        3.3788        .19531E-03   -1.5475    
   8  Prefactor     4.9510        8.8002        .90616E-03   -1.5263    
   9  norm          .10000E-03    1.6019        .17311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5026        .16687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.039        15.395        .78515E-04   -1.4687    
  12  Prefactor     .10000E-03    8.1137        .19280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0550        1.0071        .70125E-03   -1.5503    
  14  norm          .10000E-03    .58400        .53020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6753        .17800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .79736        .62105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2285        39.288        .13815E-02   -1.5409    
  18  Prefactor     5.2882        8.7117        .87341E-03   -1.5248    
  19  Normalizat    1.1263        .19103        .19576E-03   -.88911    
  20  Prefactor     .73459        .21942        .27841E-03   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70946e-10
Minuit parameter uncertainties:
  1  6.21622
  2  73.9685
  3  4.00129e-05
  4  2.88733
  5  7.62466e-07
  6  3.44255e-08
  7  3.37924
  8  8.80255
  9  7.57911e-07
  10  1.57499e-06
  11  15.3973
  12  4.73875e-05
  13  1.00714
  14  1.59671e-08
  15  2.45885e-06
  16  2.5385e-06
  17  18.7281
  18  8.71374
  19  0.191145
  20  0.219676
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  1.575e-06  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.346e-01  2.197e-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.126e+00  1.911e-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: 3.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549256/likelihoodResults_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.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) = 5105.36642007
delta logL = -0.00315897357632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5105.36326122
delta logL = -1.21345692605e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8269       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73461       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=   5105.363     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10057E-03    107.11        .13365E-02** at limit **
   2  alpha         1.9019        3.3450        .50000       -.13878E-04
   3  Normalizat    1.1263        .35848E-01    .19576E-03    .98913E-04
   4  Prefactor     .73459        .42203E-01    .27841E-03    .59660E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5105.363     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      382 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10057E-03    107.11        .22188E-03** at limit **
   2  alpha         1.9019        3.3450        .45618E-04   -.13878E-04
   3  Normalizat    1.1263        .35848E-01    .15036E-05    .98913E-04
   4  Prefactor     .73459        .42203E-01    .14779E-05    .59660E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5105.363     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      459 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6970        .53460E-04** at limit **
   2  alpha         1.9596        3.4251        .50000        .72439E-06
   3  Normalizat    1.1263        .18616        .78304E-05   -.31564E-03
   4  Prefactor     .73459        .21904        .22273E-05   -.23174E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95959
  Normalizat = 1.12634
  Prefactor  = 0.734589
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.363     FROM HESSE     STATUS=OK            27 CALLS      486 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5580        .10692E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9596        2.8123        .50000       -.21788    
   3  Normalizat    1.1263        .18523        .15661E-05   -.88911    
   4  Prefactor     .73459        .21760        .44545E-06   -1.0219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13414e-10
Minuit parameter uncertainties:
  1  5.09621e-06
  2  77.3343
  3  0.185341
  4  0.217857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549256': 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) = 5105.36326008
delta logL = 1.01852401713e-06

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  5.096e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.960e+00  7.733e+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:  7.346e-01  2.179e-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.126e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 20.123 -27.023

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/549256/cmap_HighResolution_592358401_592617601_4FGL_J0120.4-2701_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2021-08-13 23:39:08.100517', job_id='549256', GAL2='0.73', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1628923148.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1362' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:39:08 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1362 20.1227 -27.0229 592358401 592617601 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 :                                   572.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            790 sec.

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

