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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1749
RA = 203.059, Dec = 47.3728
tmin = 692668801, tmax = 692928001
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='953106', job_status='RUN', time_executed='2022-12-17 00:47:12.939521', time_epoch_executed='1671266832.94' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953106/ft1_4FGL_J1332.2+4722_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953106/ft1_4FGL_J1332.2+4722_daily_bin1749.fits outfile=/scratch/kocevski/953106/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1749.fits ra=203.059 dec=47.3728 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.44
sys 0.19

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

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

Number of photons that the gtmktime cut: 576

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/953106/ltcube_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.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/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits
.....................!
real 12.64
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/953106/ltcube_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits outfile=/scratch/kocevski/953106/expmap_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.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/953106/ltcube_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits
.....................!
real 191.59
user 185.90
sys 5.20

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/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits scfile=/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits outfile=/scratch/kocevski/953106/cmap_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits scfile=/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits outfile=/scratch/kocevski/953106/cmap_HighResolution_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits', '/scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits', expMap='/scratch/kocevski/953106/expmap_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits', expCube='/scratch/kocevski/953106/ltcube_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953106/Model_4FGL_J1332.2+4722_daily_bin1749.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/953106/ft1_filtered_4FGL_J1332.2+4722_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/953106/ft2_4FGL_J1332.2+4722_daily_bin1749.fits
Exposure map: /scratch/kocevski/953106/expmap_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits
Exposure cube: /scratch/kocevski/953106/ltcube_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953106/Model_4FGL_J1332.2+4722_daily_bin1749.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) = 6259.81564941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7605       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46863       1.0000          .0000       .10000E+07
     3 'Prefactor '    .79897E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.0850       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42781E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12064E-02   1.0000          .0000       .10000E+07
     7 'norm      '    14.448       1.0000          .0000       .10000E+07
     8 'norm      '    .30691E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    67.478       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48196E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .75416E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .21949E-04   1.0000          .0000       .10000E+07
    13 'norm      '    2.3414       1.0000          .0000       .10000E+07
    14 'norm      '    6.5715       1.0000          .0000       .10000E+07
    15 'norm      '    1.0668       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24720E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38381E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .55330E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12344E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.1642       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.683       1.0000          .0000       .10000E+07
    22 'Prefactor '    34.870       1.0000          .0000       .10000E+07
    23 'Prefactor '    13.594       1.0000          .0000       .10000E+07
    24 'Normalizat'    .91438       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96097       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=   6259.788     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2123 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9264        8.0671        .95004E-07    .31092E-03
   2  Prefactor     .50682E-07    8.8802        .28298E-05** at limit **
   3  Prefactor     .13717E-06    158.20       -.12062E-04** at limit **
   4  norm          3.0872        2.0893       -.12991E-08   -.78016E-03
   5  Prefactor      .0000        4.5430        .45576E-06** at limit **
   6  Prefactor      .0000        3.8563        .81278E-06** at limit **
   7  norm          14.438        13.006       -.14134E-05   -.37157E-04
   8  norm          .55511E-10    1.6786       -.74799E-06** at limit **
   9  Prefactor     68.209        31.947       -.60042E-05   -.63898E-02
  10  Prefactor     .28588E-07    18.814        .54194E-05** at limit **
  11  norm           .0000        1.8456        .36789E-06** at limit **
  12  Prefactor     .48794E-07    25.707       -.87511E-05** at limit **
  13  norm          2.3381        1.2856       -.14141E-06    .92413E-02
  14  norm          6.5734        3.4954       -.18330E-06   -.13284E-01
  15  norm          1.0907        17.173       -.32374E-05    .66411E-03
  16  Prefactor     .85176E-06    1.5783        .23370E-05** at limit **
  17  Prefactor     .12768E-08    16.227       -.42381E-05** at limit **
  18  Prefactor     .33307E-09    7.1969       -.36301E-06** at limit **
  19  Prefactor     .77716E-09    12.066       -.10360E-06** at limit **
  20  Prefactor     1.1823        1.9234       -.32878E-06   -.69014E-02
  21  Prefactor     18.106        5.7182        .11228E-06    .24432E-01
  22  Prefactor     35.146        6.6935       -.14798E-05    .59245E-01
  23  Prefactor     13.612        1.6209        .50663E-06    .93236E-02
  24  Normalizat    .91433        .17960        .18116E-05   -.56819E-04
  25  Prefactor     .96098        .22301        .36446E-05   -.18339E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.92637
  Prefactor  = 5.06817e-08
  Prefactor  = 1.37168e-07
  norm       = 3.08719
  Prefactor  = 0
  Prefactor  = 0
  norm       = 14.438
  norm       = 5.55112e-11
  Prefactor  = 68.209
  Prefactor  = 2.85882e-08
  norm       = 0
  Prefactor  = 4.87943e-08
  norm       = 2.3381
  norm       = 6.57337
  norm       = 1.09072
  Prefactor  = 8.51763e-07
  Prefactor  = 1.27676e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 7.77156e-10
  Prefactor  = 1.1823
  Prefactor  = 18.1055
  Prefactor  = 35.1465
  Prefactor  = 13.6123
  Normalizat = 0.914335
  Prefactor  = 0.960984
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.788     FROM HESSE     STATUS=OK           477 CALLS     2600 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9264        8.1199        .46090E-03   -1.5664    
   2  Prefactor     .50682E-07    82.734        .81930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13717E-06    156.61        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0872        2.0994        .57719E-03   -1.5673    
   5  Prefactor      .0000        4.5382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.8644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.438        13.021        .26324E-03   -1.5632    
   8  norm          .55511E-10    1.6734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.209        32.367        .12174E-03   -1.5543    
  10  Prefactor     .28588E-07    21.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.8362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48794E-07    26.507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3381        1.2920        .66977E-03   -1.5677    
  14  norm          6.5734        3.5050        .39124E-03   -1.5657    
  15  norm          1.0907        16.737        .11793E-02   -1.5687    
  16  Prefactor     .85176E-06    30.308        .16744E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12768E-08    16.239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33307E-09    7.1425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77716E-09    12.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1823        2.2476        .10659E-02   -1.5686    
  21  Prefactor     18.106        26.386        .23144E-03   -1.5623    
  22  Prefactor     35.146        47.376        .16936E-03   -1.5589    
  23  Prefactor     13.612        17.063        .27141E-03   -1.5634    
  24  Normalizat    .91433        .15127        .45085E-01   -.95958    
  25  Prefactor     .96098        .18856        .45777E-01   -.94042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23199e-07
Minuit parameter uncertainties:
  1  8.11989
  2  0.00409572
  3  0.00927017
  4  2.09936
  5  1.54415e-05
  6  8.21778e-06
  7  13.0215
  8  1.43216e-05
  9  32.367
  10  0.00155796
  11  1.38418e-05
  12  0.0022742
  13  1.29199
  14  3.50503
  15  8.54534
  16  0.0101619
  17  0.000289317
  18  9.51185e-05
  19  0.000197856
  20  2.24763
  21  26.3864
  22  47.3768
  23  17.0626
  24  0.151336
  25  0.188688
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  2.859e-08  1.558e-03  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.610e-01  1.887e-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.143e-01  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953106/likelihoodResults_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.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) = 6259.61959283
delta logL = 0.168180284197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.61366886
delta logL = 0.174104258852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50876       1.0000          .0000       .10000E+07
     2 'Index     '    4.9806       1.0000          .0000       10.000    
     3 'Normalizat'    .88659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98300       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=   6259.614     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      267 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50818        18.666        .77833E-03    .16414E-01
   2  Index         4.9811        3.6888        .20136        .94369E-04
   3  Normalizat    .88665        .26561E-01    .44730E-01    .47790E-05
   4  Prefactor     .98294        .33723E-01    .46054E-01    .49500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.508178
  Index      = 4.9811
  Normalizat = 0.886648
  Prefactor  = 0.982943
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.614     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50818        80.050        .95222E-05   -1.5694    
   2  Index         4.9811        5.9709        .91438E-02   -.37806E-02
   3  Normalizat    .88665        .14189        .21876E-03   -.96931    
   4  Prefactor     .98294        .17604        .26374E-03   -.93300    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23976e-09
Minuit parameter uncertainties:
  1  12.7563
  2  13.6742
  3  0.141948
  4  0.17614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953106': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.61366879
delta logL = 0.174104326091

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  5.082e-01  1.276e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  4.981e+00  1.367e+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:  9.829e-01  1.761e-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.866e-01  1.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/953106/cmap_HighResolution_692668801_692928001_4FGL_J1332.2+4722_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2022-12-17 00:58:39.834997', job_id='953106', GAL2='0.98', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1671267519.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.74e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1749' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:58:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 953106: <4FGL_J1332.2+4722_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:45:25 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:45:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:45:26 2022
Terminated at Sat Dec 17 00:58:40 2022
Results reported at Sat Dec 17 00:58:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1749 203.059 47.3728 692668801 692928001 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 :                                   688.54 sec.
    Max Memory :                                 658 MB
    Average Memory :                             310.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

