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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin766
RA = 186.252, Dec = 3.5098
tmin = 437875201, tmax = 438134401
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='608369', job_status='RUN', time_executed='2021-09-05 13:53:09.297913', time_epoch_executed='1630875189.3' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608369/ft1_4FGL_J1225.0+0330_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608369/ft2_4FGL_J1225.0+0330_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608369/ft1_4FGL_J1225.0+0330_daily_bin766.fits outfile=/scratch/kocevski/608369/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin766.fits ra=186.252 dec=3.5098 rad=12.0 tmin=437875201.0 tmax=438134401.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 5.80
user 5.55
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608369/ft1_filtered_4FGL_J1225.0+0330_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/608369/ft2_4FGL_J1225.0+0330_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/608369/ltcube_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.fits outfile=/scratch/kocevski/608369/expmap_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.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/608369/ltcube_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.fits
.....................!
real 191.39
user 186.73
sys 4.22

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/608369/ft1_filtered_4FGL_J1225.0+0330_daily_bin766.fits scfile=/scratch/kocevski/608369/ft2_4FGL_J1225.0+0330_daily_bin766.fits outfile=/scratch/kocevski/608369/cmap_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608369/ft1_filtered_4FGL_J1225.0+0330_daily_bin766.fits scfile=/scratch/kocevski/608369/ft2_4FGL_J1225.0+0330_daily_bin766.fits outfile=/scratch/kocevski/608369/cmap_HighResolution_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.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/608369/ft1_filtered_4FGL_J1225.0+0330_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/608369/ft2_4FGL_J1225.0+0330_daily_bin766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608369/Model_4FGL_J1225.0+0330_daily_bin766.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/608369/ft1_filtered_4FGL_J1225.0+0330_daily_bin766.fits.....................!
real 45.25
user 43.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.810       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.556       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    123.37       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.8572       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1666       1.0000         .10000E-03   10000.    
    24 'Prefactor '    90.425       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    58.355       1.0000         .10000E-03   10000.    
    27 'norm      '    9.8793       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.903       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69277       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97437       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=   4840.708     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3934 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.802        41.137        .12354E-05    .21272E-04
   2  Prefactor     .10000E-03    25.984        .36388E-06** at limit **
   3  Prefactor     .10000E-03    5.8062       -.85309E-07** at limit **
   4  Prefactor     .10000E-03    8.9180       -.11069E-06** at limit **
   5  Prefactor     .10000E-03    4.3959       -.47183E-07** at limit **
   6  Prefactor     13.654        27.906       -.30369E-04    .47839E-05
   7  Prefactor     .10000E-03    22.330       -.65853E-06** at limit **
   8  Prefactor     49.475        67.661       -.57012E-05    .14043E-04
   9  Prefactor     .10000E-03    17.694       -.21015E-06** at limit **
  10  Prefactor     123.37        45.361       -.26882E-05    .63677E-04
  11  Prefactor     .10000E-03    48.103       -.24341E-05** at limit **
  12  Prefactor     .10000E-03    3.9861        .24624E-08** at limit **
  13  norm          .10000E-03    .77725        .44223E-07** at limit **
  14  norm          4.6359        4.1186       -.55936E-06    .93637E-04
  15  Prefactor     .10265E-03    50.874       -.68276E-05** at limit **
  16  norm          .10000E-03    42.484        .51637E-06** at limit **
  17  Prefactor     .10000E-03    303.13        .45424E-04** at limit **
  18  norm          1.7101        .79123        .12881E-07    .74207E-03
  19  Prefactor     3.7082        9.9266        .11226E-05   -.10453E-03
  20  Prefactor     .10000E-03    13.783       -.34058E-06** at limit **
  21  Prefactor     .10000E-03    11.457        .51617E-06** at limit **
  22  norm          7.8569        2.4671       -.22995E-06    .34662E-03
  23  Prefactor     3.1700        9.9674       -.13255E-04   -.23153E-03
  24  Prefactor     90.417        51.141       -.66994E-07    .51200E-04
  25  Prefactor     .10000E-03    84.340        .41316E-05** at limit **
  26  Prefactor     58.361        54.618       -.24653E-05    .13100E-04
  27  norm          9.8792        17.690       -.15089E-05    .10478E-04
  28  Prefactor     23.889        19.094       -.84945E-06    .39871E-04
  29  Normalizat    .69306        .25993        .12311E-04    .19403E-03
  30  Prefactor     .97425        .19427       -.55920E-06    .50322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.8022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6539
  Prefactor  = 0.0001
  Prefactor  = 49.4745
  Prefactor  = 0.0001
  Prefactor  = 123.369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.63592
  Prefactor  = 0.000102648
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71011
  Prefactor  = 3.70823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.85688
  Prefactor  = 3.17
  Prefactor  = 90.4165
  Prefactor  = 0.0001
  Prefactor  = 58.3612
  norm       = 9.87923
  Prefactor  = 23.8885
  Normalizat = 0.693063
  Prefactor  = 0.974252
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.708     FROM HESSE     STATUS=OK           584 CALLS     4518 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.802        41.136        .55719E-04   -1.4267    
   2  Prefactor     .10000E-03    25.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8386        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3971        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.654        27.895        .10831E-03   -1.4969    
   7  Prefactor     .10000E-03    22.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.475        67.630        .56965E-04   -1.4300    
   9  Prefactor     .10000E-03    17.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     123.37        45.377        .36237E-04   -1.3482    
  11  Prefactor     .10000E-03    48.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9890        .13565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .77853        .59896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6359        4.1108        .12172E-03   -1.5277    
  15  Prefactor     .10265E-03    52.223        .13281       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    42.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    303.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7101        .78569        .37795E-04   -1.5446    
  19  Prefactor     3.7082        9.9048        .20966E-03   -1.5323    
  20  Prefactor     .10000E-03    13.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.8569        2.4652        .57621E-04   -1.5147    
  23  Prefactor     3.1700        10.039        .22775E-03   -1.5352    
  24  Prefactor     90.417        51.089        .42257E-04   -1.3803    
  25  Prefactor     .10000E-03    84.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     58.361        54.639        .52518E-04   -1.4179    
  27  norm          9.8792        17.687        .12749E-03   -1.5079    
  28  Prefactor     23.889        19.189        .81932E-04   -1.4730    
  29  Normalizat    .69306        .29600        .34993E-03   -1.0417    
  30  Prefactor     .97425        .22356        .24289E-03   -.93593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88651e-10
Minuit parameter uncertainties:
  1  41.1584
  2  1.49488e-05
  3  3.18464e-05
  4  2.284e-05
  5  6.34339e-06
  6  27.9219
  7  1.93613e-05
  8  67.7354
  9  2.70904e-05
  10  45.3902
  11  0.000135725
  12  1.37479e-05
  13  3.50289e-06
  14  4.11107
  15  0.0235389
  16  3.86964e-06
  17  0.000187853
  18  0.785694
  19  9.90922
  20  6.0649e-05
  21  0.000129185
  22  2.46527
  23  10.0448
  24  51.1141
  25  0.000127962
  26  54.6862
  27  17.6965
  28  19.1944
  29  0.296686
  30  0.223769
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  3.870e-06  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:  9.743e-01  2.238e-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:  6.931e-01  2.967e-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: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608369/likelihoodResults_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.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) = 4840.70762447
delta logL = -0.000111905415906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4840.70751357
delta logL = -1.00292709249e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7229       1.0000          .0000       5.0000    
     3 'Normalizat'    .69306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97425       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=   4840.708     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.783        .90712E-02** at limit **
   2  alpha         3.7129        3.7048        .50000        .17170E-05
   3  Normalizat    .69307        .23380        .79029E-01    .33655E-04
   4  Prefactor     .97425        .19107        .45944E-01    .16579E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.71289
  Normalizat = 0.693066
  Prefactor  = 0.974248
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.708     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.7129        3.6990        .50000        .50654    
   3  Normalizat    .69307        .26574        .34992E-03   -1.0417    
   4  Prefactor     .97425        .21772        .24289E-03   -.93593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19904e-12
Minuit parameter uncertainties:
  1  4.08804e-05
  2  2.18703
  3  0.266235
  4  0.217921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608369': 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) = 4840.70751354
delta logL = -9.78083335212e-07

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  4.088e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.713e+00  2.187e+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:  9.742e-01  2.179e-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:  6.931e-01  2.662e-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/608369/cmap_HighResolution_437875201_438134401_4FGL_J1225.0+0330_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-05 14:05:29.125860', job_id='608369', GAL2='0.97', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630875929.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-9.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='766' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 608369: <4FGL_J1225.0+0330_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin766 186.252 3.5098 437875201 438134401 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 :                                   737.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

