/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 239 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin438
RA = 186.252, Dec = 3.5098
tmin = 352857601, tmax = 353116801
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='606611', job_status='RUN', time_executed='2021-09-05 13:49:53.543573', time_epoch_executed='1630874993.54' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606611/ft1_4FGL_J1225.0+0330_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606611/ft1_4FGL_J1225.0+0330_daily_bin438.fits outfile=/scratch/kocevski/606611/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin438.fits ra=186.252 dec=3.5098 rad=12.0 tmin=352857601.0 tmax=353116801.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.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/606611/ltcube_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.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/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits
.....................!
real 11.88
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/606611/ltcube_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.fits outfile=/scratch/kocevski/606611/expmap_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.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/606611/ltcube_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.fits
.....................!
real 192.45
user 185.84
sys 5.28

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/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits scfile=/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits outfile=/scratch/kocevski/606611/cmap_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits scfile=/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits outfile=/scratch/kocevski/606611/cmap_HighResolution_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.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/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/606611/ft2_4FGL_J1225.0+0330_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606611/Model_4FGL_J1225.0+0330_daily_bin438.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/606611/ft1_filtered_4FGL_J1225.0+0330_daily_bin438.fits......................!
real 30.90
user 29.58
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13437E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8257       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3976       1.0000         .10000E-03   10000.    
    15 'Prefactor '    65.790       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .37274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4372       1.0000         .10000E-03   10000.    
    22 'norm      '    .14856E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .41442       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2326       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=   2690.592     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3969 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.291        .32993E-07** at limit **
   2  Prefactor     .10000E-03    254.54        .35829E-05** at limit **
   3  Prefactor     10.190        10.125        .61955E-06    .62896E-03
   4  Prefactor     7.2261        7.8769       -.31043E-06   -.43799E-04
   5  Prefactor     .10000E-03    26.368        .69810E-06** at limit **
   6  Prefactor     .32912        391.27       -.68419E-04    .34982E-04
   7  Prefactor     .10001E-03    1099.7       -.18109E-04** at limit **
   8  Prefactor     .10000E-03    74.207        .63635E-06** at limit **
   9  Prefactor     59.977        65.342       -.27389E-06    .49345E-04
  10  Prefactor     18.292        36.948        .41893E-06    .56000E-07
  11  Prefactor     .10000E-03    30.271        .46333E-06** at limit **
  12  Prefactor     .10000E-03    8.2271        .20730E-06** at limit **
  13  norm          1.8258        2.6012        .48255E-07    .15393E-03
  14  norm          7.3983        5.4543       -.11149E-06    .88042E-04
  15  Prefactor     65.754        68.872       -.84293E-06    .68161E-04
  16  norm          .10000E-03    51.943        .37179E-06** at limit **
  17  Prefactor     .10000E-03    156.98       -.33107E-05** at limit **
  18  norm          .37308        .65779       -.30984E-06   -.14811E-02
  19  Prefactor     19.205        16.334       -.27021E-06    .86720E-04
  20  Prefactor     .10000E-03    15.958        .14488E-07** at limit **
  21  Prefactor     2.4426        18.028       -.13128E-05    .11180E-03
  22  norm          .10000E-03    1.4977        .52613E-06** at limit **
  23  Prefactor     .10000E-03    14.992        .41343E-06** at limit **
  24  Prefactor     .10000E-03    37.762        .33821E-06** at limit **
  25  Prefactor     .10000E-03    45.322       -.44678E-06** at limit **
  26  Prefactor     .10000E-03    22.670        .16253E-06** at limit **
  27  norm          .10000E-03    208.30        .16229E-05** at limit **
  28  Prefactor     .10000E-03    8.3449        .10048E-06** at limit **
  29  Normalizat    .41404        .33290        .74043E-05    .26850E-03
  30  Prefactor     1.2326        .26587       -.13237E-05    .30758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1898
  Prefactor  = 7.22606
  Prefactor  = 0.000100001
  Prefactor  = 0.329116
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 59.9765
  Prefactor  = 18.292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82577
  norm       = 7.39833
  Prefactor  = 65.7542
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.373077
  Prefactor  = 19.2048
  Prefactor  = 0.0001
  Prefactor  = 2.44262
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.414044
  Prefactor  = 1.2326
 **********
 **   18 **HESSE 
 **********

 FCN=   2690.592     FROM HESSE     STATUS=OK           578 CALLS     4547 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    254.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.190        10.175        .12552E-03   -1.5069    
   4  Prefactor     7.2261        7.8780        .14760E-03   -1.5170    
   5  Prefactor     .10000E-03    26.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32912        393.04        .50683E-02   -1.5593    
   7  Prefactor     .10001E-03    1094.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.977        65.191        .51815E-04   -1.4158    
  10  Prefactor     18.292        36.795        .93601E-04   -1.4852    
  11  Prefactor     .10000E-03    30.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2407        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8258        2.5783        .96498E-04   -1.5438    
  14  norm          7.3983        5.4135        .94864E-04   -1.5164    
  15  Prefactor     65.754        68.733        .49480E-04   -1.4084    
  16  norm          .10000E-03    51.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    157.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37308        .61495        .51572E-03   -1.5586    
  19  Prefactor     19.205        16.313        .91417E-04   -1.4831    
  20  Prefactor     .10000E-03    15.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4426        18.052        .13105E-02   -1.5395    
  22  norm          .10000E-03    25.586        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    45.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    211.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3633        .14635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .41404        .35001        .38415E-03   -1.1658    
  30  Prefactor     1.2326        .28588        .19791E-03   -.85334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6777e-09
Minuit parameter uncertainties:
  1  1.0756e-05
  2  0.000685147
  3  10.1762
  4  7.87917
  5  0.000320734
  6  22.8957
  7  0.00810104
  8  0.000126735
  9  65.2689
  10  36.8407
  11  4.17647e-05
  12  5.94647e-05
  13  2.57846
  14  5.41382
  15  68.8157
  16  0.000161611
  17  0.000655169
  18  0.614956
  19  16.3169
  20  3.68648e-06
  21  13.2862
  22  0.000186624
  23  0.00026956
  24  0.000133359
  25  9.26669e-06
  26  1.80121e-05
  27  0.000788857
  28  9.79905e-06
  29  0.351879
  30  0.286241
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.616e-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:  1.233e+00  2.862e-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:  4.140e-01  3.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/606611/likelihoodResults_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.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) = 2690.59229788
delta logL = -9.15164118851e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2690.59220742
delta logL = -1.04989385363e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7557       1.0000          .0000       5.0000    
     3 'Normalizat'    .41404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2326       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=   2690.592     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      287 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    344.48        .18142E-01** at limit **
   2  alpha         2.6999        3.4485        .50000        .18372E-07
   3  Normalizat    .41404        .17088E-01    .38415E-03    .26946E-04
   4  Prefactor     1.2326        .14746E-01    .19791E-03    .55565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.69989
  Normalizat = 0.414037
  Prefactor  = 1.2326
 **********
 **   18 **HESSE 
 **********

 FCN=   2690.592     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1722.5        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6999        3.8034        .50000        .80040E-01
   3  Normalizat    .41404        .40110E-01    .15366E-04   -1.1658    
   4  Prefactor     1.2326        .34614E-01    .39582E-04   -.85334    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93586e-09
Minuit parameter uncertainties:
  1  0.000698629
  2  5093.54
  3  0.0401126
  4  0.0346148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606611': 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): 102
logL (Free Index) = 2690.59220633
delta logL = 3.81719473808e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  6.986e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.700e+00  5.094e+03  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.233e+00  3.461e-02  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:  4.140e-01  4.011e-02  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/606611/cmap_HighResolution_352857601_353116801_4FGL_J1225.0+0330_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-05 13:59:00.226939', job_id='606611', GAL2='1.23', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630875540.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='438' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:59:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 606611: <4FGL_J1225.0+0330_daily_bin438> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin438> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:41 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:45:43 2021
Terminated at Sun Sep  5 13:59:00 2021
Results reported at Sun Sep  5 13:59:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin438 186.252 3.5098 352857601 353116801 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 :                                   544.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

