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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin799
RA = 186.252, Dec = 3.5098
tmin = 446428801, tmax = 446688001
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='608418', job_status='RUN', time_executed='2021-09-05 13:53:35.257680', time_epoch_executed='1630875215.26' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608418/ft1_4FGL_J1225.0+0330_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608418/ft1_4FGL_J1225.0+0330_daily_bin799.fits outfile=/scratch/kocevski/608418/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin799.fits ra=186.252 dec=3.5098 rad=12.0 tmin=446428801.0 tmax=446688001.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.46
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.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/608418/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.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.58
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/608418/ltcube_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.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/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/608418/ltcube_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits outfile=/scratch/kocevski/608418/expmap_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.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/608418/ltcube_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits
.....................!
real 191.45
user 185.70
sys 5.35

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

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits outfile=/scratch/kocevski/608418/cmap_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.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.252 yref=3.5098 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits outfile=/scratch/kocevski/608418/cmap_HighResolution_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.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.252 yref=3.5098 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608418/Model_4FGL_J1225.0+0330_daily_bin799.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/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits.....................!
real 52.55
user 50.84
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits', '/scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits', expMap='/scratch/kocevski/608418/expmap_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits', expCube='/scratch/kocevski/608418/ltcube_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608418/Model_4FGL_J1225.0+0330_daily_bin799.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/608418/ft1_filtered_4FGL_J1225.0+0330_daily_bin799.fits
Spacecraft file(s): /scratch/kocevski/608418/ft2_4FGL_J1225.0+0330_daily_bin799.fits
Exposure map: /scratch/kocevski/608418/expmap_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits
Exposure cube: /scratch/kocevski/608418/ltcube_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608418/Model_4FGL_J1225.0+0330_daily_bin799.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) = 5735.22720053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89339       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.840       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6098       1.0000         .10000E-03   10000.    
    16 'norm      '    23.259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1137       1.0000         .10000E-03   10000.    
    18 'norm      '    .47379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93414       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31063E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .80631       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    23.096       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .67266       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5735.195     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4013 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.927       -.53813E-06** at limit **
   2  Prefactor     66.752        71.530       -.43264E-06   -.13337E-04
   3  Prefactor     .10000E-03    5.9748       -.26483E-06** at limit **
   4  Prefactor     6.1865        9.4568       -.27189E-06    .48055E-04
   5  Prefactor     .10000E-03    15.788       -.79777E-07** at limit **
   6  Prefactor     .94028        10.700       -.21635E-06    .21930E-04
   7  Prefactor     .10000E-03    61.605        .87109E-06** at limit **
   8  Prefactor     .10000E-03    22.749        .23343E-06** at limit **
   9  Prefactor     46.123        52.388        .18535E-07    .32979E-04
  10  Prefactor     32.844        22.848        .17399E-06    .15255E-03
  11  Prefactor     6.5046        44.448       -.21456E-05   -.41429E-04
  12  Prefactor     .10000E-03    20.946        .11695E-06** at limit **
  13  norm          .10000E-03    1.1735        .41463E-08** at limit **
  14  norm          5.4843        6.1347       -.10900E-06    .23262E-03
  15  Prefactor     6.5316        85.916        .12223E-04    .52402E-04
  16  norm          23.162        51.627        .19083E-05    .12893E-03
  17  Prefactor     1.8607        6384.7        .21788E-05   -.59243E-05
  18  norm          .47401        .82463       -.92959E-07   -.20327E-03
  19  Prefactor     .10000E-03    3.3207       -.18668E-06** at limit **
  20  Prefactor     .10000E-03    12.182       -.13278E-06** at limit **
  21  Prefactor     .10000E-03    9.5430       -.17567E-06** at limit **
  22  norm          .93547        1.5948       -.26782E-06   -.79472E-03
  23  Prefactor     .10001E-03    8.3505        .20445E-05** at limit **
  24  Prefactor     .88993        143.12       -.40447E-04    .84997E-04
  25  Prefactor     .10000E-03    12.592       -.20894E-06** at limit **
  26  Prefactor     .10000E-03    39.162       -.45198E-06** at limit **
  27  norm          23.113        28.579       -.87078E-07    .10677E-03
  28  Prefactor     .66780        10.360        .77790E-06    .35902E-04
  29  Normalizat    1.3258        .23107       -.13000E-05    .13874E-03
  30  Prefactor     .82906        .17247        .27843E-05    .70937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.7517
  Prefactor  = 0.0001
  Prefactor  = 6.18647
  Prefactor  = 0.0001
  Prefactor  = 0.940275
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 46.1226
  Prefactor  = 32.8441
  Prefactor  = 6.50462
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.48425
  Prefactor  = 6.53158
  norm       = 23.1619
  Prefactor  = 1.86067
  norm       = 0.474005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.935471
  Prefactor  = 0.000100012
  Prefactor  = 0.889926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1129
  Prefactor  = 0.667803
  Normalizat = 1.32582
  Prefactor  = 0.829064
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.195     FROM HESSE     STATUS=OK           588 CALLS     4601 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.752        71.586        .49131E-04   -1.4072    
   3  Prefactor     .10000E-03    6.0131        .18081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1865        9.4327        .16139E-03   -1.5210    
   5  Prefactor     .10000E-03    15.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94028        83.102        .46524E-02   -1.5514    
   7  Prefactor     .10000E-03    61.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.123        52.564        .59069E-04   -1.4349    
  10  Prefactor     32.844        22.833        .69923E-04   -1.4561    
  11  Prefactor     6.5046        44.000        .15709E-03   -1.5198    
  12  Prefactor     .10000E-03    21.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1894        .80045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4843        5.9176        .13426E-03   -1.5240    
  15  Prefactor     6.5316        90.016        .15609E-03   -1.5197    
  16  norm          23.162        51.529        .83055E-04   -1.4745    
  17  Prefactor     1.8607        6518.7        .28373E-02   -1.5435    
  18  norm          .47401        .75040        .65754E-04   -1.5570    
  19  Prefactor     .10000E-03    3.3267        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93547        1.4379        .11312E-02   -1.5515    
  23  Prefactor     .10001E-03    42.025        .40082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .88993        146.34        .71790E-02   -1.5519    
  25  Prefactor     .10000E-03    12.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    39.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          23.113        27.913        .83347E-04   -1.4746    
  28  Prefactor     .66780        49.212        .45660E-02   -1.5545    
  29  Normalizat    1.3258        .26621        .26257E-03   -.82799    
  30  Prefactor     .82906        .19894        .26079E-03   -.98666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64187e-09
Minuit parameter uncertainties:
  1  0.000121902
  2  71.6785
  3  3.63934e-05
  4  9.43493
  5  3.49604e-05
  6  17.7037
  7  0.000389132
  8  6.55141e-05
  9  52.6171
  10  22.8391
  11  33.8708
  12  9.42954e-05
  13  2.36997e-06
  14  5.9182
  15  48.5839
  16  51.6286
  17  163.001
  18  0.750411
  19  1.94224e-05
  20  3.32492e-05
  21  2.89108e-06
  22  1.43795
  23  0.00144516
  24  22.8795
  25  4.42996e-05
  26  0.000198225
  27  27.9291
  28  11.4744
  29  0.266488
  30  0.199108
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  2.316e+01  5.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.291e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.326e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608418/likelihoodResults_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.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) = 5733.38206333
delta logL = 1.81268259428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5733.37142742
delta logL = 1.82331850449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0509       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5733.371     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      265 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0509        2.3979        .58069E-02    .17213E-02
   2  alpha         5.0000        .64869        .46267    ** at limit **
   3  Normalizat    1.1714        .21179        .62223E-01   -.82607E-04
   4  Prefactor     .90773        .16730        .45103E-01   -.86982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05086
  alpha      = 5
  Normalizat = 1.17144
  Prefactor  = 0.907732
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.371     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0509        1.7525        .69457E-04   -1.5359    
   2  alpha         5.0000        .69401        .37809E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1714        .24765        .27522E-03   -.87490    
   4  Prefactor     .90773        .19575        .25009E-03   -.95871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04471e-10
Minuit parameter uncertainties:
  1  1.75252
  2  4.33889e-07
  3  0.247894
  4  0.195904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608418': 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) = 5733.37142741
delta logL = 1.82331851178

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.051e+00  1.753e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  4.339e-07  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.077e-01  1.959e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.171e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 186.252 3.510
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.61e-07 +/- 9.22e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.39e-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/608418/cmap_HighResolution_446428801_446688001_4FGL_J1225.0+0330_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', energy_flux2='2.43e-05', dlogl='1.82e+00', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-05 14:07:26.860688', photon_index_error2='0.00', photon_index2='5.00', ts='0.37', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='1.39e-05', EG='1.33', time_epoch_completed='1630876046.86', return_code='0', job_id='608418', GAL2='0.91', EG2='1.17', return_code2='0', photon_flux_error2='9.22e-08', ts2='4.63', photon_index='2.40' WHERE bin_id='799' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:07:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 608418: <4FGL_J1225.0+0330_daily_bin799> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin799> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:52 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:50:54 2021
Terminated at Sun Sep  5 14:07:27 2021
Results reported at Sun Sep  5 14:07:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin799 186.252 3.5098 446428801 446688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   828.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

