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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin697
RA = 186.252, Dec = 3.5098
tmin = 419990401, tmax = 420249601
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='608250', job_status='RUN', time_executed='2021-09-05 13:51:00.249454', time_epoch_executed='1630875060.25' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608250/ft1_4FGL_J1225.0+0330_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608250/ft1_4FGL_J1225.0+0330_daily_bin697.fits outfile=/scratch/kocevski/608250/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin697.fits ra=186.252 dec=3.5098 rad=12.0 tmin=419990401.0 tmax=420249601.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.43
user 3.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608250/ft1_filtered_4FGL_J1225.0+0330_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/608250/ltcube_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.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/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608250/ft1_filtered_4FGL_J1225.0+0330_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/608250/ltcube_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.fits outfile=/scratch/kocevski/608250/expmap_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.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/608250/ltcube_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.fits
.....................!
real 190.30
user 184.21
sys 5.71

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/608250/ft1_filtered_4FGL_J1225.0+0330_daily_bin697.fits scfile=/scratch/kocevski/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits outfile=/scratch/kocevski/608250/cmap_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608250/ft1_filtered_4FGL_J1225.0+0330_daily_bin697.fits scfile=/scratch/kocevski/608250/ft2_4FGL_J1225.0+0330_daily_bin697.fits outfile=/scratch/kocevski/608250/cmap_HighResolution_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    90.804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.050       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2320       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35797E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.948       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0905       1.0000         .10000E-03   10000.    
    27 'norm      '    7.3974       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9354       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0366       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85453       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=   5475.660     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3855 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.966        31.499        .17647E-05    .42951E-04
   2  Prefactor     90.801        96.579        .83932E-06   -.10038E-04
   3  Prefactor     .10000E-03    7.1681       -.14188E-06** at limit **
   4  Prefactor     .10000E-03    4.3552       -.46166E-07** at limit **
   5  Prefactor     .10000E-03    21.537        .57154E-06** at limit **
   6  Prefactor     .10000E-03    9.8144        .24829E-06** at limit **
   7  Prefactor     .10000E-03    285.56        .15577E-04** at limit **
   8  Prefactor     76.060        53.720       -.12835E-05   -.71033E-04
   9  Prefactor     .10000E-03    30.466        .34001E-06** at limit **
  10  Prefactor     .10000E-03    40.983       -.12835E-05** at limit **
  11  Prefactor     28.231        23.626       -.33557E-06   -.69937E-04
  12  Prefactor     .10000E-03    4.9665        .89392E-07** at limit **
  13  norm          .10000E-03    1.6324        .52957E-07** at limit **
  14  norm          10.902        4.6066       -.35407E-06   -.42211E-03
  15  Prefactor     .10000E-03    18.869       -.14525E-07** at limit **
  16  norm          .10000E-03    36.342       -.35330E-06** at limit **
  17  Prefactor     .10000E-03    49.057        .15875E-05** at limit **
  18  norm          2.4333        .74155        .57530E-07   -.22850E-03
  19  Prefactor     2.1654        6.3098        .60499E-05   -.15966E-03
  20  Prefactor     5.2803        22.925       -.14058E-05    .86111E-05
  21  Prefactor     4.2299        8.4198        .24340E-06    .44992E-05
  22  norm          1.1765        1.4956        .18651E-06    .21457E-03
  23  Prefactor     .10000E-03    4.6508       -.48735E-06** at limit **
  24  Prefactor     19.952        28.972       -.32977E-06   -.26110E-04
  25  Prefactor     .10000E-03    14.665       -.38488E-06** at limit **
  26  Prefactor     8.0819        53.728        .39713E-05    .33170E-04
  27  norm          7.3953        14.969        .95257E-07   -.38630E-06
  28  Prefactor     9.9389        13.599       -.35878E-06   -.54542E-04
  29  Normalizat    1.0366        .21375       -.12214E-05   -.22497E-03
  30  Prefactor     .85458        .16979       -.11478E-06   -.17908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9657
  Prefactor  = 90.8011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 76.0599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.231
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43329
  Prefactor  = 2.16536
  Prefactor  = 5.28028
  Prefactor  = 4.22991
  norm       = 1.17652
  Prefactor  = 0.0001
  Prefactor  = 19.9522
  Prefactor  = 0.0001
  Prefactor  = 8.08186
  norm       = 7.39525
  Prefactor  = 9.93891
  Normalizat = 1.03664
  Prefactor  = 0.854575
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.660     FROM HESSE     STATUS=OK           582 CALLS     4437 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.966        31.596        .10352E-03   -1.4934    
   2  Prefactor     90.801        96.819        .42169E-04   -1.3799    
   3  Prefactor     .10000E-03    7.3196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3738        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    287.45        .42752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.060        53.758        .46045E-04   -1.3961    
   9  Prefactor     .10000E-03    30.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.231        23.632        .75408E-04   -1.4645    
  12  Prefactor     .10000E-03    4.9773        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6760        .18452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.902        4.6288        .92754E-04   -1.5047    
  15  Prefactor     .10000E-03    18.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    36.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4333        .74152        .31713E-04   -1.5396    
  19  Prefactor     2.1654        6.3328        .13995E-02   -1.5414    
  20  Prefactor     5.2803        23.069        .17485E-03   -1.5248    
  21  Prefactor     4.2299        8.3997        .19588E-03   -1.5297    
  22  norm          1.1765        1.4601        .96560E-04   -1.5491    
  23  Prefactor     .10000E-03    13.904        .30773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.952        28.951        .89677E-04   -1.4814    
  25  Prefactor     .10000E-03    14.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.0819        53.577        .14096E-03   -1.5139    
  27  norm          7.3953        14.945        .14746E-03   -1.5164    
  28  Prefactor     9.9389        13.588        .12713E-03   -1.5077    
  29  Normalizat    1.0366        .25125        .27613E-03   -.91813    
  30  Prefactor     .85458        .19883        .24912E-03   -.97747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93477e-10
Minuit parameter uncertainties:
  1  31.6309
  2  96.9883
  3  1.25851e-05
  4  4.88914e-06
  5  2.22347e-05
  6  3.79959e-05
  7  0.00176169
  8  53.7922
  9  7.10435e-05
  10  0.000125464
  11  23.6403
  12  9.64287e-06
  13  4.02753e-06
  14  4.629
  15  2.45834e-05
  16  0.000166211
  17  0.000247227
  18  0.741525
  19  6.33474
  20  22.0875
  21  8.40208
  22  1.46013
  23  0.000104324
  24  28.9718
  25  2.72457e-05
  26  41.6715
  27  14.9527
  28  13.5924
  29  0.251542
  30  0.199002
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.662e-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:  8.546e-01  1.990e-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.037e+00  2.515e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608250/likelihoodResults_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.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) = 5475.65967747
delta logL = -0.000130593251015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.37040898
delta logL = 0.289137895824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3113       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .97727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88408       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=   5475.370     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      388 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3097        2.4788        .96246E-02    .98092E-03
   2  alpha         5.0000        3.3523        .46267    ** at limit **
   3  Normalizat    .97722        .21499        .45881E-01    .98160E-04
   4  Prefactor     .88412        .17203        .44802E-01    .60396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3097
  alpha      = 5
  Normalizat = 0.97722
  Prefactor  = 0.884116
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.370     FROM HESSE     STATUS=OK            29 CALLS      417 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3097        1.7994        .10605E-03   -1.5479    
   2  alpha         5.0000        .92546        .64229E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97722        .24470        .28227E-03   -.93798    
   4  Prefactor     .88412        .19770        .24507E-03   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14432e-11
Minuit parameter uncertainties:
  1  1.79949
  2  1.3146e-05
  3  0.244982
  4  0.197862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608250': 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) = 5475.37040843
delta logL = 0.289138446469

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.310e+00  1.799e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  1.315e-05  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:  8.841e-01  1.979e-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:  9.772e-01  2.450e-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/608250/cmap_HighResolution_419990401_420249601_4FGL_J1225.0+0330_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-05 14:04:38.052426', job_id='608250', GAL2='0.88', fit_tolerance='1e-08', EG2='0.98', EG='1.04', time_epoch_completed='1630875878.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.89e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='697' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 608250: <4FGL_J1225.0+0330_daily_bin697> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin697 186.252 3.5098 419990401 420249601 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 :                                   809.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

