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


Performing analysis on: 4FGL_J2055.0-5218_daily_bin1099
RA = 313.764, Dec = -52.3099
tmin = 524188801, tmax = 524448001
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='204192', job_status='RUN', time_executed='2021-09-25 21:14:19.138711', time_epoch_executed='1632629659.14' WHERE source_name='4FGL J2055.0-5218' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204192/ft1_4FGL_J2055.0-5218_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204192/ft1_4FGL_J2055.0-5218_daily_bin1099.fits outfile=/scratch/kocevski/204192/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1099.fits ra=313.764 dec=-52.3099 rad=12.0 tmin=524188801.0 tmax=524448001.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 3.49
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.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/204192/ft1_filteredMKT_4FGL_J2055.0-5218_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.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 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/204192/ltcube_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.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/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits
.....................!
real 13.56
user 13.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/204192/ltcube_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits outfile=/scratch/kocevski/204192/expmap_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.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/204192/ltcube_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits
.....................!
real 191.87
user 185.57
sys 5.73

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2055.0-5218 @ 313.764 -52.3099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits outfile=/scratch/kocevski/204192/cmap_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.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=313.764 yref=-52.3099 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 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits outfile=/scratch/kocevski/204192/cmap_HighResolution_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.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=313.764 yref=-52.3099 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 0.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204192/Model_4FGL_J2055.0-5218_daily_bin1099.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/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits.....................!
real 58.48
user 57.00
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits', '/scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits', expMap='/scratch/kocevski/204192/expmap_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits', expCube='/scratch/kocevski/204192/ltcube_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204192/Model_4FGL_J2055.0-5218_daily_bin1099.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2055.0-5218'

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.666e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.460e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/204192/ft1_filtered_4FGL_J2055.0-5218_daily_bin1099.fits
Spacecraft file(s): /scratch/kocevski/204192/ft2_4FGL_J2055.0-5218_daily_bin1099.fits
Exposure map: /scratch/kocevski/204192/expmap_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits
Exposure cube: /scratch/kocevski/204192/ltcube_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204192/Model_4FGL_J2055.0-5218_daily_bin1099.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) = 7586.04029659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4735       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0624       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3746       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5399       1.0000         .10000E-03   10000.    
    10 'norm      '    .84166       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15652E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2723       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93068       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7585.969     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2063 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4730        13.122        .25293E-07   -.18160E-04
   2  norm          2.0623        1.4627        .15191E-07   -.17160E-04
   3  norm          5.3731        4.0284       -.24558E-07   -.50791E-04
   4  norm          .10000E-03    7.4784       -.22152E-06** at limit **
   5  Prefactor     .10000E-03    13.209       -.35657E-06** at limit **
   6  Prefactor     .10000E-03    34.972       -.72541E-05** at limit **
   7  Prefactor     1.4485        1.9569        .10189E-06   -.17730E-03
   8  Prefactor     .10000E-03    5.6895        .53826E-07** at limit **
   9  norm          2.5394        1.7771        .16390E-06   -.30596E-02
  10  norm          .84089        1.8722        .26436E-06   -.18596E-03
  11  Prefactor     .10000E-03    30.616        .10776E-04** at limit **
  12  Prefactor     .10000E-03    86.748       -.81812E-05** at limit **
  13  Prefactor     .65999        3.5418       -.16811E-06    .36934E-05
  14  Prefactor     .10000E-03    32.797       -.18065E-05** at limit **
  15  Prefactor     .10000E-03    49.996        .17897E-04** at limit **
  16  Prefactor     .26859        1.7462       -.13860E-06   -.50103E-04
  17  Prefactor     .10000E-03    8.5451        .54546E-07** at limit **
  18  Prefactor     2.2726        2.7162        .63713E-06   -.27694E-02
  19  Prefactor     1.4991        3.6367        .15432E-06   -.27477E-03
  20  Prefactor     .10000E-03    36.578       -.90719E-05** at limit **
  21  Normalizat    .93093        .20862       -.21632E-07   -.87024E-04
  22  Prefactor     1.1010        .11615       -.12230E-06   -.95327E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.473
  norm       = 2.06228
  norm       = 5.37308
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.44852
  Prefactor  = 0.0001
  norm       = 2.53941
  norm       = 0.840886
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.659989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.268591
  Prefactor  = 0.0001
  Prefactor  = 2.27259
  Prefactor  = 1.49914
  Prefactor  = 0.000100001
  Normalizat = 0.930931
  Prefactor  = 1.10099
 **********
 **   18 **HESSE 
 **********

 FCN=   7585.969     FROM HESSE     STATUS=OK           348 CALLS     2411 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4730        13.104        .19037E-03   -1.5285    
   2  norm          2.0623        1.4608        .86219E-04   -1.5421    
   3  norm          5.3731        4.0233        .14522E-03   -1.5244    
   4  norm          .10000E-03    7.4814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4485        1.9322        .13642E-03   -1.5467    
   8  Prefactor     .10000E-03    5.6983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5394        1.9104        .49831E-03   -1.5389    
  10  norm          .84089        1.7417        .17257E-02   -1.5525    
  11  Prefactor     .10000E-03    30.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    87.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .65999        15.106        .30998E-02   -1.5545    
  14  Prefactor     .10000E-03    33.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .26859        8.1704        .21828E-02   -1.5604    
  17  Prefactor     .10000E-03    8.5473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2726        4.3776        .12324E-02   -1.5406    
  19  Prefactor     1.4991        3.6382        .24382E-03   -1.5463    
  20  Prefactor     .10000E-03    36.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93093        .24405        .33076E-03   -.95382    
  22  Prefactor     1.1010        .13710        .17716E-03   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18035e-08
Minuit parameter uncertainties:
  1  13.1125
  2  1.46081
  3  4.02351
  4  3.75179e-06
  5  7.7159e-06
  6  0.000279317
  7  1.93226
  8  4.26198e-07
  9  1.91045
  10  1.74178
  11  0.000366975
  12  0.000509213
  13  6.31622
  14  5.12301e-05
  15  0.00046108
  16  2.96266
  17  1.19459e-06
  18  4.37818
  19  3.63873
  20  0.000360663
  21  0.244344
  22  0.137141
Done.

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

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.262e-07  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.460e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.101e+00  1.371e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.309e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 313.764 -52.310
Photon Flux Upper Limit: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204192/likelihoodResults_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.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) = 7585.96984088
delta logL = -0.000835135120724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7585.96900562
delta logL = 1.1797692423e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4417       1.0000          .0000       10.000    
     3 'Normalizat'    .93093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   7585.969     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10271E-03    5.1011        .18142E-01** at limit **
   2  Index         2.3404        5.7198        .50000        .21909E-04
   3  Normalizat    .93093        .45658E-02    .33076E-03   -.43240E-04
   4  Prefactor     1.1010        .26534E-02    .17716E-03    .67164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102705
  Index      = 2.34038
  Normalizat = 0.93093
  Prefactor  = 1.10099
 **********
 **   18 **HESSE 
 **********

 FCN=   7585.969     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10271E-03    76.591        .21106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3404        6.2289        .50000       -.56087    
   3  Normalizat    .93093        .17881E-01    .13230E-04   -.95382    
   4  Prefactor     1.1010        .10392E-01    .35431E-04   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11129e-08
Minuit parameter uncertainties:
  1  0.0288246
  2  450.043
  3  0.0178816
  4  0.0103919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204192': 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) = 7585.96900527
delta logL = 4.73425643577e-07

Extracting fit parameters...

4FGL J2055.0-5218
   Spectrum: PowerLaw
313    Prefactor:  1.027e-04  2.882e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.340e+00  4.500e+02  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.023e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.101e+00  1.039e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.309e-01  1.788e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 313.764 -52.310

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/204192/cmap_HighResolution_524188801_524448001_4FGL_J2055.0-5218_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-25 21:25:55.915451', job_id='204192', GAL2='1.10', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632630355.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1099' AND source_name='4FGL J2055.0-5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 204192: <4FGL_J2055.0-5218_daily_bin1099> in cluster <slac> Done

Job <4FGL_J2055.0-5218_daily_bin1099> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 21:10:31 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:11:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 21:11:18 2021
Terminated at Sat Sep 25 21:25:56 2021
Results reported at Sat Sep 25 21:25:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2055.0-5218_daily_bin1099 313.764 -52.3099 524188801 524448001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2055.0-5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            925 sec.

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

