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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1182
RA = 20.1227, Dec = -27.0229
tmin = 545702401, tmax = 545961601
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='549029', job_status='RUN', time_executed='2021-08-13 23:28:25.589201', time_epoch_executed='1628922505.59' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549029/ft1_4FGL_J0120.4-2701_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549029/ft1_4FGL_J0120.4-2701_daily_bin1182.fits outfile=/scratch/kocevski/549029/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1182.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=545702401.0 tmax=545961601.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.90
user 3.79
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/549029/ltcube_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.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/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits
.....................!
real 13.17
user 11.75
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/549029/ltcube_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.fits outfile=/scratch/kocevski/549029/expmap_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.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/549029/ltcube_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.fits
.....................!
real 192.89
user 186.65
sys 5.90

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/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits scfile=/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits outfile=/scratch/kocevski/549029/cmap_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.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.43
user 0.39
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits scfile=/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits outfile=/scratch/kocevski/549029/cmap_HighResolution_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.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.43
user 0.35
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/549029/ft2_4FGL_J0120.4-2701_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549029/Model_4FGL_J0120.4-2701_daily_bin1182.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/549029/ft1_filtered_4FGL_J0120.4-2701_daily_bin1182.fits.....................!
real 42.37
user 39.92
sys 2.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    100.82       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17777E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .76780       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7679       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5732       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6322       1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14211E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2725       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75275       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.

 FCN=   4440.428     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     2421 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1313        7.5970        .81046E-03   -.16812E-03
   2  Prefactor     100.88        210.12        .20020E-03   -.42476E-04
   3  norm          .10000E-03    6.6031        .16723E-02** at limit **
   4  norm          .10000E-03    1.1926        .70819E-03** at limit **
   5  Prefactor     11.124        11.999        .12009E-03   -.86614E-03
   6  Prefactor     .10000E-03    28.813        .18142E-02** at limit **
   7  Prefactor     .10000E-03    55.004        .17831E-02** at limit **
   8  Prefactor     .10000E-03    9.6172        .18142E-02** at limit **
   9  norm          .76939        2.4082        .17257E-02    .38119E-03
  10  norm          .10000E-03    2.4337        .15549E-02** at limit **
  11  Prefactor     .10000E-03    11.730        .18142E-02** at limit **
  12  Prefactor     7.7674        8.8275        .14387E-03    .35479E-04
  13  norm          4.5730        2.4497        .36969E-03    .53262E-04
  14  norm          1.0800        3.2375        .18443E-03   -.27166E-03
  15  Prefactor     4.6324        4.4281        .12907E-03    .10587E-03
  16  norm          .10000E-03    1.4484        .77950E-03** at limit **
  17  Prefactor     .10000E-03    21.812        .18142E-02** at limit **
  18  Prefactor     .10000E-03    94.840        .53351E-02** at limit **
  19  Normalizat    1.2728        .25183        .21311E-03    .18402E-03
  20  Prefactor     .75256        .26303        .29994E-03    .61895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.13133
  Prefactor  = 100.878
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1244
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.76939
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.76739
  norm       = 4.57301
  norm       = 1.07995
  Prefactor  = 4.63236
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.27276
  Prefactor  = 0.752559
 **********
 **   18 **HESSE 
 **********

 FCN=   4440.428     FROM HESSE     STATUS=OK           273 CALLS     2694 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1313        7.5959        .32418E-04   -1.5213    
   2  Prefactor     100.88        210.09        .40040E-04   -1.3696    
   3  norm          .10000E-03    6.6031        .33447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1926        .14164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.124        11.996        .48035E-05   -1.5041    
   6  Prefactor     .10000E-03    28.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.629        .71325E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .76939        2.3984        .69027E-04   -1.5533    
  10  norm          .10000E-03    2.4391        .31098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7674        8.8002        .57550E-05   -1.5150    
  13  norm          4.5730        2.4497        .14788E-04   -1.5280    
  14  norm          1.0800        3.2350        .73773E-05   -1.5500    
  15  Prefactor     4.6324        4.4276        .51630E-05   -1.5277    
  16  norm          .10000E-03    1.4485        .15590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    96.502        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2728        .25179        .42622E-04   -.84383    
  20  Prefactor     .75256        .26326        .11998E-04   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42918e-09
Minuit parameter uncertainties:
  1  7.59707
  2  211.67
  3  6.81904e-05
  4  6.18294e-06
  5  11.9984
  6  0.000407723
  7  0.000879105
  8  1.00116e-05
  9  2.39866
  10  0.000136962
  11  1.80413e-05
  12  8.80168
  13  2.44973
  14  3.23555
  15  4.42795
  16  1.75249e-06
  17  0.000133797
  18  0.00107976
  19  0.25203
  20  0.263702
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  1.370e-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.526e-01  2.637e-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.273e+00  2.520e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549029/likelihoodResults_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.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) = 4440.42981282
delta logL = -0.00195493809679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4439.76270413
delta logL = 0.665153752641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22280E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82538       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=   4439.763     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      346 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22326E-01    .86354        .20261E-02    .19001E-03
   2  alpha         5.0000        4.1193        .46267    ** at limit **
   3  Normalizat    1.1728        .11154        .35592E-01   -.74151E-04
   4  Prefactor     .82543        .10992        .65021E-01   -.22881E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0223262
  alpha      = 5
  Normalizat = 1.17282
  Prefactor  = 0.825427
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.763     FROM HESSE     STATUS=OK            33 CALLS      379 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22326E-01    .22438E-01    .91496E-04   -1.5678    
   2  alpha         5.0000        3.5954        .53068E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1728        .24751        .22030E-03   -.87447    
   4  Prefactor     .82543        .26792        .28763E-03   -.98798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63009e-11
Minuit parameter uncertainties:
  1  0.0224379
  2  3.08317e-07
  3  0.247757
  4  0.268343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549029': 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) = 4439.76270191
delta logL = 0.66515597703

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.233e-02  2.244e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  3.083e-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:  8.254e-01  2.683e-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.173e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.08e-08 +/- 8.07e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.09e-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/549029/cmap_HighResolution_545702401_545961601_4FGL_J0120.4-2701_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='6.65e-01', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-08-13 23:37:42.354134', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='4.87e-08', energy_flux_error2='1.09e-05', EG='1.27', time_epoch_completed='1628923062.35', return_code='0', job_id='549029', GAL2='0.83', EG2='1.17', return_code2='0', photon_flux_error2='8.07e-08', ts2='1.45', photon_index='1.82' WHERE bin_id='1182' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:37:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 549029: <4FGL_J0120.4-2701_daily_bin1182> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1182> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:42 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:27:14 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:27:14 2021
Terminated at Fri Aug 13 23:37:43 2021
Results reported at Fri Aug 13 23:37:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1182 20.1227 -27.0229 545702401 545961601 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 :                                   565.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            721 sec.

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

