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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin440
RA = 230.464, Dec = 43.6344
tmin = 353376001, tmax = 353635201
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='499219', job_status='RUN', time_executed='2021-09-12 01:45:37.078105', time_epoch_executed='1631436337.08' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499219

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499219/ft1_4FGL_J1521.8+4338_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499219/ft1_4FGL_J1521.8+4338_daily_bin440.fits outfile=/scratch/kocevski/499219/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin440.fits ra=230.464 dec=43.6344 rad=12.0 tmin=353376001.0 tmax=353635201.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.44
user 3.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.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/499219/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin440.fits evtable="EVENTS" outfile="/scratch/kocevski/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/499219/ltcube_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.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/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits
.....................!
real 11.92
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/499219/ltcube_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits outfile=/scratch/kocevski/499219/expmap_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.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/499219/ltcube_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits
.....................!
real 190.24
user 185.09
sys 4.82

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/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits scfile=/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits outfile=/scratch/kocevski/499219/cmap_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits scfile=/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits outfile=/scratch/kocevski/499219/cmap_HighResolution_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits', '/scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits', expMap='/scratch/kocevski/499219/expmap_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits', expCube='/scratch/kocevski/499219/ltcube_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/499219/Model_4FGL_J1521.8+4338_daily_bin440.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/499219/ft1_filtered_4FGL_J1521.8+4338_daily_bin440.fits
Spacecraft file(s): /scratch/kocevski/499219/ft2_4FGL_J1521.8+4338_daily_bin440.fits
Exposure map: /scratch/kocevski/499219/expmap_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits
Exposure cube: /scratch/kocevski/499219/ltcube_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/499219/Model_4FGL_J1521.8+4338_daily_bin440.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) = 6143.07512238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.023       1.0000         .10000E-03   10000.    
     4 'norm      '    18.208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3444       1.0000         .10000E-03   10000.    
    13 'norm      '    .79070       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12674E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.7071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16300E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.605       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3855       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .87207       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96242       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=   6143.059     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3486 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.025        .16530E-06** at limit **
   2  Prefactor     91.439        58.457       -.39771E-05   -.43849E-03
   3  Prefactor     23.025        19.825        .31122E-06    .21012E-04
   4  norm          18.208        8.7045        .10846E-06   -.12608E-03
   5  Prefactor     19.751        31.659       -.11550E-06   -.34137E-04
   6  Prefactor     .10000E-03    11.167        .63947E-07** at limit **
   7  norm          5.4680        5.6146       -.17871E-06   -.10927E-03
   8  Prefactor     .10000E-03    7.3411       -.95075E-06** at limit **
   9  Prefactor     10.874        17.425        .50486E-06    .16278E-03
  10  norm          1.2028        1.1295        .17619E-07   -.52281E-04
  11  Prefactor     .53383        11.826        .23293E-05   -.67795E-03
  12  Prefactor     1.3363        9.5059        .31022E-05   -.96076E-04
  13  norm          .78862        2.1262        .36415E-06   -.10178E-02
  14  norm          .10000E-03    1.4535       -.55302E-07** at limit **
  15  Prefactor     .10000E-03    4.7562       -.91042E-07** at limit **
  16  Prefactor     .10000E-03    30.285        .30941E-05** at limit **
  17  Prefactor     11.074        21.718       -.71617E-06   -.98308E-04
  18  Prefactor     .10000E-03    23.964       -.15123E-05** at limit **
  19  norm          9.7073        2.5319        .17733E-07   -.25004E-03
  20  Prefactor     .10000E-03    38.407       -.23198E-05** at limit **
  21  norm          15.600        12.593        .20459E-06    .22202E-04
  22  Prefactor     9.1123        15.603        .33658E-06    .16519E-04
  23  Prefactor     .10000E-03    26.789        .12546E-05** at limit **
  24  Prefactor     7.3857        5.9318        .19056E-05   -.41989E-03
  25  Prefactor     .10000E-03    7.2410        .63707E-06** at limit **
  26  Prefactor     .10000E-03    2.9604        .44957E-07** at limit **
  27  Normalizat    .87180        .17682       -.96034E-06   -.25090E-03
  28  Prefactor     .96269        .17782       -.45607E-06   -.22742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 91.4394
  Prefactor  = 23.025
  norm       = 18.208
  Prefactor  = 19.7514
  Prefactor  = 0.0001
  norm       = 5.46795
  Prefactor  = 0.000100001
  Prefactor  = 10.8742
  norm       = 1.20284
  Prefactor  = 0.533826
  Prefactor  = 1.33626
  norm       = 0.788619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 11.0744
  Prefactor  = 0.0001
  norm       = 9.70729
  Prefactor  = 0.000100002
  norm       = 15.5999
  Prefactor  = 9.1123
  Prefactor  = 0.000100001
  Prefactor  = 7.3857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.871805
  Prefactor  = 0.962692
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.059     FROM HESSE     STATUS=OK           523 CALLS     4009 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     91.439        61.845        .21009E-03   -1.3793    
   3  Prefactor     23.025        19.847        .83480E-04   -1.4748    
   4  norm          18.208        8.6990        .93863E-04   -1.4854    
   5  Prefactor     19.751        31.656        .90121E-04   -1.4819    
   6  Prefactor     .10000E-03    11.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4680        5.6168        .17182E-03   -1.5240    
   8  Prefactor     .10000E-03    7.4103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.874        17.328        .12161E-03   -1.5048    
  10  norm          1.2028        1.1293        .76513E-04   -1.5489    
  11  Prefactor     .53383        34.038        .37909E-02   -1.5562    
  12  Prefactor     1.3363        9.6290        .37777E-03   -1.5477    
  13  norm          .78862        2.0015        .13664E-03   -1.5530    
  14  norm          .10000E-03    1.4624        .92219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7822        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.074        21.664        .12034E-03   -1.5042    
  18  Prefactor     .10000E-03    24.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7073        2.5317        .61235E-04   -1.5085    
  20  Prefactor     .10000E-03    38.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.600        12.495        .50695E-03   -1.4918    
  22  Prefactor     9.1123        15.597        .13278E-03   -1.5104    
  23  Prefactor     .10000E-03    26.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3857        6.1046        .73791E-03   -1.5164    
  25  Prefactor     .10000E-03    7.2659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.0510        .26328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .87180        .21122        .24269E-03   -.97458    
  28  Prefactor     .96269        .21272        .24656E-03   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89868e-09
Minuit parameter uncertainties:
  1  2.7525e-05
  2  61.8882
  3  19.853
  4  8.69959
  5  31.6824
  6  5.56575e-05
  7  5.61734
  8  0.000124432
  9  17.3355
  10  1.12932
  11  8.52961
  12  7.17545
  13  2.00171
  14  2.9475e-07
  15  7.26079e-06
  16  0.000744253
  17  21.6789
  18  0.000140036
  19  2.53177
  20  0.000570602
  21  12.4968
  22  15.6043
  23  0.000274918
  24  6.1051
  25  7.04208e-05
  26  1.70113e-06
  27  0.21142
  28  0.212909
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.400e-04  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:  9.627e-01  2.129e-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:  8.718e-01  2.114e-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: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/499219/likelihoodResults_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.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) = 6143.05911023
delta logL = -0.000194132673641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.0589164
delta logL = -3.0429691833e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9963       1.0000          .0000       10.000    
     3 'Normalizat'    .87188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96263       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6143.053     FROM MIGRAD    STATUS=CONVERGED    272 CALLS      431 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45425        304.03        .36101E-02   -.20557E-03
   2  Index         4.0154        6.4185        .50000        .20220E-04
   3  Normalizat    .86560        .24248E-01    .24269E-03    .39350E-05
   4  Prefactor     .96636        .25873E-01    .24656E-03    .59942E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.454246
  Index      = 4.01538
  Normalizat = 0.865597
  Prefactor  = 0.966358
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.053     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45425        19.462        .14440E-03   -1.5843    
   2  Index         4.0154        6.9914        .27048E-01   -.19822    
   3  Normalizat    .86560        .20513        .97076E-05   -.97680    
   4  Prefactor     .96636        .21293        .98625E-05   -.93859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67222e-11
Minuit parameter uncertainties:
  1  5.948
  2  6.16933
  3  0.205317
  4  0.213115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499219': 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) = 6143.05323804
delta logL = 0.0056780566747

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  4.542e-01  5.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.015e+00  6.169e+00  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:  9.664e-01  2.131e-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:  8.656e-01  2.053e-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/499219/cmap_HighResolution_353376001_353635201_4FGL_J1521.8+4338_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-12 01:59:28.377244', job_id='499219', GAL2='0.97', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631437168.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.68e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.94' WHERE bin_id='440' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 01:59:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 499219: <4FGL_J1521.8+4338_daily_bin440> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin440> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Sep 12 01:45:23 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 01:45:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 01:45:25 2021
Terminated at Sun Sep 12 01:59:28 2021
Results reported at Sun Sep 12 01:59:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin440 230.464 43.6344 353376001 353635201 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 :                                   826.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

