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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1190
RA = 186.392, Dec = -28.8625
tmin = 547776001, tmax = 548035201
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='626995', job_status='RUN', time_executed='2021-09-05 14:42:41.919079', time_epoch_executed='1630878161.92' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626995/ft1_4FGL_J1225.5-2851_daily_bin1190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626995/ft1_4FGL_J1225.5-2851_daily_bin1190.fits outfile=/scratch/kocevski/626995/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1190.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=547776001.0 tmax=548035201.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.61
user 3.38
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.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/626995/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1190.fits evtable="EVENTS" outfile="/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.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.61
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits" evtable="EVENTS" scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits sctable="SC_DATA" outfile=/scratch/kocevski/626995/ltcube_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.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/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits
.....................!
real 11.78
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits evtable="EVENTS" scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits sctable="SC_DATA" expcube=/scratch/kocevski/626995/ltcube_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits outfile=/scratch/kocevski/626995/expmap_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.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/626995/ltcube_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits
.....................!
real 190.81
user 185.87
sys 4.27

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1225.5-2851 @ 186.392 -28.8625

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits outfile=/scratch/kocevski/626995/cmap_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.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=186.392 yref=-28.8625 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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits outfile=/scratch/kocevski/626995/cmap_HighResolution_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.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=186.392 yref=-28.8625 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits evtable="EVENTS" scfile=/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626995/Model_4FGL_J1225.5-2851_daily_bin1190.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits.....................!
real 96.06
user 94.53
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits', '/scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits', expMap='/scratch/kocevski/626995/expmap_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits', expCube='/scratch/kocevski/626995/ltcube_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/626995/Model_4FGL_J1225.5-2851_daily_bin1190.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.5-2851'

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.708e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/626995/ft1_filtered_4FGL_J1225.5-2851_daily_bin1190.fits
Spacecraft file(s): /scratch/kocevski/626995/ft2_4FGL_J1225.5-2851_daily_bin1190.fits
Exposure map: /scratch/kocevski/626995/expmap_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits
Exposure cube: /scratch/kocevski/626995/ltcube_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/626995/Model_4FGL_J1225.5-2851_daily_bin1190.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) = 5577.60978279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.170       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.619       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11303E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14905E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.601       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.740       1.0000         .10000E-03   10000.    
    20 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83686       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95204       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5577.601     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2360 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34136        8.9851       -.11159E-05   -.21523E-03
   2  Prefactor     .10000E-03    12.036       -.76427E-07** at limit **
   3  norm          11.184        29.164       -.64404E-04    .10000E-04
   4  Prefactor     .10001E-03    21.286        .21286E-05** at limit **
   5  norm          .10000E-03    2.4739       -.46497E-06** at limit **
   6  Prefactor     17.084        12.675        .50644E-05    .15815E-03
   7  Prefactor     88.740        79.999        .28732E-04    .25270E-05
   8  Prefactor     .10000E-03    7.4556        .25602E-07** at limit **
   9  Prefactor     33.089        69.368       -.20106E-04    .38572E-04
  10  Prefactor     13.083        24.066       -.19916E-05   -.20030E-04
  11  Prefactor     .10000E-03    27.694        .11667E-05** at limit **
  12  Prefactor     .10000E-03    21.209       -.47357E-05** at limit **
  13  Prefactor     .10000E-03    27.144       -.15034E-06** at limit **
  14  norm          3.3682        1.5742       -.59708E-07   -.10290E-03
  15  Prefactor     .10000E-03    42.688       -.23090E-05** at limit **
  16  norm          .10000E-03    2.4793       -.83646E-08** at limit **
  17  Prefactor     .10000E-03    2.4619       -.10791E-07** at limit **
  18  norm          15.599        8.2891       -.12617E-05   -.81969E-05
  19  Prefactor     34.736        18.460        .57777E-05    .16736E-04
  20  norm          .10000E-03    3.5644       -.49759E-08** at limit **
  21  Normalizat    .83674        .29867       -.29892E-05    .17011E-03
  22  Prefactor     .95211        .12459        .19162E-05   -.64742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.341355
  Prefactor  = 0.0001
  norm       = 11.184
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 17.0844
  Prefactor  = 88.7399
  Prefactor  = 0.0001
  Prefactor  = 33.0891
  Prefactor  = 13.0832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5991
  Prefactor  = 34.7361
  norm       = 0.0001
  Normalizat = 0.836743
  Prefactor  = 0.952112
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.601     FROM HESSE     STATUS=OK           342 CALLS     2702 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34136        59.571        .39780E-02   -1.5591    
   2  Prefactor     .10000E-03    12.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.184        29.212        .11987E-03   -1.5039    
   4  Prefactor     .10001E-03    21.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4927        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.084        12.673        .96916E-04   -1.4881    
   7  Prefactor     88.740        79.856        .21341E-03   -1.3821    
   8  Prefactor     .10000E-03    7.4752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.089        69.425        .69451E-04   -1.4557    
  10  Prefactor     13.083        24.043        .11068E-03   -1.4984    
  11  Prefactor     .10000E-03    27.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3682        1.5720        .60389E-04   -1.5341    
  15  Prefactor     .10000E-03    42.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4974        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4742        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.599        8.2921        .10140E-03   -1.4918    
  19  Prefactor     34.736        18.481        .67990E-04   -1.4529    
  20  norm          .10000E-03    3.5738        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83674        .35428        .41149E-03   -.98720    
  22  Prefactor     .95211        .14893        .17111E-03   -.94343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1738e-09
Minuit parameter uncertainties:
  1  9.02662
  2  1.4338e-05
  3  29.2494
  4  0.000766927
  5  7.29003e-05
  6  12.6751
  7  79.953
  8  8.59547e-06
  9  69.5948
  10  24.0605
  11  0.000233113
  12  8.14723e-05
  13  8.35796e-05
  14  1.57203
  15  1.35824e-05
  16  1.7159e-06
  17  1.52116e-06
  18  8.29272
  19  18.4845
  20  1.01722e-06
  21  0.355268
  22  0.148993
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  8.147e-05  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.521e-01  1.490e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.367e-01  3.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/626995/likelihoodResults_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.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) = 5577.6015965
delta logL = -0.000224176027587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5577.60137478
delta logL = -2.45611772698e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1516       1.0000          .0000       10.000    
     3 'Normalizat'    .83674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5577.601     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    149.95        .90712E-02** at limit **
   2  Index         3.1219        8.0531        .50000        .26351E-04
   3  Normalizat    .83674        .26470E-01    .92888E-01    .25576E-04
   4  Prefactor     .95211        .11752E-01    .45666E-01   -.29846E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.12195
  Normalizat = 0.836735
  Prefactor  = 0.952115
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.601     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1219        6.5182        .50000       -.38506    
   3  Normalizat    .83674        .31944        .41149E-03   -.98720    
   4  Prefactor     .95211        .14246        .17111E-03   -.94343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32778e-10
Minuit parameter uncertainties:
  1  0.000115889
  2  4.63619
  3  0.320158
  4  0.142516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626995': 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) = 5577.6013746
delta logL = -2.2677340894e-06

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.159e-04  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.122e+00  4.636e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.521e-01  1.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  8.367e-01  3.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.392 -28.863

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/626995/cmap_HighResolution_547776001_548035201_4FGL_J1225.5-2851_daily_bin1190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-05 14:53:41.827354', job_id='626995', GAL2='0.95', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630878821.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1190' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:53:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 626995: <4FGL_J1225.5-2851_daily_bin1190> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1190> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:31 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 14:40:32 2021
Terminated at Sun Sep  5 14:53:42 2021
Results reported at Sun Sep  5 14:53:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1190 186.392 -28.8625 547776001 548035201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.5-2851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            791 sec.

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

