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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin478
RA = 186.252, Dec = 3.5098
tmin = 363225601, tmax = 363484801
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='606668', job_status='RUN', time_executed='2021-09-05 13:49:30.742316', time_epoch_executed='1630874970.74' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606668/ft1_4FGL_J1225.0+0330_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606668/ft1_4FGL_J1225.0+0330_daily_bin478.fits outfile=/scratch/kocevski/606668/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin478.fits ra=186.252 dec=3.5098 rad=12.0 tmin=363225601.0 tmax=363484801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.99
user 6.62
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.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/606668/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.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.51
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/606668/ltcube_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits outfile=/scratch/kocevski/606668/expmap_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.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/606668/ltcube_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits
.....................!
real 191.83
user 185.52
sys 4.84

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/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.fits scfile=/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits outfile=/scratch/kocevski/606668/cmap_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.fits scfile=/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits outfile=/scratch/kocevski/606668/cmap_HighResolution_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.fits', '/scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits', expMap='/scratch/kocevski/606668/expmap_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits', expCube='/scratch/kocevski/606668/ltcube_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606668/Model_4FGL_J1225.0+0330_daily_bin478.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/606668/ft1_filtered_4FGL_J1225.0+0330_daily_bin478.fits
Spacecraft file(s): /scratch/kocevski/606668/ft2_4FGL_J1225.0+0330_daily_bin478.fits
Exposure map: /scratch/kocevski/606668/expmap_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits
Exposure cube: /scratch/kocevski/606668/ltcube_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606668/Model_4FGL_J1225.0+0330_daily_bin478.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) = 2153.01101685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    353.08       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7921       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.476       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .79546E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11757E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.126       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.410       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    34.228       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1621       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70974       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=   2152.803     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3861 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.234        .90288E-07** at limit **
   2  Prefactor     353.24        287.98        .53166E-05    .55176E-04
   3  Prefactor     .10000E-03    15.632        .56206E-06** at limit **
   4  Prefactor     .10000E-03    6.4375        .38429E-06** at limit **
   5  Prefactor     .10000E-03    11.434       -.29384E-07** at limit **
   6  Prefactor     8.7904        23.140        .14200E-06    .19316E-04
   7  Prefactor     .10000E-03    49.333       -.61914E-07** at limit **
   8  Prefactor     .10000E-03    40.232        .61705E-07** at limit **
   9  Prefactor     3.0979        899.36       -.16218E-04   -.42582E-04
  10  Prefactor     .10000E-03    15.216       -.12140E-06** at limit **
  11  Prefactor     72.551        81.787        .24629E-05   -.11502E-03
  12  Prefactor     .10000E-03    14.786       -.66202E-06** at limit **
  13  norm          .10000E-03    1.5612       -.15539E-06** at limit **
  14  norm          .10049E-03    14.539        .45584E-05** at limit **
  15  Prefactor     .10000E-03    24.458       -.17256E-06** at limit **
  16  norm          .10000E-03    104.70       -.17914E-05** at limit **
  17  Prefactor     .10000E-03    132.48        .24649E-06** at limit **
  18  norm          2.8274        1.4560        .35391E-06   -.23412E-02
  19  Prefactor     .10000E-03    17.216       -.98593E-06** at limit **
  20  Prefactor     66.102        60.292        .14319E-05   -.28392E-04
  21  Prefactor     25.409        21.738       -.20437E-06   -.17416E-04
  22  norm          1.4978        2.7487       -.22710E-06   -.55665E-03
  23  Prefactor     3.6812        11.505       -.48339E-06    .63290E-05
  24  Prefactor     .10000E-03    34.717       -.57616E-06** at limit **
  25  Prefactor     .10000E-03    22.000       -.97021E-07** at limit **
  26  Prefactor     .10000E-03    38.390       -.28653E-06** at limit **
  27  norm          34.224        34.113        .19387E-07   -.36665E-05
  28  Prefactor     .10000E-03    13.517       -.59119E-06** at limit **
  29  Normalizat    1.1633        .44588       -.12454E-04   -.15169E-03
  30  Prefactor     .70892        .31733        .12640E-04    .94551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 353.242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.79037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0979
  Prefactor  = 0.0001
  Prefactor  = 72.5509
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00010049
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.82737
  Prefactor  = 0.000100001
  Prefactor  = 66.1019
  Prefactor  = 25.4092
  norm       = 1.49784
  Prefactor  = 3.68121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.224
  Prefactor  = 0.0001
  Normalizat = 1.16325
  Prefactor  = 0.708922
 **********
 **   18 **HESSE 
 **********

 FCN=   2152.803     FROM HESSE     STATUS=OK           576 CALLS     4437 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     353.24        288.06        .10837E-03   -1.1927    
   3  Prefactor     .10000E-03    15.680        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4511        .11509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.436        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7904        23.144        .13518E-03   -1.5115    
   7  Prefactor     .10000E-03    49.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0979        872.30        .23572E-03   -1.5356    
  10  Prefactor     .10000E-03    15.221        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     72.551        81.383        .23579E-03   -1.4002    
  12  Prefactor     .10000E-03    14.860        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5654        .56650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10049E-03    47.652        .23077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    105.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    132.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8274        1.4549        .35632E-04   -1.5372    
  19  Prefactor     .10000E-03    17.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     66.102        60.411        .24677E-03   -1.4080    
  21  Prefactor     25.409        21.721        .79469E-04   -1.4699    
  22  norm          1.4978        2.7108        .97507E-04   -1.5463    
  23  Prefactor     3.6812        11.478        .21068E-03   -1.5324    
  24  Prefactor     .10000E-03    34.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          34.224        34.112        .68495E-04   -1.4537    
  28  Prefactor     .10000E-03    13.558        .16672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1633        .46297        .28212E-03   -.87746    
  30  Prefactor     .70892        .33011        .27104E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.184e-08
Minuit parameter uncertainties:
  1  1.60156e-05
  2  289.24
  3  0.000113546
  4  5.34237e-05
  5  4.82968e-06
  6  23.1675
  7  2.59409e-05
  8  3.03744e-05
  9  105.557
  10  4.84262e-06
  11  81.5081
  12  0.000120025
  13  1.09793e-05
  14  0.00966747
  15  4.27243e-06
  16  0.000798872
  17  0.000254361
  18  1.45493
  19  0.00024047
  20  60.4674
  21  21.7273
  22  2.71098
  23  11.4851
  24  0.000199118
  25  9.65194e-06
  26  0.000139106
  27  34.1317
  28  0.000126535
  29  0.464613
  30  0.331025
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  7.989e-04  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:  7.089e-01  3.310e-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.163e+00  4.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606668/likelihoodResults_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.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) = 2152.80314965
delta logL = -4.52456461062e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2152.80314964
delta logL = -4.52345725535e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96322E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70892       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=   2152.803     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      193 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    107.97        .90716E-02** at limit **
   2  alpha         2.4317        3.5431        .41196       -.17092E-05
   3  Normalizat    1.1633        .34483        .63783E-01    .95466E-05
   4  Prefactor     .70891        .26638        .61273E-01    .85050E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.43169
  Normalizat = 1.16326
  Prefactor  = 0.708912
 **********
 **   18 **HESSE 
 **********

 FCN=   2152.803     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    105.74        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4317        3.5359        .16478       -.27329E-01
   3  Normalizat    1.1633        .40808        .28214E-03   -.87746    
   4  Prefactor     .70891        .31515        .27103E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88424e-11
Minuit parameter uncertainties:
  1  0.000882176
  2  2.49957
  3  0.409204
  4  0.31595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606668': 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) = 2152.80310438
delta logL = 2.36318555835e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  8.822e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.432e+00  2.500e+00  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:  7.089e-01  3.159e-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.163e+00  4.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

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/606668/cmap_HighResolution_363225601_363484801_4FGL_J1225.0+0330_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-05', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-05 13:58:14.852410', job_id='606668', GAL2='0.71', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630875494.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='478' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:58:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 606668: <4FGL_J1225.0+0330_daily_bin478> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin478> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:46 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:48 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:45:48 2021
Terminated at Sun Sep  5 13:58:16 2021
Results reported at Sun Sep  5 13:58:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin478 186.252 3.5098 363225601 363484801 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

