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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1012
RA = 203.059, Dec = 47.3728
tmin = 501638401, tmax = 501897601
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='751736', job_status='RUN', time_executed='2021-09-08 02:19:43.163316', time_epoch_executed='1631092783.16' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751736/ft1_4FGL_J1332.2+4722_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751736/ft1_4FGL_J1332.2+4722_daily_bin1012.fits outfile=/scratch/kocevski/751736/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1012.fits ra=203.059 dec=47.3728 rad=12.0 tmin=501638401.0 tmax=501897601.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 2.85
user 2.64
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.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/751736/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.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.45
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/751736/ltcube_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.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/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits
.....................!
real 13.26
user 12.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/751736/ltcube_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits outfile=/scratch/kocevski/751736/expmap_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.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/751736/ltcube_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits
.....................!
real 154.89
user 150.34
sys 4.14

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

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits outfile=/scratch/kocevski/751736/cmap_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.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=203.059 yref=47.3728 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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits outfile=/scratch/kocevski/751736/cmap_HighResolution_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.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=203.059 yref=47.3728 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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/751736/Model_4FGL_J1332.2+4722_daily_bin1012.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/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits.....................!
real 38.00
user 36.71
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits', '/scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits', expMap='/scratch/kocevski/751736/expmap_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits', expCube='/scratch/kocevski/751736/ltcube_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/751736/Model_4FGL_J1332.2+4722_daily_bin1012.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/751736/ft1_filtered_4FGL_J1332.2+4722_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/751736/ft2_4FGL_J1332.2+4722_daily_bin1012.fits
Exposure map: /scratch/kocevski/751736/expmap_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits
Exposure cube: /scratch/kocevski/751736/ltcube_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/751736/Model_4FGL_J1332.2+4722_daily_bin1012.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) = 5135.5430807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0754       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9105       1.0000         .10000E-03   10000.    
     8 'norm      '    21.232       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.149       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.399       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3316       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8185       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9239       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.507       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.8004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.992       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .77682       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.017       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95088       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70921       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5135.530     FROM MIGRAD    STATUS=CONVERGED     85 CALLS     3395 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7789        1.0804        .75610E-06    .21445E-03
   2  Prefactor     33.316        1.8049       -.17190E-05    .18153E-02
   3  Prefactor     6.0706        1.0494        .56035E-06   -.94003E-04
   4  norm          3.3942        2.2749       -.52198E-07   -.30340E-03
   5  Prefactor     28.518        1.7174       -.19756E-05    .25395E-02
   6  Prefactor     .10000E-03    4.7554        .96625E-07** at limit **
   7  Prefactor     8.9004        1.7124       -.28565E-05    .53937E-03
   8  norm          21.231        1.0072        .13235E-07   -.13467E-03
   9  norm          5.0047        4.5021       -.29115E-05   -.37042E-03
  10  Prefactor     .10008E-03    11.994       -.18109E-04** at limit **
  11  Prefactor     .10011E-03    11.697       -.14913E-04** at limit **
  12  Prefactor     48.142        1.8727       -.17200E-05    .35847E-02
  13  norm          3.8987        3.7333        .21410E-06   -.35520E-03
  14  Prefactor     30.141        3.1423       -.41113E-05    .60188E-02
  15  Prefactor     .10050E-03    9.6737        .31220E-04** at limit **
  16  Prefactor     25.393        1.6417       -.19029E-05    .21960E-02
  17  norm          7.3306        2.1679       -.13375E-07    .49189E-03
  18  norm          .10002E-03    70.123       -.63124E-04** at limit **
  19  norm          8.8165        1.3123        .21717E-05    .63312E-02
  20  norm          5.9192        1.0263       -.41751E-06    .68668E-05
  21  Prefactor     .10017E-03    5.7530       -.99068E-05** at limit **
  22  Prefactor     .10000E-03    10.128       -.31845E-05** at limit **
  23  Prefactor     60.515        2.2853        .20327E-05   -.57893E-02
  24  Prefactor     2.7864        5.8575        .47584E-05    .80722E-04
  25  Prefactor     17.980        2.3244       -.33048E-05    .22213E-02
  26  Prefactor     .77598        2.3696       -.43381E-07   -.38784E-04
  27  Prefactor     .10028E-03    6.1493       -.15091E-04** at limit **
  28  Prefactor     .10027E-03    31.303        .66334E-04** at limit **
  29  Prefactor     15.017        1.0110       -.11755E-06    .46498E-04
  30  Normalizat    .95188        .20302        .17354E-05   -.26771E-03
  31  Prefactor     .70812        .24782       -.89462E-06   -.19612E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77889
  Prefactor  = 33.3165
  Prefactor  = 6.07058
  norm       = 3.39424
  Prefactor  = 28.5177
  Prefactor  = 0.0001
  Prefactor  = 8.90041
  norm       = 21.2308
  norm       = 5.0047
  Prefactor  = 0.000100078
  Prefactor  = 0.000100108
  Prefactor  = 48.142
  norm       = 3.89872
  Prefactor  = 30.1415
  Prefactor  = 0.000100497
  Prefactor  = 25.3927
  norm       = 7.33057
  norm       = 0.000100017
  norm       = 8.81654
  norm       = 5.91924
  Prefactor  = 0.000100166
  Prefactor  = 0.0001
  Prefactor  = 60.5147
  Prefactor  = 2.78641
  Prefactor  = 17.9804
  Prefactor  = 0.775975
  Prefactor  = 0.000100284
  Prefactor  = 0.00010027
  Prefactor  = 15.0166
  Normalizat = 0.951882
  Prefactor  = 0.708124
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.530     FROM HESSE     STATUS=OK           694 CALLS     4089 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7789        8.3135        .35943E-02   -1.5150    
   2  Prefactor     33.316        23.679        .17353E-02   -1.4553    
   3  Prefactor     6.0706        14.080        .40723E-02   -1.5215    
   4  norm          3.3942        2.2818        .54897E-02   -1.5339    
   5  Prefactor     28.518        40.072        .18754E-02   -1.4639    
   6  Prefactor     .10000E-03    4.7281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9004        21.131        .33568E-02   -1.5111    
   8  norm          21.231        15.065        .21731E-02   -1.4786    
   9  norm          5.0047        4.5414        .44936E-02   -1.5261    
  10  Prefactor     .10008E-03    26.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10011E-03    26.044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.142        36.293        .14447E-02   -1.4319    
  13  norm          3.8987        3.7596        .51091E-02   -1.5313    
  14  Prefactor     30.141        46.965        .18241E-02   -1.4609    
  15  Prefactor     .10050E-03    15.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.393        34.744        .19872E-02   -1.4700    
  17  norm          7.3306        2.1863        .37032E-02   -1.5166    
  18  norm          .10002E-03    74.080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8165        4.9241        .33744E-02   -1.5114    
  20  norm          5.9192        11.455        .41247E-02   -1.5221    
  21  Prefactor     .10017E-03    16.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.515        52.408        .12895E-02   -1.4151    
  24  Prefactor     2.7864        6.7443        .60776E-02   -1.5374    
  25  Prefactor     17.980        26.113        .23606E-02   -1.4860    
  26  Prefactor     .77598        2.4242        .12353E-01   -1.5532    
  27  Prefactor     .10028E-03    16.785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10027E-03    38.549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.017        16.288        .25839E-02   -1.4933    
  30  Normalizat    .95188        .18124        .45548E-01   -.94660    
  31  Prefactor     .70812        .21268        .69724E-01   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43877e-07
Minuit parameter uncertainties:
  1  8.31472
  2  23.6857
  3  14.088
  4  2.28187
  5  40.1095
  6  2.89248e-05
  7  21.1491
  8  15.0681
  9  4.54167
  10  0.00284529
  11  0.00335569
  12  36.3098
  13  3.75982
  14  47.0223
  15  0.00556471
  16  34.7721
  17  2.18634
  18  0.00227508
  19  4.92429
  20  11.4589
  21  0.00332309
  22  0.000112524
  23  52.448
  24  6.74611
  25  26.1295
  26  2.42449
  27  0.00436913
  28  0.00645788
  29  16.2925
  30  0.18136
  31  0.212922
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  4.814e+01  3.631e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  7.081e-01  2.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.519e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 203.059 47.373
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.97e-06

TS (Fixed Index): 3.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751736/likelihoodResults_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.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) = 5135.52358373
delta logL = 0.00612772895693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5135.51901461
delta logL = 0.0106968457612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.306       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5268       1.0000          .0000       10.000    
     3 'Normalizat'    .95766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   5135.519     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.307        48.669        .55455E-04   -.88440E-04
   2  Index         2.5267        .79807        .82984E-02   -.15997E-04
   3  Normalizat    .95770        .20491        .21757E-03   -.33285E-04
   4  Prefactor     .70255        .25016        .30963E-03   -.15531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.3072
  Index      = 2.52674
  Normalizat = 0.957697
  Prefactor  = 0.702546
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.519     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.307        46.774        .11091E-04   -1.4260    
   2  Index         2.5267        .76641        .33193E-03   -.51743    
   3  Normalizat    .95770        .20480        .87027E-05   -.94461    
   4  Prefactor     .70255        .25008        .12385E-04   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41486e-11
Minuit parameter uncertainties:
  1  46.8069
  2  0.770445
  3  0.204966
  4  0.250486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751736': 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) = 5135.51901459
delta logL = 0.0106968642795

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  5.231e+01  4.681e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.527e+00  7.704e-01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  7.025e-01  2.505e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.577e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 203.059 47.373
Photon Index (Free Index): 2.53 +/- 0.77
Photon Flux (Free Index): 4.88e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.11e-05

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/751736/cmap_HighResolution_501638401_501897601_4FGL_J1332.2+4722_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.38e-05', photon_flux_error='3.95e-08', dlogl='1.07e-02', energy_flux='1.32e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-09-08 02:32:14.612389', photon_index_error2='0.77', photon_index2='2.53', ts='3.00', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.11e-05', EG='0.95', time_epoch_completed='1631093534.61', return_code='0', job_id='751736', GAL2='0.70', EG2='0.96', return_code2='0', energy_flux_error='9.97e-06', photon_flux_error2='4.46e-08', ts2='3.02', photon_index='2.64' WHERE bin_id='1012' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 751736: <4FGL_J1332.2+4722_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1012> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 02:15:38 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:17:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:17:36 2021
Terminated at Wed Sep  8 02:32:15 2021
Results reported at Wed Sep  8 02:32:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1012 203.059 47.3728 501638401 501897601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.2+4722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   684.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            997 sec.

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

