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


Performing analysis on: 4FGL_J0120.4-2701_daily_bin1463
RA = 20.1227, Dec = -27.0229
tmin = 618537601, tmax = 618796801
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='550216', job_status='RUN', time_executed='2021-08-13 23:33:32.790496', time_epoch_executed='1628922812.79' WHERE source_name='4FGL J0120.4-2701' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550216/ft1_4FGL_J0120.4-2701_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550216/ft1_4FGL_J0120.4-2701_daily_bin1463.fits outfile=/scratch/kocevski/550216/ft1_filteredMKT_4FGL_J0120.4-2701_daily_bin1463.fits ra=20.1227 dec=-27.0229 rad=12.0 tmin=618537601.0 tmax=618796801.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 6.60
user 3.48
sys 3.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/550216/ltcube_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.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/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits
.....................!
real 15.68
user 12.03
sys 3.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/550216/ltcube_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.fits outfile=/scratch/kocevski/550216/expmap_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.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/550216/ltcube_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.fits
.....................!
real 194.91
user 185.18
sys 9.04

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/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits scfile=/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits outfile=/scratch/kocevski/550216/cmap_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.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 3.35
user 0.36
sys 2.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits scfile=/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits outfile=/scratch/kocevski/550216/cmap_HighResolution_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.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 3.35
user 0.40
sys 2.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/550216/ft2_4FGL_J0120.4-2701_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/550216/Model_4FGL_J0120.4-2701_daily_bin1463.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/550216/ft1_filtered_4FGL_J0120.4-2701_daily_bin1463.fits.....................!
real 43.89
user 38.80
sys 4.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62752E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24865E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79589       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0231       1.0000         .10000E-03   10000.    
    16 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.165       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7462       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5577       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .46367       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=   4170.646     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     1587 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.204        8.5885        .19341E-05    .86467E-05
   2  Prefactor     .10000E-03    76.719        .14972E-04** at limit **
   3  norm          .10001E-03    8.6609       -.11126E-05** at limit **
   4  norm          3.7787        3.3291       -.60882E-06    .10125E-04
   5  Prefactor     .10000E-03    2.5996       -.66499E-07** at limit **
   6  Prefactor     24.424        17.495        .11732E-05    .10311E-04
   7  Prefactor     10.024        5.4998       -.17906E-05   -.44130E-04
   8  Prefactor     .10002E-03    6.7698        .50349E-06** at limit **
   9  norm          .10000E-03    1.1608       -.88613E-07** at limit **
  10  norm          .10000E-03    .94425       -.22813E-07** at limit **
  11  Prefactor     .10000E-03    8.4337       -.37129E-06** at limit **
  12  Prefactor     .10000E-03    4.3567       -.22582E-06** at limit **
  13  norm          .79544        1.3197       -.19624E-06   -.74533E-03
  14  norm          .10000E-03    1.3128        .57184E-07** at limit **
  15  Prefactor     2.0222        2.9288       -.74678E-07   -.10464E-03
  16  norm          .10000E-03    3.8080        .52051E-07** at limit **
  17  Prefactor     21.130        28.614       -.27185E-04   -.10068E-04
  18  Prefactor     8.6670        9.7451       -.41111E-05    .23253E-04
  19  Normalizat    1.5579        .22055        .14903E-05   -.33591E-04
  20  Prefactor     .46379        .24217       -.14764E-06    .33477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2037
  Prefactor  = 0.0001
  norm       = 0.000100013
  norm       = 3.7787
  Prefactor  = 0.0001
  Prefactor  = 24.4244
  Prefactor  = 10.0238
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.79544
  norm       = 0.0001
  Prefactor  = 2.02222
  norm       = 0.0001
  Prefactor  = 21.1302
  Prefactor  = 8.66698
  Normalizat = 1.55785
  Prefactor  = 0.463793
 **********
 **   18 **HESSE 
 **********

 FCN=   4170.646     FROM HESSE     STATUS=OK           301 CALLS     1888 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.204        8.5855        .99266E-04   -1.4903    
   2  Prefactor     .10000E-03    76.759        .21038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    35.407        .36911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7787        3.3287        .10724E-03   -1.5319    
   5  Prefactor     .10000E-03    2.6041        .10167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.424        17.503        .80982E-04   -1.4719    
   7  Prefactor     10.024        5.5060        .10750E-03   -1.5075    
   8  Prefactor     .10002E-03    28.215        .31503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7810        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .94912        .61264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5477        .26293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .79544        1.1715        .91858E-03   -1.5530    
  14  norm          .10000E-03    1.3455        .14439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0222        2.9111        .12931E-03   -1.5424    
  16  norm          .10000E-03    3.9724        .24573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.130        28.636        .43531E-03   -1.4788    
  18  Prefactor     8.6670        9.7404        .13554E-03   -1.5119    
  19  Normalizat    1.5579        .25014        .20145E-03   -.76165    
  20  Prefactor     .46379        .27121        .38267E-03   -1.1367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10179e-09
Minuit parameter uncertainties:
  1  8.58618
  2  5.89774e-05
  3  0.00137331
  4  3.32883
  5  6.90947e-06
  6  17.5062
  7  5.50626
  8  0.00137455
  9  1.86572e-05
  10  2.4051e-06
  11  1.05047e-05
  12  1.11284e-05
  13  1.17155
  14  3.52571e-06
  15  2.91131
  16  1.74001e-05
  17  28.655
  18  9.74215
  19  0.250336
  20  0.27197
Done.

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

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  1.000e-04  2.405e-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:  4.638e-01  2.720e-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.558e+00  2.503e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550216/likelihoodResults_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.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) = 4170.6504954
delta logL = -0.00400984068528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4170.63733418
delta logL = 0.00915137093398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49938E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47095       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4170.637     FROM MIGRAD    STATUS=FAILED        95 CALLS      338 TOTAL
                     EDM=   .42E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49930E-02    8.5350        .22747E-03    .25011E-01
   2  alpha         4.6681        4.8259        .50000        .54745E-03
   3  Normalizat    1.5476        .76369E-01    .20199E-03    .47842E-05
   4  Prefactor     .47098        .82792E-01    .37991E-03   -.11371E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4170.637     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      436 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49930E-02    8.5350        .45015E-04    .25011E-01
   2  alpha         4.6681        4.8259        .19203E-01    .54745E-03
   3  Normalizat    1.5476        .76369E-01    .14877E-03    .47842E-05
   4  Prefactor     .47098        .82792E-01    .67573E-04   -.11371E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4170.637     FROM MIGRAD    STATUS=FAILED        81 CALLS      517 TOTAL
                     EDM=   .68E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49634E-02    10.191        .18198E-05    .24307E-04
   2  alpha         4.6710        2.7203        .50000        .58806E-03
   3  Normalizat    1.5476        .91112E-01    .16159E-05   -.43621E-04
   4  Prefactor     .47098        .99696E-01    .30393E-05   -.29176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00496339
  alpha      = 4.67098
  Normalizat = 1.54756
  Prefactor  = 0.470981
 **********
 **   18 **HESSE 
 **********

 FCN=   4170.637     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      544 TOTAL
                     EDM=   .68E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49634E-02    10.192        .74835E-07   -1.5694    
   2  alpha         4.6710        2.7629        .50000        1.0519    
   3  Normalizat    1.5476        .91493E-01    .32318E-06   -.76451    
   4  Prefactor     .47098        .99771E-01    .60786E-06   -1.1333    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00067906
Minuit parameter uncertainties:
  1  0.445344
  2  54.9385
  3  0.0915027
  4  0.0998077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550216': 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): 1
logL (Free Index) = 4170.6373341
delta logL = 0.00915145733052

Extracting fit parameters...

4FGL J0120.4-2701
   Spectrum: LogParabola
263         norm:  4.963e-03  4.453e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  4.671e+00  5.494e+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:  4.710e-01  9.981e-02  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.548e+00  9.150e-02  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/550216/cmap_HighResolution_618537601_618796801_4FGL_J0120.4-2701_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-08-13 23:42:33.531309', job_id='550216', GAL2='0.47', fit_tolerance='1e-08', EG2='1.55', EG='1.56', time_epoch_completed='1628923353.53', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='9.15e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1463' AND source_name='4FGL J0120.4-2701' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 550216: <4FGL_J0120.4-2701_daily_bin1463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0120.4-2701_daily_bin1463 20.1227 -27.0229 618537601 618796801 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            722 sec.

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

