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


Performing analysis on: 4FGL_J1521.8+4338_monthly_bin118
RA = 230.464, Dec = 43.6344
tmin = 542851201, tmax = 545443201
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='254642', job_status='RUN', time_executed='2021-10-27 10:17:00.004653', time_epoch_executed='1635355020.0' WHERE source_name='4FGL J1521.8+4338' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254642

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254642/ft1_4FGL_J1521.8+4338_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254642/ft1_4FGL_J1521.8+4338_monthly_bin118.fits outfile=/scratch/kocevski/254642/ft1_filteredMKT_4FGL_J1521.8+4338_monthly_bin118.fits ra=230.464 dec=43.6344 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.40
user 17.89
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.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/254642/ft1_filteredMKT_4FGL_J1521.8+4338_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.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.59
user 0.42
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/254642/ltcube_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.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/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits
.....................!
real 40.57
user 40.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/254642/ltcube_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits outfile=/scratch/kocevski/254642/expmap_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.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/254642/ltcube_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits
.....................!
real 191.73
user 185.78
sys 5.09

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1521.8+4338 @ 230.464 43.6344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits outfile=/scratch/kocevski/254642/cmap_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.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=230.464 yref=43.6344 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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits outfile=/scratch/kocevski/254642/cmap_HighResolution_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.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=230.464 yref=43.6344 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.62
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254642/Model_4FGL_J1521.8+4338_monthly_bin118.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/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits.....................!
real 39.04
user 37.55
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits', '/scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits', expMap='/scratch/kocevski/254642/expmap_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits', expCube='/scratch/kocevski/254642/ltcube_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/254642/Model_4FGL_J1521.8+4338_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1521.8+4338'

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/254642/ft1_filtered_4FGL_J1521.8+4338_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/254642/ft2_4FGL_J1521.8+4338_monthly_bin118.fits
Exposure map: /scratch/kocevski/254642/expmap_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits
Exposure cube: /scratch/kocevski/254642/ltcube_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/254642/Model_4FGL_J1521.8+4338_monthly_bin118.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) = 4315.37109073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6035       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.519       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .48652       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2067       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.671       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.150       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .29760       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4315.334     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3511 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.750        70.670       -.18284E-04   -.46416E-05
   2  Prefactor     .10000E-03    116.64        .54283E-05** at limit **
   3  Prefactor     .10000E-03    30.016        .43405E-05** at limit **
   4  norm          8.6024        7.1604        .46320E-05   -.59748E-04
   5  Prefactor     .10000E-03    14.833       -.75676E-05** at limit **
   6  Prefactor     49.524        62.753        .37996E-05   -.68919E-05
   7  norm          3.9976        5.9574       -.13456E-05   -.24547E-03
   8  Prefactor     .10000E-03    5.0238       -.27808E-07** at limit **
   9  Prefactor     .10000E-03    18.285        .93918E-05** at limit **
  10  norm          .10000E-03    2.4906       -.74679E-08** at limit **
  11  Prefactor     .10000E-03    1.9528       -.75481E-08** at limit **
  12  Prefactor     .10000E-03    6.0660       -.52637E-06** at limit **
  13  norm          .48712        1.7419       -.10989E-07   -.59688E-03
  14  norm          .10000E-03    5.9494        .34807E-06** at limit **
  15  Prefactor     .10000E-03    18.233        .61887E-05** at limit **
  16  Prefactor     66.484        77.389       -.37356E-05    .78177E-05
  17  Prefactor     .10000E-03    14.537        .53758E-05** at limit **
  18  Prefactor     .10000E-03    19.270       -.15175E-04** at limit **
  19  norm          3.2064        1.3205        .54421E-07    .28500E-04
  20  Prefactor     10.667        15.881       -.13318E-05   -.16199E-04
  21  norm          .10000E-03    7.1889        .81137E-07** at limit **
  22  Prefactor     6.1801        33.928        .71376E-05   -.25196E-05
  23  Prefactor     .10000E-03    401.31       -.19205E-04** at limit **
  24  Prefactor     14.143        17.516       -.31390E-05    .18393E-04
  25  Prefactor     .10000E-03    42.249       -.33116E-05** at limit **
  26  Prefactor     .10000E-03    5.8187        .20327E-06** at limit **
  27  Normalizat    .29764        .28816       -.26745E-05   -.48042E-04
  28  Prefactor     1.3427        .25820        .91789E-06    .17775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.60241
  Prefactor  = 0.0001
  Prefactor  = 49.5237
  norm       = 3.9976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.487116
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.4844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20644
  Prefactor  = 10.6665
  norm       = 0.0001
  Prefactor  = 6.18006
  Prefactor  = 0.0001
  Prefactor  = 14.1427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.297636
  Prefactor  = 1.34273
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.334     FROM HESSE     STATUS=OK           513 CALLS     4024 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.750        70.185        .76023E-04   -1.4654    
   2  Prefactor     .10000E-03    116.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6024        7.1048        .13666E-03   -1.5121    
   5  Prefactor     .10000E-03    14.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.524        62.742        .56987E-04   -1.4299    
   7  norm          3.9976        5.9636        .18922E-03   -1.5308    
   8  Prefactor     .10000E-03    5.0342        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4949        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9545        .89599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0716        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48712        2.0046        .12068E-02   -1.5568    
  14  norm          .10000E-03    6.1487        .31273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.484        74.791        .49220E-04   -1.4075    
  17  Prefactor     .10000E-03    14.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2064        1.3082        .44805E-04   -1.5350    
  20  Prefactor     10.667        15.824        .12265E-03   -1.5055    
  21  norm          .10000E-03    7.1951        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.1801        33.719        .16132E-03   -1.5211    
  23  Prefactor     .10000E-03    401.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.143        17.488        .10648E-03   -1.4956    
  25  Prefactor     .10000E-03    42.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.9478        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .29764        .26754        .40666E-03   -1.2298    
  28  Prefactor     1.3427        .25531        .19808E-03   -.82045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89954e-10
Minuit parameter uncertainties:
  1  70.3946
  2  2.84408e-05
  3  2.39173e-05
  4  7.10549
  5  2.77658e-05
  6  62.8257
  7  5.96452
  8  8.28667e-06
  9  3.4741e-06
  10  3.34981e-07
  11  1.70495e-06
  12  3.92822e-06
  13  1.97625
  14  5.89247e-06
  15  7.48626e-06
  16  74.8968
  17  5.99402e-06
  18  3.16074e-05
  19  1.3082
  20  15.8304
  21  3.12623e-05
  22  28.8963
  23  0.000633734
  24  17.4945
  25  0.000162758
  26  1.31029e-05
  27  0.268694
  28  0.25555
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  3.161e-05  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.343e+00  2.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  2.976e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254642/likelihoodResults_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.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): 102
logL (Free Index) = 4315.33460024
delta logL = -0.000245522209298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4315.10764018
delta logL = 0.226714536703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7027       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8189       1.0000          .0000       10.000    
     3 'Normalizat'    .31171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4315.108     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6970        13.600       -.84129E-05   -.19038E-03
   2  Index         1.8188        .85949       -.56030E-04    .31069E-04
   3  Normalizat    .31175        .24522        .15064E-06    .88809E-04
   4  Prefactor     1.3203        .24497        .70742E-06    .18305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69701
  Index      = 1.81875
  Normalizat = 0.311745
  Prefactor  = 1.32029
 **********
 **   18 **HESSE 
 **********

 FCN=   4315.108     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6970        13.306        .15499E-03   -1.5190    
   2  Index         1.8188        .83789        .93306E-02   -.68963    
   3  Normalizat    .31175        .25042        .39748E-03   -1.2214    
   4  Prefactor     1.3203        .25096        .19941E-03   -.82706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26352e-10
Minuit parameter uncertainties:
  1  13.3115
  2  0.844626
  3  0.25132
  4  0.251194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254642': 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) = 4315.10763985
delta logL = 0.226714866792

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  6.697e+00  1.331e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  1.819e+00  8.446e-01  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.320e+00  2.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  3.117e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 230.464 43.634

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/254642/cmap_HighResolution_542851201_545443201_4FGL_J1521.8+4338_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-10-27 10:30:13.588013', job_id='254642', GAL2='1.32', fit_tolerance='1e-08', EG2='0.31', EG='0.30', time_epoch_completed='1635355813.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.27e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='118' AND source_name='4FGL J1521.8+4338' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 27 10:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 254642: <4FGL_J1521.8+4338_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1521.8+4338_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Oct 27 10:15:18 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 27 10:15:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 27 10:15:21 2021
Terminated at Wed Oct 27 10:30:13 2021
Results reported at Wed Oct 27 10:30:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_monthly_bin118 230.464 43.6344 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1521.8+4338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

