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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1411
RA = 20.1227, Dec = -27.0229
tmin = 605059201, tmax = 605318401
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='550135', job_status='RUN', time_executed='2021-08-13 23:31:34.942784', time_epoch_executed='1628922694.94' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550135/ft1_4FGL_J0120.4-2701_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550135/ft1_4FGL_J0120.4-2701_daily_bin1411.fits outfile=/scratch/kocevski/550135/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1411.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=605059201.0 tmax=605318401.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.30
user 5.12
sys 2.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.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/550135/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.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 2.73
user 0.35
sys 2.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/550135/ltcube_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.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/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits
.....................!
real 18.65
user 15.75
sys 2.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/550135/ltcube_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.fits outfile=/scratch/kocevski/550135/expmap_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.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/550135/ltcube_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.fits
.....................!
real 193.57
user 185.36
sys 7.85

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/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits outfile=/scratch/kocevski/550135/cmap_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.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 2.59
user 0.39
sys 2.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits outfile=/scratch/kocevski/550135/cmap_HighResolution_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.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 2.55
user 0.40
sys 2.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/550135/ft2_4FGL_J0120.4-2701_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550135/Model_4FGL_J0120.4-2701_daily_bin1411.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/550135/ft1_filtered_4FGL_J0120.4-2701_daily_bin1411.fits......................!
real 34.25
user 30.07
sys 4.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    41.217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22381E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12813E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44629E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2258       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19419E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5309       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.083       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73776E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .99207       1.0000         .10000E-03   10000.    
    14 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99035       1.0000         .10000E-03   10000.    
    16 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76714E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62591       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5336       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=   3009.639     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1579 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          41.048        13.395        .15201E-06    .96799E-05
   2  Prefactor     .10000E-03    54.031       -.41111E-05** at limit **
   3  norm          .10000E-03    7.5940       -.16024E-06** at limit **
   4  norm          1.3120        4.1706        .67362E-07    .29864E-05
   5  Prefactor     10.288        12.236       -.36301E-06    .11294E-04
   6  Prefactor     .10000E-03    23.634        .75926E-06** at limit **
   7  Prefactor     3.2277        7.0345        .38535E-05    .21964E-03
   8  Prefactor     .10000E-03    17.002       -.14847E-06** at limit **
   9  norm          3.5320        3.5510        .32189E-06    .24747E-03
  10  norm          2.3270        2.7385        .25659E-06    .89004E-04
  11  Prefactor     27.161        22.447       -.33768E-05   -.96526E-05
  12  Prefactor     .10001E-03    6.0285       -.27281E-05** at limit **
  13  norm          .99217        1.7372       -.16888E-07   -.81536E-04
  14  norm          .10000E-03    1.3162        .77101E-07** at limit **
  15  Prefactor     1.0086        8.0455        .80968E-06   -.57006E-04
  16  norm          .10000E-03    3.0622       -.14450E-07** at limit **
  17  Prefactor     .10000E-03    28.215        .27066E-05** at limit **
  18  Prefactor     .10000E-03    10.489       -.36651E-06** at limit **
  19  Normalizat    .62561        .26578       -.32368E-05    .47123E-04
  20  Prefactor     1.5338        .29536        .13490E-05    .27942E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 41.0485
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.31205
  Prefactor  = 10.288
  Prefactor  = 0.0001
  Prefactor  = 3.22774
  Prefactor  = 0.0001
  norm       = 3.53204
  norm       = 2.32703
  Prefactor  = 27.1612
  Prefactor  = 0.000100006
  norm       = 0.992172
  norm       = 0.0001
  Prefactor  = 1.00856
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.62561
  Prefactor  = 1.53375
 **********
 **   18 **HESSE 
 **********

 FCN=   3009.639     FROM HESSE     STATUS=OK           297 CALLS     1876 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          41.048        13.389        .62438E-04   -1.4426    
   2  Prefactor     .10000E-03    54.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.5973        .14766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3120        4.1217        .19178E-03   -1.5479    
   5  Prefactor     10.288        12.208        .12523E-03   -1.5066    
   6  Prefactor     .10000E-03    23.885        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2277        7.2462        .10016E-02   -1.5349    
   8  Prefactor     .10000E-03    17.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5320        3.5279        .49372E-03   -1.5332    
  10  norm          2.3270        2.7310        .95007E-04   -1.5403    
  11  Prefactor     27.161        22.481        .76980E-04   -1.4665    
  12  Prefactor     .10001E-03    12.057        .22979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .99217        1.5937        .91891E-03   -1.5509    
  14  norm          .10000E-03    1.3247        .61453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0086        13.066        .27585E-02   -1.5507    
  16  norm          .10000E-03    3.0934        .93682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.213        .20927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.513        .17355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .62561        .31162        .29983E-03   -1.0691    
  20  Prefactor     1.5338        .35757        .23880E-03   -.76599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18441e-08
Minuit parameter uncertainties:
  1  13.3897
  2  3.00896e-05
  3  2.62925e-07
  4  4.12262
  5  12.2113
  6  0.000156538
  7  7.24819
  8  5.62596e-05
  9  3.52815
  10  2.73113
  11  22.488
  12  0.000535884
  13  1.59373
  14  7.60244e-06
  15  7.26192
  16  6.0203e-06
  17  1.18947e-05
  18  7.29436e-06
  19  0.3125
  20  0.358159
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.327e+00  2.731e+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:  1.534e+00  3.582e-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:  6.256e-01  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 20.123 -27.023
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 2.30e-05

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

Saving results to:
/scratch/kocevski/550135/likelihoodResults_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.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) = 3009.6358247
delta logL = 0.0029629054643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3009.63573114
delta logL = 0.00305646654215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2977       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8950       1.0000          .0000       5.0000    
     3 'Normalizat'    .62359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5352       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=   3009.636     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2977        2.7339        .93947E-04   -.59701E-03
   2  alpha         1.8950        1.0036        .16756E-01   -.29454E-04
   3  Normalizat    .62359        .29536        .30027E-03    .45869E-04
   4  Prefactor     1.5352        .35290        .23870E-03    .64059E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29774
  alpha      = 1.89498
  Normalizat = 0.623594
  Prefactor  = 1.53519
 **********
 **   18 **HESSE 
 **********

 FCN=   3009.636     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2977        2.7153        .37579E-05   -1.5405    
   2  alpha         1.8950        .99700        .67022E-03   -.24444    
   3  Normalizat    .62359        .29560        .12011E-04   -1.0699    
   4  Prefactor     1.5352        .35325        .95481E-05   -.76559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54498e-10
Minuit parameter uncertainties:
  1  2.71547
  2  1.02745
  3  0.296352
  4  0.353818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550135': 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) = 3009.63573114
delta logL = 0.00305646804509

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  2.298e+00  2.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.895e+00  1.027e+00  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:  1.535e+00  3.538e-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:  6.236e-01  2.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 20.123 -27.023
Photon Index (Free Index): 1.89 +/- 1.03
Photon Flux (Free Index): 2.19e-08 +/- 3.46e-08
Energy Flux (Free Index): 1.77e-05 +/- 3.05e-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/550135/cmap_HighResolution_605059201_605318401_4FGL_J0120.4-2701_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-05', comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='1.77e-05', photon_flux_error='2.37e-08', dlogl='3.06e-03', energy_flux='1.96e-05', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-08-13 23:39:45.503221', photon_index_error2='1.03', photon_index2='1.89', ts='1.60', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', photon_flux_upper_limit='9.16e-08', energy_flux_error2='3.05e-05', EG='0.63', time_epoch_completed='1628923185.5', return_code='0', job_id='550135', GAL2='1.54', EG2='0.62', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='3.46e-08', ts2='1.60', photon_index='1.82' WHERE bin_id='1411' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:39:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 550135: <4FGL_J0120.4-2701_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1411 20.1227 -27.0229 605059201 605318401 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 :                                   513.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            561 sec.

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

