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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1275
RA = 20.1227, Dec = -27.0229
tmin = 569808001, tmax = 570067201
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='549165', job_status='RUN', time_executed='2021-08-13 23:29:44.120452', time_epoch_executed='1628922584.12' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549165/ft1_4FGL_J0120.4-2701_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549165/ft1_4FGL_J0120.4-2701_daily_bin1275.fits outfile=/scratch/kocevski/549165/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1275.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=569808001.0 tmax=570067201.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.07
user 2.84
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.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/549165/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1275.fits evtable="EVENTS" outfile="/scratch/kocevski/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.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.40
user 0.27
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/549165/ltcube_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.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/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits
.....................!
real 10.09
user 9.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/549165/ltcube_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.fits outfile=/scratch/kocevski/549165/expmap_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.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/549165/ltcube_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.fits
.....................!
real 156.41
user 151.77
sys 4.20

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/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits outfile=/scratch/kocevski/549165/cmap_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits outfile=/scratch/kocevski/549165/cmap_HighResolution_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.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.50
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/549165/ft2_4FGL_J0120.4-2701_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549165/Model_4FGL_J0120.4-2701_daily_bin1275.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/549165/ft1_filtered_4FGL_J0120.4-2701_daily_bin1275.fits.....................!
real 38.68
user 37.53
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.725       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.432       1.0000         .10000E-03   10000.    
     9 'norm      '    .12876E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .86659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0123       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-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 '    .99734E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91268       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86805       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=   5702.571     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1778 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9874        .90712E-02** at limit **
   2  Prefactor     .10000E-03    67.116        .90712E-02** at limit **
   3  norm          11.723        9.5599        .29248E-02    .18996E-04
   4  norm          2.4570        3.2531        .65227E-02    .53020E-03
   5  Prefactor     6.1734        5.5545        .40392E-02    .28280E-02
   6  Prefactor     .10000E-03    12.364        .90712E-02** at limit **
   7  Prefactor     .10000E-03    1.0183        .90712E-02** at limit **
   8  Prefactor     16.442        10.057        .24701E-02    .93216E-04
   9  norm          .10000E-03    1.3269        .30196E-01** at limit **
  10  norm          .86316        1.7358        .25377E-01    .52922E-03
  11  Prefactor     22.169        15.205        .21272E-02    .24245E-02
  12  Prefactor     .10000E-03    2.3394        .90712E-02** at limit **
  13  norm          5.0121        1.5375        .44904E-02    .64775E-04
  14  norm          .10000E-03    .50691        .90712E-02** at limit **
  15  Prefactor     .10000E-03    .67260        .90712E-02** at limit **
  16  norm          .10000E-03    .69371        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.6934        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6.9131        .71104E-01** at limit **
  19  Normalizat    .91292        .14556        .45063E-01    .26029E-04
  20  Prefactor     .86788        .17219        .44597E-01    .28437E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.7234
  norm       = 2.45697
  Prefactor  = 6.17339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4416
  norm       = 0.0001
  norm       = 0.86316
  Prefactor  = 22.1693
  Prefactor  = 0.0001
  norm       = 5.01212
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.912918
  Prefactor  = 0.867883
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.571     FROM HESSE     STATUS=OK           291 CALLS     2069 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1659        .29440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.723        9.5604        .11699E-03   -1.5023    
   4  norm          2.4570        3.2393        .14972E-03   -1.5394    
   5  Prefactor     6.1734        5.5542        .16093E-03   -1.5211    
   6  Prefactor     .10000E-03    12.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0270        .74391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.442        9.3852        .98803E-04   -1.4897    
   9  norm          .10000E-03    2.1627        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .86316        1.3691        .13084E-02   -1.5522    
  11  Prefactor     22.169        14.851        .85089E-04   -1.4766    
  12  Prefactor     .10000E-03    2.3762        .11253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0121        1.5378        .50084E-04   -1.5260    
  14  norm          .10000E-03    .51230        .52467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .67411        .60478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .70095        .61395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.936        .38392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91292        .17166        .20612E-03   -.96008    
  20  Prefactor     .86788        .20318        .25298E-03   -.97273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35894e-09
Minuit parameter uncertainties:
  1  1.74605e-06
  2  0.000564692
  3  9.56169
  4  3.23955
  5  5.55466
  6  2.98513e-05
  7  9.28178e-08
  8  9.38602
  9  4.33353e-07
  10  1.36918
  11  14.8533
  12  2.03482e-07
  13  1.53777
  14  2.36494e-07
  15  5.98478e-08
  16  5.99001e-08
  17  2.56284e-06
  18  0.00011202
  19  0.171764
  20  0.203355
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  8.632e-01  1.369e+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:  8.679e-01  2.034e-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.129e-01  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/549165/likelihoodResults_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.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) = 5701.76766481
delta logL = 0.803330962842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5701.71144916
delta logL = 0.859546611399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19150E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .82180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94361       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=   5701.711     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      330 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19160E-01    .41825        .15939E-02    .35212E-02
   2  alpha         5.0000        4.7910        .46355    ** at limit **
   3  Normalizat    .82185        .76195E-01    .43894E-01   -.13020E-04
   4  Prefactor     .94347        .89353E-01    .45558E-01   -.65301E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.01916
  alpha      = 5
  Normalizat = 0.821851
  Prefactor  = 0.94347
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.711     FROM HESSE     STATUS=OK            35 CALLS      365 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19160E-01    .16018E-01    .71591E-05   -1.5680    
   2  alpha         5.0000        .75085        .49100        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .82185        .17939        .21560E-03   -.99263    
   4  Prefactor     .94347        .20878        .24373E-03   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07084e-12
Minuit parameter uncertainties:
  1  0.0160181
  2  7.767e-07
  3  0.179524
  4  0.208955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549165': 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) = 5701.71144834
delta logL = 0.859547436735

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.916e-02  1.602e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  7.767e-07  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  5.214e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  9.435e-01  2.090e-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.219e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.93e-08 +/- 5.76e-08
Energy Flux (Free Index): 9.37e-06 +/- 7.81e-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/549165/cmap_HighResolution_569808001_570067201_4FGL_J0120.4-2701_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', comment='SUCCESS', energy_flux2='9.37e-06', dlogl='8.60e-01', photon_flux2='6.93e-08', job_status='DONE', time_completed='2021-08-13 23:37:31.103679', photon_index_error2='0.00', photon_index2='5.00', ts='0.71', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='4.55e-08', energy_flux_error2='7.81e-06', EG='0.91', time_epoch_completed='1628923051.1', return_code='0', job_id='549165', GAL2='0.94', EG2='0.82', return_code2='0', photon_flux_error2='5.76e-08', ts2='2.63', photon_index='1.82' WHERE bin_id='1275' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:37:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 549165: <4FGL_J0120.4-2701_daily_bin1275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1275 20.1227 -27.0229 569808001 570067201 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 :                                   461.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            701 sec.

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

