aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 87 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7584
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1755
RA = 203.059, Dec = 47.3728
tmin = 694224001, tmax = 694483201
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='823754', job_status='RUN', time_executed='2023-01-04 01:02:52.708834', time_epoch_executed='1672822972.71' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823754/ft1_4FGL_J1332.2+4722_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823754/ft1_4FGL_J1332.2+4722_daily_bin1755.fits outfile=/scratch/kocevski/823754/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1755.fits ra=203.059 dec=47.3728 rad=12.0 tmin=694224001.0 tmax=694483201.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.48
user 2.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.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/823754/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.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.29
sys 0.15

Number of photons that the gtmktime cut: 707

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/823754/ltcube_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.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/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits
.....................!
real 13.58
user 13.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/823754/ltcube_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits outfile=/scratch/kocevski/823754/expmap_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.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/823754/ltcube_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits
.....................!
real 158.77
user 153.67
sys 3.99

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/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits scfile=/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits outfile=/scratch/kocevski/823754/cmap_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits scfile=/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits outfile=/scratch/kocevski/823754/cmap_HighResolution_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.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.31
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits', '/scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits', expMap='/scratch/kocevski/823754/expmap_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits', expCube='/scratch/kocevski/823754/ltcube_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823754/Model_4FGL_J1332.2+4722_daily_bin1755.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  0.000e+00  1.000e+06 ( 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/823754/ft1_filtered_4FGL_J1332.2+4722_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/823754/ft2_4FGL_J1332.2+4722_daily_bin1755.fits
Exposure map: /scratch/kocevski/823754/expmap_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits
Exposure cube: /scratch/kocevski/823754/ltcube_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823754/Model_4FGL_J1332.2+4722_daily_bin1755.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) = 7795.68551785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79640E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    56.113       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13503E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.3361       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15025E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    18.193       1.0000          .0000       .10000E+07
     7 'norm      '    .87823E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .96090E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    38.922       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.358       1.0000          .0000       .10000E+07
    11 'norm      '    1.7201       1.0000          .0000       .10000E+07
    12 'Prefactor '    47.508       1.0000          .0000       .10000E+07
    13 'norm      '    .26090E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .48406E-07   1.0000          .0000       .10000E+07
    15 'norm      '    4.9241       1.0000          .0000       .10000E+07
    16 'Prefactor '    24.788       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17956E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .46535E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .60288E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4775       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.5040       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.8109       1.0000          .0000       .10000E+07
    23 'Prefactor '    29.682       1.0000          .0000       .10000E+07
    24 'Normalizat'    .81226       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99231       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=   7795.651     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2122 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    3.8277       -.61716E-06** at limit **
   2  Prefactor     56.481        20.634       -.29449E-07   -.96791E-01
   3  Prefactor      .0000        4.6058       -.10161E-06** at limit **
   4  norm          1.3388        1.9495        .18381E-07   -.46433E-03
   5  Prefactor     .55511E-10    7.7949        .31679E-06** at limit **
   6  Prefactor     18.222        1.3407        .81532E-08    .45875E-02
   7  norm          .11102E-08    9.0213       -.17792E-06** at limit **
   8  norm           .0000        1.1449       -.23778E-06** at limit **
   9  Prefactor     39.575        13.294        .11505E-06    .88686E-01
  10  Prefactor     10.225        14.743        .12757E-06    .22241E-01
  11  norm          1.7161        2.0538       -.13714E-06    .14105E-02
  12  Prefactor     48.850        38.043        .55221E-06   -.38603E-01
  13  norm           .0000        .39480       -.70505E-07** at limit **
  14  norm           .0000        .60049       -.46778E-07** at limit **
  15  norm          4.9336        5.9091       -.47921E-07    .83352E-04
  16  Prefactor     24.616        5.2054        .24393E-07   -.77960E-02
  17  Prefactor      .0000        9.7201       -.73527E-07** at limit **
  18  Prefactor      .0000        .99061       -.17143E-07** at limit **
  19  Prefactor     .10891        46.164       -.59467E-06** at limit **
  20  Prefactor     2.4742        1.7161        .84140E-07   -.37073E-02
  21  Prefactor     2.6522        6.5889        .26036E-06    .11583E-01
  22  Prefactor     4.5872        38.191       -.32150E-06    .11653E-01
  23  Prefactor     29.561        2.9910       -.11395E-07   -.92701E-01
  24  Normalizat    .81059        .14979        .46137E-05   -.13931E-03
  25  Prefactor     .99281        .18374       -.35386E-05   -.71286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 56.4809
  Prefactor  = 0
  norm       = 1.33881
  Prefactor  = 5.55112e-11
  Prefactor  = 18.2218
  norm       = 1.11022e-09
  norm       = 0
  Prefactor  = 39.5753
  Prefactor  = 10.2255
  norm       = 1.71605
  Prefactor  = 48.8505
  norm       = 0
  norm       = 0
  norm       = 4.93356
  Prefactor  = 24.6163
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.108907
  Prefactor  = 2.47424
  Prefactor  = 2.65218
  Prefactor  = 4.58716
  Prefactor  = 29.5614
  Normalizat = 0.810588
  Prefactor  = 0.992814
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.651     FROM HESSE     STATUS=OK           485 CALLS     2607 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    3.8239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.481        23.717        .13351E-03   -1.5558    
   3  Prefactor      .0000        4.6036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3388        1.9765        .94871E-03   -1.5685    
   5  Prefactor     .55511E-10    7.7511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.222        13.734        .23454E-03   -1.5623    
   7  norm          .11102E-08    9.0798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.1416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.575        32.191        .16031E-03   -1.5582    
  10  Prefactor     10.225        26.992        .31108E-03   -1.5644    
  11  norm          1.7161        2.0801        .80070E-03   -1.5682    
  12  Prefactor     48.850        40.398        .14509E-03   -1.5568    
  13  norm           .0000        .38991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .59795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9336        5.9127        .45301E-03   -1.5664    
  16  Prefactor     24.616        32.765        .20090E-03   -1.5609    
  17  Prefactor      .0000        9.7434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .98780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10891        6.2260        .12380E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4742        1.9371        .64928E-03   -1.5677    
  21  Prefactor     2.6522        40.814        .64552E-03   -1.5675    
  22  Prefactor     4.5872        70.069        .51680E-03   -1.5665    
  23  Prefactor     29.561        14.327        .18358E-03   -1.5599    
  24  Normalizat    .81059        .13118        .43770E-01   -.99677    
  25  Prefactor     .99281        .15728        .46171E-01   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5538e-07
Minuit parameter uncertainties:
  1  4.49787e-05
  2  23.7172
  3  1.15441e-05
  4  1.97649
  5  3.89437e-05
  6  13.7343
  7  0.000198931
  8  8.91855e-06
  9  32.1907
  10  26.9926
  11  2.08013
  12  40.3985
  13  1.42885e-06
  14  7.65953e-07
  15  5.91267
  16  32.7655
  17  1.52613e-05
  18  5.88863e-07
  19  1.64689
  20  1.93709
  21  20.8085
  22  35.8567
  23  14.3275
  24  0.131232
  25  0.15735
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.023e+01  2.699e+01  0.000e+00  1.000e+06 ( 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:  9.928e-01  1.573e-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:  8.106e-01  1.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823754/likelihoodResults_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.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) = 7795.65134354
delta logL = 2.67502400675e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7795.65134325
delta logL = 5.58483407076e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.225       1.0000          .0000       .10000E+07
     2 'Index     '    2.6425       1.0000          .0000       10.000    
     3 'Normalizat'    .81052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99288       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.

 FCN=   7795.651     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      214 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.195        397.25        .31310E-03   -.18089E-02
   2  Index         2.6449        2.2629        .44860       -.86402E-04
   3  Normalizat    .81056        .17864E-01    .43747E-01   -.11428E-03
   4  Prefactor     .99284        .22412E-01    .46178E-01   -.26099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1954
  Index      = 2.64487
  Normalizat = 0.810559
  Prefactor  = 0.992845
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.651     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.195        28.388        .12524E-04   -1.5644    
   2  Index         2.6449        1.6362        .83600E-02   -.49045    
   3  Normalizat    .81056        .14647        .21904E-03   -.99678    
   4  Prefactor     .99284        .18377        .25158E-03   -.92968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0538e-09
Minuit parameter uncertainties:
  1  28.3881
  2  1.6763
  3  0.146543
  4  0.18389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823754': 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) = 7795.65134192
delta logL = 1.88917329069e-06

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.020e+01  2.839e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.645e+00  1.676e+00  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:  9.928e-01  1.839e-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:  8.106e-01  1.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 203.059 47.373

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/823754/cmap_HighResolution_694224001_694483201_4FGL_J1332.2+4722_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2023-01-04 01:13:30.132385', job_id='823754', GAL2='0.99', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1672823610.13', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.89e-06', ts2='0.22', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1755' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:13:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 823754: <4FGL_J1332.2+4722_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 01:00:25 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:01:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:01:15 2023
Terminated at Wed Jan  4 01:13:30 2023
Results reported at Wed Jan  4 01:13:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1755 203.059 47.3728 694224001 694483201 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 :                                   638.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            785 sec.

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

