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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin635
RA = 186.252, Dec = 3.5098
tmin = 403920001, tmax = 404179201
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='608123', job_status='RUN', time_executed='2021-09-05 13:54:08.382141', time_epoch_executed='1630875248.38' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608123

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608123/ft1_4FGL_J1225.0+0330_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608123/ft2_4FGL_J1225.0+0330_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608123/ft1_4FGL_J1225.0+0330_daily_bin635.fits outfile=/scratch/kocevski/608123/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin635.fits ra=186.252 dec=3.5098 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.12
user 9.78
sys 0.31

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608123/ft1_filtered_4FGL_J1225.0+0330_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/608123/ft2_4FGL_J1225.0+0330_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/608123/ltcube_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.fits outfile=/scratch/kocevski/608123/expmap_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.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/608123/ltcube_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.fits
.....................!
real 190.36
user 185.50
sys 4.47

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/608123/ft1_filtered_4FGL_J1225.0+0330_daily_bin635.fits scfile=/scratch/kocevski/608123/ft2_4FGL_J1225.0+0330_daily_bin635.fits outfile=/scratch/kocevski/608123/cmap_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.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/608123/ft1_filtered_4FGL_J1225.0+0330_daily_bin635.fits scfile=/scratch/kocevski/608123/ft2_4FGL_J1225.0+0330_daily_bin635.fits outfile=/scratch/kocevski/608123/cmap_HighResolution_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.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/608123/ft1_filtered_4FGL_J1225.0+0330_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/608123/ft2_4FGL_J1225.0+0330_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608123/Model_4FGL_J1225.0+0330_daily_bin635.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/608123/ft1_filtered_4FGL_J1225.0+0330_daily_bin635.fits.....................!
real 20.03
user 18.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    152.94       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.042       1.0000         .10000E-03   10000.    
    13 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14592E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12522E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29277E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.4782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4794       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7560       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .11352E-06   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=   920.5645     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     4488 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.681        112.03       -.30396E-05   -.70929E-05
   2  Prefactor     .10000E-03    203.14       -.42079E-04** at limit **
   3  Prefactor     .10000E-03    36.435        .67745E-05** at limit **
   4  Prefactor     .10000E-03    24.059        .66817E-05** at limit **
   5  Prefactor     .10000E-03    58.284       -.99191E-05** at limit **
   6  Prefactor     .10000E-03    18.186       -.82164E-06** at limit **
   7  Prefactor     152.93        258.41       -.35407E-05   -.43937E-05
   8  Prefactor     .10000E-03    86.297        .73736E-05** at limit **
   9  Prefactor     22.365        169.64       -.11859E-03   -.16984E-04
  10  Prefactor     22.434        68.976        .95207E-04    .34566E-05
  11  Prefactor     .10000E-03    43.781        .18100E-04** at limit **
  12  Prefactor     22.049        33.234       -.89950E-05   -.38328E-04
  13  norm          .10000E-03    7.4210        .27132E-06** at limit **
  14  norm          .10001E-03    14.075        .82135E-06** at limit **
  15  Prefactor     .10000E-03    157.56        .43215E-04** at limit **
  16  norm          .10000E-03    72.447       -.13685E-04** at limit **
  17  Prefactor     .10000E-03    358.48       -.26689E-04** at limit **
  18  norm          2.1636        1.6367       -.16028E-08   -.21508E-03
  19  Prefactor     .10000E-03    11.263        .63571E-07** at limit **
  20  Prefactor     .10000E-03    58.912       -.10989E-04** at limit **
  21  Prefactor     .10000E-03    9.6307       -.24961E-07** at limit **
  22  norm          7.4768        6.5255        .78892E-06   -.15024E-03
  23  Prefactor     .10000E-03    8.0236       -.14655E-07** at limit **
  24  Prefactor     .10000E-03    36.412        .57540E-05** at limit **
  25  Prefactor     .10000E-03    76.552       -.90631E-05** at limit **
  26  Prefactor     .10000E-03    94.389        .22760E-04** at limit **
  27  norm          .10000E-03    31.895       -.17530E-04** at limit **
  28  Prefactor     3.4911        148.27        .15859E-04   -.19447E-04
  29  Normalizat    1.7557        .35921        .67963E-06   -.10318E-03
  30  Prefactor     .10053E-11    .13482       -.65271E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.6805
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.933
  Prefactor  = 0.0001
  Prefactor  = 22.3651
  Prefactor  = 22.4339
  Prefactor  = 0.0001
  Prefactor  = 22.0486
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.47676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.49108
  Normalizat = 1.75573
  Prefactor  = 1.00531e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   920.5645     FROM HESSE     STATUS=OK           570 CALLS     5058 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.681        112.44        .42907E-04   -1.3832    
   2  Prefactor     .10000E-03    202.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.536        .17884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.148        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.189        .12643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     152.93        260.99        .32595E-04   -1.3228    
   8  Prefactor     .10000E-03    86.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.365        173.15        .84576E-04   -1.4762    
  10  Prefactor     22.434        69.009        .84706E-04   -1.4760    
  11  Prefactor     .10000E-03    43.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.049        33.021        .85316E-04   -1.4769    
  13  norm          .10000E-03    7.4407        .80226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    24.575        .21605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    158.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    72.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    358.50        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1636        1.6252        .31635E-04   -1.5414    
  19  Prefactor     .10000E-03    11.267        .99479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    58.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6308        .91990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.4768        6.5347        .66655E-04   -1.5161    
  23  Prefactor     .10000E-03    8.0238        .83963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.412        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    76.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    94.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    31.890        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4911        150.47        .21678E-03   -1.5334    
  29  Normalizat    1.7557        .35856        .20280E-03   -.70825    
  30  Prefactor     .10053E-11    .14435        .65085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78269e-10
Minuit parameter uncertainties:
  1  112.716
  2  0.00167439
  3  0.000309149
  4  0.000604869
  5  0.00019366
  6  0.000101314
  7  263.003
  8  6.73431e-05
  9  124.963
  10  69.2562
  11  0.000132307
  12  33.048
  13  6.65324e-05
  14  0.00117551
  15  0.000150508
  16  6.26433e-05
  17  4.99453e-05
  18  1.62526
  19  5.30321e-06
  20  5.39674e-05
  21  3.04536e-06
  22  6.53529
  23  1.75078e-06
  24  6.53903e-06
  25  4.47561e-06
  26  0.00024333
  27  1.0178e-06
  28  45.9623
  29  0.3591
  30  7.63617e-07
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  6.264e-05  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:  1.005e-12  7.636e-07  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.756e+00  3.591e-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: 2.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608123/likelihoodResults_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.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) = 920.564539964
delta logL = -6.55205581097e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 920.564539661
delta logL = -6.52172121818e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95725E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26329E-10   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=   920.5645     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    70.440        .90774E-02** at limit **
   2  alpha         2.3993        3.5280        .41196       -.14676E-06
   3  Normalizat    1.7557        .27306        .45886E-01   -.28197E-05
   4  Prefactor     .12434E-12    .12753        .16087    ** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3993
  Normalizat = 1.75573
  Prefactor  = 1.24345e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   920.5645     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    70.422        .18155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3993        3.5279        .50000       -.40290E-01
   3  Normalizat    1.7557        .25879        .20280E-03   -.70825    
   4  Prefactor     .12434E-12    .13646        .65085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47268e-13
Minuit parameter uncertainties:
  1  7.27306e-06
  2  2.49802
  3  0.258995
  4  2.61163e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608123': 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) = 920.564474443
delta logL = 1.50407686306e-10

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  7.273e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.399e+00  2.498e+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:  1.243e-13  2.612e-07  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.756e+00  2.590e-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/608123/cmap_HighResolution_403920001_404179201_4FGL_J1225.0+0330_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-05', job_status='DONE', photon_flux_upper_limit='2.22e-07', time_completed='2021-09-05 14:01:27.225324', job_id='608123', GAL2='0.00', fit_tolerance='1e-08', EG2='1.76', EG='1.76', time_epoch_completed='1630875687.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.50e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='635' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 608123: <4FGL_J1225.0+0330_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin635 186.252 3.5098 403920001 404179201 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 :                                   434.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            656 sec.

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

