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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1387
RA = 20.1227, Dec = -27.0229
tmin = 598838401, tmax = 599097601
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='550100', job_status='RUN', time_executed='2021-08-13 23:32:56.727652', time_epoch_executed='1628922776.73' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550100/ft1_4FGL_J0120.4-2701_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550100/ft1_4FGL_J0120.4-2701_daily_bin1387.fits outfile=/scratch/kocevski/550100/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1387.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=598838401.0 tmax=599097601.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 8.52
user 2.72
sys 5.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/550100/ltcube_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.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/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits
.....................!
real 20.13
user 13.53
sys 6.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/550100/ltcube_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.fits outfile=/scratch/kocevski/550100/expmap_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.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/550100/ltcube_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.fits
.....................!
real 198.23
user 185.26
sys 12.49

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/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits scfile=/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits outfile=/scratch/kocevski/550100/cmap_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.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 5.99
user 0.39
sys 5.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits scfile=/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits outfile=/scratch/kocevski/550100/cmap_HighResolution_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.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 6.01
user 0.37
sys 5.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/550100/ft2_4FGL_J0120.4-2701_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550100/Model_4FGL_J0120.4-2701_daily_bin1387.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/550100/ft1_filtered_4FGL_J0120.4-2701_daily_bin1387.fits.....................!
real 73.05
user 64.37
sys 8.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13241E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2403       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .84378       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7553       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4219       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3117       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4400       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .61628       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=   8600.959     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1804 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.675        4.8593       -.59159E-06    .18208E-03
   2  Prefactor     .10003E-03    236.92       -.27463E-03** at limit **
   3  norm          5.2412        5.8339        .30919E-06    .62674E-03
   4  norm          .10000E-03    .49386       -.16320E-07** at limit **
   5  Prefactor     .27383        2.4248       -.78391E-06    .55566E-03
   6  Prefactor     .10000E-03    2.1923        .87512E-07** at limit **
   7  Prefactor     .10000E-03    1.2739        .10408E-07** at limit **
   8  Prefactor     .10000E-03    4.3405        .75415E-07** at limit **
   9  norm          .10000E-03    .48126       -.81789E-08** at limit **
  10  norm          2.9439        1.7034       -.22376E-07   -.32949E-04
  11  Prefactor     .10000E-03    5.9567        .12207E-06** at limit **
  12  Prefactor     .10000E-03    1.4286        .30931E-06** at limit **
  13  norm          .84326        1.1360       -.27371E-06   -.15886E-02
  14  norm          1.0334        1.5365       -.36632E-06   -.17991E-02
  15  Prefactor     1.7544        2.2920       -.21135E-06   -.48835E-03
  16  norm          3.4215        2.2516       -.17527E-06   -.32650E-03
  17  Prefactor     .10000E-03    87.731        .22598E-04** at limit **
  18  Prefactor     7.3111        11.868        .35303E-05   -.12923E-03
  19  Normalizat    1.4402        .14232        .48861E-06    .91507E-03
  20  Prefactor     .61630        .15966        .49611E-07    .53109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6746
  Prefactor  = 0.000100025
  norm       = 5.24116
  norm       = 0.0001
  Prefactor  = 0.273826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.94391
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.84326
  norm       = 1.03339
  Prefactor  = 1.7544
  norm       = 3.42148
  Prefactor  = 0.000100001
  Prefactor  = 7.31106
  Normalizat = 1.44017
  Prefactor  = 0.616298
 **********
 **   18 **HESSE 
 **********

 FCN=   8600.959     FROM HESSE     STATUS=OK           297 CALLS     2101 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.675        4.8598        .11724E-03   -1.5024    
   2  Prefactor     .10003E-03    236.59        .20566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2412        5.8351        .17559E-03   -1.5250    
   4  norm          .10000E-03    .49506        .63644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27383        21.239        .27155E-02   -1.5603    
   6  Prefactor     .10000E-03    2.1942        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3243        .20428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .48433        .62759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9439        1.7009        .89146E-04   -1.5365    
  11  Prefactor     .10000E-03    6.0638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.388        .20755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .84326        1.1108        .10890E-03   -1.5524    
  14  norm          1.0334        1.3447        .13038E-02   -1.5505    
  15  Prefactor     1.7544        2.2761        .15487E-03   -1.5443    
  16  norm          3.4215        2.2399        .10736E-03   -1.5338    
  17  Prefactor     .10000E-03    88.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3111        11.847        .14833E-03   -1.5167    
  19  Normalizat    1.4402        .16422        .19524E-03   -.79474    
  20  Prefactor     .61630        .18549        .32981E-03   -1.0690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93708e-09
Minuit parameter uncertainties:
  1  4.85994
  2  0.00488389
  3  5.8357
  4  2.01098e-07
  5  4.82403
  6  1.86279e-06
  7  1.93138e-06
  8  5.13412e-06
  9  5.01363e-07
  10  1.70089
  11  1.94602e-06
  12  0.000464928
  13  1.11083
  14  1.34469
  15  2.27616
  16  2.23998
  17  0.000549132
  18  11.8506
  19  0.164281
  20  0.185671
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.944e+00  1.701e+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.163e-01  1.857e-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.440e+00  1.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.43e-05

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) = 8600.95681917
delta logL = 0.00204294903415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8600.95667722
delta logL = 0.00218489890904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9718       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61589       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=   8600.957     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9718        51.448        .58882E-02    .44900E-03
   2  alpha         1.7917        3.1287        .30683        .26862E-04
   3  Normalizat    1.4407        .11032        .44163E-01   -.34244E-05
   4  Prefactor     .61589        .12830        .74522E-01    .40070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97181
  alpha      = 1.79165
  Normalizat = 1.44073
  Prefactor  = 0.615889
 **********
 **   18 **HESSE 
 **********

 FCN=   8600.957     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9718        1.7724        .89635E-04   -1.5363    
   2  alpha         1.7917        .37091        .12166E-01   -.28727    
   3  Normalizat    1.4407        .15978        .19521E-03   -.79458    
   4  Prefactor     .61589        .18531        .32991E-03   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10771e-11
Minuit parameter uncertainties:
  1  1.77246
  2  0.372403
  3  0.159841
  4  0.185494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550100': 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) = 8600.95667722
delta logL = 0.00218489899635

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.972e+00  1.772e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.792e+00  3.724e-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:  6.159e-01  1.855e-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.441e+00  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.79 +/- 0.37
Photon Flux (Free Index): 2.50e-08 +/- 1.61e-08
Energy Flux (Free Index): 2.58e-05 +/- 2.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/550100/cmap_HighResolution_598838401_599097601_4FGL_J0120.4-2701_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='2.58e-05', photon_flux_error='1.47e-08', dlogl='2.18e-03', energy_flux='2.48e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-08-13 23:44:41.352807', photon_index_error2='0.37', photon_index2='1.79', ts='7.20', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.44', time_epoch_completed='1628923481.35', return_code='0', job_id='550100', GAL2='0.62', EG2='1.44', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='1.61e-08', ts2='7.19', photon_index='1.82' WHERE bin_id='1387' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:44:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 550100: <4FGL_J0120.4-2701_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1387> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 23:30:23 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:30:32 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:30:32 2021
Terminated at Fri Aug 13 23:44:42 2021
Results reported at Fri Aug 13 23:44:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1387 20.1227 -27.0229 598838401 599097601 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 :                                   779.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             278.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            859 sec.

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

