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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1236
RA = 20.1227, Dec = -27.0229
tmin = 559699201, tmax = 559958401
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='549107', job_status='RUN', time_executed='2021-08-13 23:32:41.857209', time_epoch_executed='1628922761.86' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549107

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549107/ft1_4FGL_J0120.4-2701_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549107/ft1_4FGL_J0120.4-2701_daily_bin1236.fits outfile=/scratch/kocevski/549107/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1236.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=559699201.0 tmax=559958401.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 7.81
user 3.38
sys 4.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.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/549107/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1236.fits evtable="EVENTS" outfile="/scratch/kocevski/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.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 4.60
user 0.32
sys 4.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/549107/ltcube_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.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/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits
.....................!
real 16.84
user 11.80
sys 4.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/549107/ltcube_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.fits outfile=/scratch/kocevski/549107/expmap_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.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/549107/ltcube_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.fits
.....................!
real 196.86
user 185.91
sys 10.59

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/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits outfile=/scratch/kocevski/549107/cmap_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.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 4.56
user 0.38
sys 4.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits outfile=/scratch/kocevski/549107/cmap_HighResolution_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.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 4.56
user 0.39
sys 4.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/549107/ft2_4FGL_J0120.4-2701_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549107/Model_4FGL_J0120.4-2701_daily_bin1236.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/549107/ft1_filtered_4FGL_J0120.4-2701_daily_bin1236.fits......................!
real 32.25
user 25.58
sys 6.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    109.08       1.0000         .10000E-03   10000.    
     2 'Prefactor '    134.53       1.0000         .10000E-03   10000.    
     3 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.968       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0168       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13769E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40210E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0260       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.727       1.0000         .10000E-03   10000.    
    16 'norm      '    14.638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8254       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .36628       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88704       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=   2015.625     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2100 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          109.06        21.386        .19406E-06    .87238E-04
   2  Prefactor     134.43        130.45       -.90677E-06   -.50905E-04
   3  norm          .10000E-03    6.7628       -.29632E-06** at limit **
   4  norm          .10000E-03    18.328        .17176E-05** at limit **
   5  Prefactor     26.929        17.776       -.19835E-06    .49536E-04
   6  Prefactor     .10000E-03    11.983        .54795E-06** at limit **
   7  Prefactor     .10000E-03    6.9515        .12703E-06** at limit **
   8  Prefactor     23.024        42.724        .73313E-05    .55993E-03
   9  norm          2.9950        9.8767       -.42532E-05    .49507E-03
  10  norm          .10000E-03    1.6528        .10067E-06** at limit **
  11  Prefactor     .10001E-03    128.74        .29270E-05** at limit **
  12  Prefactor     .10032E-03    14.260       -.35798E-05** at limit **
  13  norm          2.0264        1.8426       -.48920E-08    .11123E-03
  14  norm          8.8377        6.8943        .53684E-07    .30519E-03
  15  Prefactor     20.719        25.980        .29211E-06    .28847E-05
  16  norm          14.627        10.237        .41400E-07   -.26256E-05
  17  Prefactor     .10004E-03    277.71       -.99741E-05** at limit **
  18  Prefactor     5.7568        41.675       -.14951E-06   -.33215E-04
  19  Normalizat    .36625        .34460       -.52910E-06    .32268E-05
  20  Prefactor     .88706        .34973       -.23668E-05   -.60242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 109.055
  Prefactor  = 134.426
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 26.9289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0236
  norm       = 2.99498
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100323
  norm       = 2.02643
  norm       = 8.83769
  Prefactor  = 20.7188
  norm       = 14.6269
  Prefactor  = 0.00010004
  Prefactor  = 5.75682
  Normalizat = 0.366246
  Prefactor  = 0.887062
 **********
 **   18 **HESSE 
 **********

 FCN=   2015.625     FROM HESSE     STATUS=OK           289 CALLS     2389 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          109.06        21.346        .38511E-04   -1.3616    
   2  Prefactor     134.43        131.34        .17361E-03   -1.3384    
   3  norm          .10000E-03    6.7668        .11405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    19.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.929        17.715        .77173E-04   -1.4670    
   6  Prefactor     .10000E-03    12.010        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9591        .11563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.024        44.060        .83580E-04   -1.4748    
   9  norm          2.9950        9.9345        .10632E-03   -1.5362    
  10  norm          .10000E-03    1.6552        .56388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    132.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10032E-03    34.789        .21819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0264        1.8295        .53510E-04   -1.5423    
  14  norm          8.8377        6.7787        .88724E-04   -1.5113    
  15  Prefactor     20.719        25.989        .87978E-04   -1.4797    
  16  norm          14.627        10.224        .10469E-03   -1.4943    
  17  Prefactor     .10004E-03    281.28        .21449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7568        41.873        .16640E-03   -1.5228    
  19  Normalizat    .36625        .37270        .36064E-03   -1.1908    
  20  Prefactor     .88706        .38947        .26592E-03   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0488e-08
Minuit parameter uncertainties:
  1  21.3477
  2  131.626
  3  2.92981e-05
  4  0.000349133
  5  17.7186
  6  9.38999e-05
  7  1.59834e-05
  8  44.1221
  9  9.93995
  10  7.7086e-06
  11  0.00225856
  12  0.00670595
  13  1.82956
  14  6.77931
  15  26.0033
  16  10.2249
  17  0.00677391
  18  31.0825
  19  0.375256
  20  0.390696
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  7.709e-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:  8.871e-01  3.907e-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:  3.662e-01  3.753e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549107/likelihoodResults_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.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) = 2015.62692753
delta logL = -0.00200300601477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2015.62492452
delta logL = -5.06588548888e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8163       1.0000          .0000       5.0000    
     3 'Normalizat'    .36624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88707       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=   2015.625     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      193 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.809        .90712E-02** at limit **
   2  alpha         1.8164        3.0768        .43288       -.38281E-06
   3  Normalizat    .36625        .32436E-01    .81383E-01    .33114E-03
   4  Prefactor     .88707        .36710E-01    .44840E-01    .42945E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.81644
  Normalizat = 0.366246
  Prefactor  = 0.887068
 **********
 **   18 **HESSE 
 **********

 FCN=   2015.625     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      222 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    314.96        .56387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8164        3.0264        .50000       -.27695    
   3  Normalizat    .36625        .14427        .36062E-03   -1.1908    
   4  Prefactor     .88707        .16379        .26593E-03   -.96594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.79615e-08
Minuit parameter uncertainties:
  1  0.00162307
  2  1708.54
  3  0.144414
  4  0.163884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549107': 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): 102
logL (Free Index) = 2015.62492452
delta logL = -8.98353391676e-10

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  1.623e-03  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.816e+00  1.709e+03  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.871e-01  1.639e-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:  3.662e-01  1.444e-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/549107/cmap_HighResolution_559699201_559958401_4FGL_J0120.4-2701_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-05', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-08-13 23:40:30.671348', job_id='549107', GAL2='0.89', fit_tolerance='1e-08', EG2='0.37', EG='0.37', time_epoch_completed='1628923230.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-8.98e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1236' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 549107: <4FGL_J0120.4-2701_daily_bin1236> in cluster <slac> Done

Job <4FGL_J0120.4-2701_daily_bin1236> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 23:25:47 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:27:50 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:50 2021
Terminated at Fri Aug 13 23:40:32 2021
Results reported at Fri Aug 13 23:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1236 20.1227 -27.0229 559699201 559958401 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             206.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            885 sec.

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

