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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin535
RA = 186.252, Dec = 3.5098
tmin = 378000001, tmax = 378259201
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='607907', job_status='RUN', time_executed='2021-09-05 13:50:45.923923', time_epoch_executed='1630875045.92' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607907

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607907/ft1_4FGL_J1225.0+0330_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607907/ft1_4FGL_J1225.0+0330_daily_bin535.fits outfile=/scratch/kocevski/607907/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin535.fits ra=186.252 dec=3.5098 rad=12.0 tmin=378000001.0 tmax=378259201.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.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607907/ft1_filtered_4FGL_J1225.0+0330_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/607907/ltcube_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.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/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits
.....................!
real 12.59
user 12.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607907/ft1_filtered_4FGL_J1225.0+0330_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/607907/ltcube_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.fits outfile=/scratch/kocevski/607907/expmap_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.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/607907/ltcube_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.fits
.....................!
real 191.17
user 185.96
sys 4.81

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/607907/ft1_filtered_4FGL_J1225.0+0330_daily_bin535.fits scfile=/scratch/kocevski/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits outfile=/scratch/kocevski/607907/cmap_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607907/ft1_filtered_4FGL_J1225.0+0330_daily_bin535.fits scfile=/scratch/kocevski/607907/ft2_4FGL_J1225.0+0330_daily_bin535.fits outfile=/scratch/kocevski/607907/cmap_HighResolution_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1709       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.796       1.0000         .10000E-03   10000.    
    16 'norm      '    21.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6257       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11424E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    25.419       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.347       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.245       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68226       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=   6719.204     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3889 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.322        28.946        .20255E-04    .20489E-04
   2  Prefactor     .10000E-03    61.925       -.38604E-05** at limit **
   3  Prefactor     5.5965        8.9751       -.38982E-06   -.11798E-03
   4  Prefactor     8.5699        7.7126       -.75342E-07    .42898E-04
   5  Prefactor     .10000E-03    7.7661       -.56231E-07** at limit **
   6  Prefactor     13.534        18.808        .95211E-06    .46842E-04
   7  Prefactor     .10000E-03    22.264        .96683E-05** at limit **
   8  Prefactor     .10000E-03    21.790       -.10451E-04** at limit **
   9  Prefactor     49.463        45.754       -.57644E-05    .24924E-04
  10  Prefactor     6.4242        24.932       -.24383E-04   -.36595E-04
  11  Prefactor     16.825        18.787        .16676E-06    .13073E-04
  12  Prefactor     .10000E-03    9.0783        .31736E-06** at limit **
  13  norm          1.1716        1.6797        .30334E-06    .38374E-04
  14  norm          3.7383        3.5246        .15339E-06   -.32576E-03
  15  Prefactor     14.804        25.195       -.88611E-05   -.60938E-05
  16  norm          21.545        25.927       -.72113E-06    .57202E-05
  17  Prefactor     .10000E-03    51.359        .12127E-05** at limit **
  18  norm          1.9463        .66498        .45715E-07    .20422E-03
  19  Prefactor     9.6242        9.6941       -.32320E-06   -.59219E-04
  20  Prefactor     .10000E-03    14.560        .23036E-05** at limit **
  21  Prefactor     .10000E-03    3.9537       -.32576E-06** at limit **
  22  norm          25.420        3.4255       -.34908E-07    .89942E-04
  23  Prefactor     .10000E-03    2.5499        .66709E-07** at limit **
  24  Prefactor     .10000E-03    12.231        .14820E-05** at limit **
  25  Prefactor     .10000E-03    8.7235        .20342E-06** at limit **
  26  Prefactor     14.549        53.116        .14671E-04    .20030E-05
  27  norm          .10000E-03    13.206       -.26213E-05** at limit **
  28  Prefactor     25.224        17.902       -.34778E-05   -.16600E-04
  29  Normalizat    1.2899        .21745        .31782E-05   -.10794E-03
  30  Prefactor     .68239        .16092       -.16433E-05    .17319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3223
  Prefactor  = 0.0001
  Prefactor  = 5.59653
  Prefactor  = 8.5699
  Prefactor  = 0.0001
  Prefactor  = 13.5344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.4628
  Prefactor  = 6.42415
  Prefactor  = 16.8251
  Prefactor  = 0.0001
  norm       = 1.17157
  norm       = 3.73835
  Prefactor  = 14.8038
  norm       = 21.5453
  Prefactor  = 0.0001
  norm       = 1.94628
  Prefactor  = 9.62423
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 25.4198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5489
  norm       = 0.0001
  Prefactor  = 25.2244
  Normalizat = 1.28988
  Prefactor  = 0.682391
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.204     FROM HESSE     STATUS=OK           588 CALLS     4477 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.322        28.932        .99099E-04   -1.4900    
   2  Prefactor     .10000E-03    61.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5965        8.9941        .16985E-03   -1.5235    
   4  Prefactor     8.5699        7.7063        .13692E-03   -1.5122    
   5  Prefactor     .10000E-03    7.7872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.534        18.851        .10891E-03   -1.4972    
   7  Prefactor     .10000E-03    22.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.463        46.001        .57035E-04   -1.4300    
  10  Prefactor     6.4242        24.992        .15852E-03   -1.5201    
  11  Prefactor     16.825        18.780        .97644E-04   -1.4887    
  12  Prefactor     .10000E-03    9.1667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1716        1.6367        .12242E-03   -1.5491    
  14  norm          3.7383        3.5140        .13446E-03   -1.5321    
  15  Prefactor     14.804        25.199        .10413E-03   -1.4938    
  16  norm          21.545        25.939        .86294E-04   -1.4779    
  17  Prefactor     .10000E-03    51.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9463        .66149        .35716E-04   -1.5429    
  19  Prefactor     9.6242        9.6953        .12916E-03   -1.5087    
  20  Prefactor     .10000E-03    14.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.493        .31657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.420        3.4322        .52054E-04   -1.4699    
  23  Prefactor     .10000E-03    2.5602        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.7245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.549        52.949        .10574E-03   -1.4945    
  27  norm          .10000E-03    13.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.224        17.902        .79727E-04   -1.4703    
  29  Normalizat    1.2899        .25930        .27991E-03   -.83869    
  30  Prefactor     .68239        .18870        .29602E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76076e-10
Minuit parameter uncertainties:
  1  28.9572
  2  3.94106e-05
  3  8.99631
  4  7.70721
  5  7.80083e-06
  6  18.8593
  7  3.19871e-06
  8  2.9196e-06
  9  46.0344
  10  25.0327
  11  18.7862
  12  0.000103476
  13  1.63679
  14  3.51419
  15  25.2167
  16  25.9527
  17  3.69149e-05
  18  0.661489
  19  9.69685
  20  7.92563e-07
  21  0.000442184
  22  3.4322
  23  2.1255e-06
  24  5.25386e-06
  25  8.27975e-07
  26  53.1207
  27  4.01165e-08
  28  17.9063
  29  0.259559
  30  0.188876
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  2.155e+01  2.595e+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:  6.824e-01  1.889e-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.290e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 6.22e-06 +/- 7.49e-06

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

Saving results to:
/scratch/kocevski/607907/likelihoodResults_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.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) = 6719.07053062
delta logL = 0.133621906832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6719.06357909
delta logL = 0.140573435134

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.706       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6046       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69744       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6719.064     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      304 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.705        27.689        .11237E-03   -.25697E-03
   2  alpha         3.6044        1.7867        .22353E-01   -.25230E-04
   3  Normalizat    1.2577        .24561        .28239E-03   -.74963E-04
   4  Prefactor     .69752        .18920        .29285E-03   -.13871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7048
  alpha      = 3.60439
  Normalizat = 1.25772
  Prefactor  = 0.697519
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.064     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.705        21.167        .44949E-05   -1.4995    
   2  alpha         3.6044        1.4498        .89414E-03    .45756    
   3  Normalizat    1.2577        .24096        .11295E-04   -.84837    
   4  Prefactor     .69752        .18766        .11714E-04   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36737e-10
Minuit parameter uncertainties:
  1  21.1797
  2  1.57648
  3  0.241177
  4  0.187827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607907': 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) = 6719.06357891
delta logL = 0.14057360825

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.270e+01  2.118e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.604e+00  1.576e+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:  6.975e-01  1.878e-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.258e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 186.252 3.510
Photon Index (Free Index): 3.60 +/- 1.58
Photon Flux (Free Index): 5.27e-08 +/- 8.47e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/607907/cmap_HighResolution_378000001_378259201_4FGL_J1225.0+0330_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='1.10e-05', photon_flux_error='1.79e-08', dlogl='1.41e-01', energy_flux='6.22e-06', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-09-05 14:06:30.850294', photon_index_error2='1.58', photon_index2='3.60', ts='1.86', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='1.31e-05', EG='1.29', time_epoch_completed='1630875990.85', return_code='0', job_id='607907', GAL2='0.70', EG2='1.26', return_code2='0', energy_flux_error='7.49e-06', photon_flux_error2='8.47e-08', ts2='2.17', photon_index='2.40' WHERE bin_id='535' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 607907: <4FGL_J1225.0+0330_daily_bin535> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin535> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:18 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:20 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:20 2021
Terminated at Sun Sep  5 14:06:31 2021
Results reported at Sun Sep  5 14:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin535 186.252 3.5098 378000001 378259201 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 :                                   942.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

