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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1560
RA = 186.392, Dec = -28.8625
tmin = 643680001, tmax = 643939201
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='627589', job_status='RUN', time_executed='2021-09-05 14:44:43.941918', time_epoch_executed='1630878283.94' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627589/ft1_4FGL_J1225.5-2851_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627589/ft1_4FGL_J1225.5-2851_daily_bin1560.fits outfile=/scratch/kocevski/627589/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1560.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=643680001.0 tmax=643939201.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.57
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.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/627589/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.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.55
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/627589/ltcube_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.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/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits
.....................!
real 11.65
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/627589/ltcube_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits outfile=/scratch/kocevski/627589/expmap_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.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/627589/ltcube_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits
.....................!
real 192.30
user 187.28
sys 4.51

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/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits outfile=/scratch/kocevski/627589/cmap_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits outfile=/scratch/kocevski/627589/cmap_HighResolution_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627589/Model_4FGL_J1225.5-2851_daily_bin1560.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/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits.....................!
real 113.63
user 112.03
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits', '/scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits', expMap='/scratch/kocevski/627589/expmap_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits', expCube='/scratch/kocevski/627589/ltcube_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627589/Model_4FGL_J1225.5-2851_daily_bin1560.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/627589/ft1_filtered_4FGL_J1225.5-2851_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/627589/ft2_4FGL_J1225.5-2851_daily_bin1560.fits
Exposure map: /scratch/kocevski/627589/expmap_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits
Exposure cube: /scratch/kocevski/627589/ltcube_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627589/Model_4FGL_J1225.5-2851_daily_bin1560.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) = 6539.84165329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.785       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4367       1.0000         .10000E-03   10000.    
    18 'norm      '    .29841E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29356       1.0000         .10000E-03   10000.    
    20 'norm      '    82.291       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4408       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94071       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=   6539.829     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2439 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9524        .25759E-06** at limit **
   2  Prefactor     .10000E-03    15.184        .66771E-06** at limit **
   3  norm          14.053        29.046        .19468E-04   -.11913E-04
   4  Prefactor     22.779        16.522        .58445E-07   -.45585E-04
   5  norm          .10000E-03    1.7186        .60040E-07** at limit **
   6  Prefactor     8.8935        8.9905       -.46686E-05   -.27778E-03
   7  Prefactor     .10000E-03    23.100        .10620E-04** at limit **
   8  Prefactor     .10000E-03    22.678       -.10573E-04** at limit **
   9  Prefactor     .10000E-03    31.714        .30513E-05** at limit **
  10  Prefactor     .10000E-03    9.7288       -.28434E-06** at limit **
  11  Prefactor     .10000E-03    35.220       -.58102E-05** at limit **
  12  Prefactor     27.267        40.638        .46056E-04   -.11449E-04
  13  Prefactor     .10000E-03    8.9054        .38379E-06** at limit **
  14  norm          .10000E-03    .51410       -.28789E-06** at limit **
  15  Prefactor     .10000E-03    46.548        .91504E-05** at limit **
  16  norm          .10000E-03    4.4609        .30910E-06** at limit **
  17  Prefactor     5.4356        5.5299        .11844E-06   -.12154E-03
  18  norm          .27179E-02    4.2656        .15646E-05    .71033E-03
  19  Prefactor     .15756        10.329        .22756E-05   -.12202E-03
  20  norm          82.294        18.772       -.67694E-05   -.52277E-03
  21  Normalizat    1.4416        .30261       -.49545E-05   -.10000E-03
  22  Prefactor     .94052        .12482       -.88698E-06   -.35411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0528
  Prefactor  = 22.7795
  norm       = 0.0001
  Prefactor  = 8.89354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2669
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.43558
  norm       = 0.00271788
  Prefactor  = 0.157561
  norm       = 82.2939
  Normalizat = 1.44156
  Prefactor  = 0.940522
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.829     FROM HESSE     STATUS=OK           356 CALLS     2795 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.053        29.030        .10682E-03   -1.4958    
   4  Prefactor     22.779        16.510        .83915E-04   -1.4753    
   5  norm          .10000E-03    1.7218        .10343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8935        9.0340        .13435E-03   -1.5111    
   7  Prefactor     .10000E-03    23.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.267        40.659        .76635E-04   -1.4663    
  13  Prefactor     .10000E-03    9.0219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.031        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4972        .16657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4356        5.5165        .17234E-03   -1.5242    
  18  norm          .27179E-02    10.016        .51394E-01   -1.5698    
  19  Prefactor     .15756        15.428        .78438E-01   -1.5629    
  20  norm          82.294        18.927        .22139E-03   -1.3891    
  21  Normalizat    1.4416        .36818        .37243E-03   -.79434    
  22  Prefactor     .94052        .15262        .19176E-03   -.94739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09867e-09
Minuit parameter uncertainties:
  1  0.000106448
  2  3.7747e-05
  3  29.0589
  4  16.5133
  5  6.56256e-06
  6  9.03542
  7  2.71213e-05
  8  0.000134098
  9  0.000135959
  10  1.42742e-05
  11  5.4773e-05
  12  40.7003
  13  2.28621e-05
  14  1.7662e-05
  15  4.43559e-05
  16  1.79455e-05
  17  5.51698
  18  0.32391
  19  3.11812
  20  18.9283
  21  0.368865
  22  0.152694
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.727e+01  4.070e+01  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.405e-01  1.527e-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:  1.442e+00  3.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627589/likelihoodResults_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.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) = 6539.15098126
delta logL = 0.678459697392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6539.12623748
delta logL = 0.703203482355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.981       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3811       1.0000          .0000       10.000    
     3 'Normalizat'    1.3428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96484       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=   6539.126     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.943        227.93        .27794E-02    .20361E-03
   2  Index         3.3823        3.3144        .11048        .21404E-03
   3  Normalizat    1.3429        .10910        .86580E-01    .29446E-04
   4  Prefactor     .96480        .44967E-01    .45826E-01   -.27314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9434
  Index      = 3.38232
  Normalizat = 1.34291
  Prefactor  = 0.964801
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.126     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.943        36.197        .11118E-03   -1.4988    
   2  Index         3.3823        1.4205        .54211E-02   -.32946    
   3  Normalizat    1.3429        .36734        .38337E-03   -.82294    
   4  Prefactor     .96480        .15399        .18948E-03   -.93912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19511e-10
Minuit parameter uncertainties:
  1  36.2589
  2  1.44274
  3  0.36806
  4  0.154059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627589': 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) = 6539.12623604
delta logL = 0.70320492564

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.294e+01  3.626e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.382e+00  1.443e+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.648e-01  1.541e-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:  1.343e+00  3.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.38 +/- 1.44
Photon Flux (Free Index): 1.44e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.48e-05 +/- 2.19e-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/627589/cmap_HighResolution_643680001_643939201_4FGL_J1225.5-2851_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', comment='SUCCESS', energy_flux2='2.48e-05', dlogl='7.03e-01', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-05 14:56:56.358725', photon_index_error2='1.44', photon_index2='3.38', ts='0.53', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='2.19e-05', EG='1.44', time_epoch_completed='1630879016.36', return_code='0', job_id='627589', GAL2='0.96', EG2='1.34', return_code2='0', photon_flux_error2='1.16e-07', ts2='2.04', photon_index='2.43' WHERE bin_id='1560' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 627589: <4FGL_J1225.5-2851_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1560> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:41:15 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:17 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:41:17 2021
Terminated at Sun Sep  5 14:56:57 2021
Results reported at Sun Sep  5 14:56:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1560 186.392 -28.8625 643680001 643939201 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 :                                   727.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

