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


Performing analysis on: 4FGL_J2032.0+1219_monthly_bin168
RA = 308.004, Dec = 12.3279
tmin = 672451201, tmax = 675043201
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='648546', job_status='RUN', time_executed='2022-05-24 04:02:09.467454', time_epoch_executed='1653390129.47' WHERE source_name='4FGL J2032.0+1219' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648546

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648546/ft1_4FGL_J2032.0+1219_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648546/ft1_4FGL_J2032.0+1219_monthly_bin168.fits outfile=/scratch/kocevski/648546/ft1_filteredMKT_4FGL_J2032.0+1219_monthly_bin168.fits ra=308.004 dec=12.3279 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.89
user 28.09
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.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/648546/ft1_filteredMKT_4FGL_J2032.0+1219_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.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.90
user 0.69
sys 0.20

Number of photons that the gtmktime cut: 15507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/648546/ltcube_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.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/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits
.....................!
real 131.68
user 130.88
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/648546/ltcube_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits outfile=/scratch/kocevski/648546/expmap_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.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/648546/ltcube_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits
.....................!
real 193.40
user 187.18
sys 5.73

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 233 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2032.0+1219 @ 308.004 12.3279

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits outfile=/scratch/kocevski/648546/cmap_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.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=308.004 yref=12.3279 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.80
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits outfile=/scratch/kocevski/648546/cmap_HighResolution_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.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=308.004 yref=12.3279 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.80
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648546/Model_4FGL_J2032.0+1219_monthly_bin168.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 Cygnus Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits.....................!
real 3740.11
user 3724.17
sys 4.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits', '/scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits', expMap='/scratch/kocevski/648546/expmap_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits', expCube='/scratch/kocevski/648546/ltcube_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648546/Model_4FGL_J2032.0+1219_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2032.0+1219'

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  2.905e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648546/ft1_filtered_4FGL_J2032.0+1219_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/648546/ft2_4FGL_J2032.0+1219_monthly_bin168.fits
Exposure map: /scratch/kocevski/648546/expmap_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits
Exposure cube: /scratch/kocevski/648546/ltcube_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648546/Model_4FGL_J2032.0+1219_monthly_bin168.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) = 158244.232109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13489E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1817       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8366       1.0000         .10000E-03   10000.    
     8 'norm      '    .22662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8592       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3749       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1783       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1080       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   158243.1     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1658 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9520         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.6852         .0000    ** at limit **
   3  norm          1.0681        .73709         .0000        .18757E-01
   4  Prefactor     2.1817        1.4753         .0000        .88595E-02
   5  norm          1.1331        .97188         .0000        .53636E-02
   6  Prefactor     6.9886        3.3163         .0000       -.16821E-02
   7  Prefactor     1.8437        4.7654         .0000        .62262E-01
   8  norm          .22634        .16420         .0000        .36530E-01
   9  Prefactor     8.8607        9.3272         .0000        .25751E-03
  10  norm          2.3752        1.9998         .0000        .53623E-02
  11  norm          .10000E-03    7.9795         .0000    ** at limit **
  12  Prefactor     2.7152        3.6652         .0000       -.41723E-02
  13  Prefactor     2.1782        3.5983         .0000        .44957E-01
  14  Prefactor     2.9538        3.2189         .0000        .43412E-02
  15  Prefactor     4.1064        4.6439         .0000       -.11778E-02
  16  Prefactor     .10000E-03    1.3301         .0000    ** at limit **
  17  Prefactor     .10000E-03    1.4539         .0000    ** at limit **
  18  Normalizat    1.1033        .73370E-01     .0000        .78343E-03
  19  Prefactor     .97763        .17781E-01     .0000        .10607E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06815
  Prefactor  = 2.18173
  norm       = 1.1331
  Prefactor  = 6.9886
  Prefactor  = 1.84368
  norm       = 0.22634
  Prefactor  = 8.8607
  norm       = 2.37523
  norm       = 0.0001
  Prefactor  = 2.71522
  Prefactor  = 2.17821
  Prefactor  = 2.95381
  Prefactor  = 4.10645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10333
  Prefactor  = 0.977634
 **********
 **   18 **HESSE 
 **********

 FCN=   158243.1     FROM HESSE     STATUS=OK           286 CALLS     1944 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8041        .15323       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0681        .71665        .27223E-03   -1.5501    
   4  Prefactor     2.1817        1.4763        .13935E-02   -1.5413    
   5  norm          1.1331        .95546        .35439E-03   -1.5495    
   6  Prefactor     6.9886        3.1681        .15173E-03   -1.5179    
   7  Prefactor     1.8437        4.2417        .15393E-02   -1.5436    
   8  norm          .22634        .14378        .10710E-03   -1.5613    
   9  Prefactor     8.8607        9.2105        .13466E-03   -1.5113    
  10  norm          2.3752        1.9815        .26585E-03   -1.5400    
  11  norm          .10000E-03    8.0562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7152        3.6569        .24712E-03   -1.5378    
  13  Prefactor     2.1782        3.5952        .13947E-02   -1.5413    
  14  Prefactor     2.9538        3.2175        .23630E-03   -1.5364    
  15  Prefactor     4.1064        4.6396        .19890E-03   -1.5303    
  16  Prefactor     .10000E-03    1.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1033        .80448E-01    .50528E-03   -.89645    
  19  Prefactor     .97763        .19764E-01    .13724E-03   -.93479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50827e-08
Minuit parameter uncertainties:
  1  2.62303e-05
  2  1.12756e-05
  3  0.716654
  4  1.47631
  5  0.955477
  6  3.16814
  7  4.24244
  8  0.143779
  9  9.21192
  10  1.98152
  11  9.90471e-05
  12  3.65722
  13  3.59559
  14  3.21766
  15  4.64005
  16  4.21679e-06
  17  6.79706e-06
  18  0.0804568
  19  0.0197646
Done.

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

Extracting fit parameters...

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  6.989e+00  3.168e+00  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
827    Prefactor:  9.776e-01  1.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
828        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
829        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  1.103e+00  8.046e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.13
Ra Dec: 308.004 12.328
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 9.71e-06 +/- 4.40e-06

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) = 158242.538518
delta logL = 0.59520307515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 158242.533116
delta logL = 0.600605703279

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   158242.5     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      248 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1748        16.744        .37437E-02    .16335E-03
   2  Index         1.8485        .36731        .50000       -.96466E-04
   3  Normalizat    1.1248        .10118E-01    .11300        .51275E-03
   4  Prefactor     .97530        .25232E-02    .31095E-01   -.25439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17481
  Index      = 1.84845
  Normalizat = 1.12485
  Prefactor  = 0.975297
 **********
 **   18 **HESSE 
 **********

 FCN=   158242.5     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1748        3.7216        .14975E-03   -1.5172    
   2  Index         1.8485        .45196        .71262E-02   -.68195    
   3  Normalizat    1.1248        .74594E-01    .50105E-03   -.88958    
   4  Prefactor     .97530        .19142E-01    .13740E-03   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07383e-12
Minuit parameter uncertainties:
  1  3.72171
  2  0.452991
  3  0.0746009
  4  0.0191424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648546': 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) = 158242.533115
delta logL = 0.600606608466

Extracting fit parameters...

4FGL J2032.0+1219
   Spectrum: PowerLaw
524    Prefactor:  7.175e+00  3.722e+00  1.000e-04  1.000e+04 ( 1.000e-13)
525        Index:  1.848e+00  4.530e-01  0.000e+00  1.000e+01 (-1.000e+00)
526        Scale:  1.425e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
827    Prefactor:  9.753e-01  1.914e-02  0.000e+00  1.000e+01 ( 1.000e+00)
828        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
829        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
823   Normalization:  1.125e+00  7.460e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.23
Ra Dec: 308.004 12.328
Photon Index (Free Index): 1.85 +/- 0.45
Photon Flux (Free Index): 1.14e-08 +/- 1.18e-08
Energy Flux (Free Index): 1.19e-05 +/- 7.02e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/648546/cmap_HighResolution_672451201_675043201_4FGL_J2032.0+1219_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='1.19e-05', photon_flux_error='1.37e-08', dlogl='6.01e-01', energy_flux='9.71e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2022-05-24 07:02:49.461962', photon_index_error2='0.45', photon_index2='1.85', ts='12.13', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='7.02e-06', EG='1.10', time_epoch_completed='1653400969.46', return_code='0', job_id='648546', GAL2='0.98', EG2='1.12', return_code2='0', energy_flux_error='4.40e-06', photon_flux_error2='1.18e-08', ts2='13.23', photon_index='2.41' WHERE bin_id='168' AND source_name='4FGL J2032.0+1219' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:02:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 648546: <4FGL_J2032.0+1219_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2032.0+1219_monthly_bin168> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May 24 04:00:37 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 04:00:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 04:00:51 2022
Terminated at Tue May 24 07:02:50 2022
Results reported at Tue May 24 07:02:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2032.0+1219_monthly_bin168 308.004 12.3279 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2032.0+1219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10809.00 sec.
    Max Memory :                                 649 MB
    Average Memory :                             588.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10919 sec.
    Turnaround time :                            10933 sec.

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

