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


Performing analysis on: 4FGL_J1223.8+8039_monthly_bin151
RA = 185.971, Dec = 80.6598
tmin = 628387201, tmax = 630979201
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='816083', job_status='RUN', time_executed='2021-10-23 14:45:50.778417', time_epoch_executed='1635025550.78' WHERE source_name='4FGL J1223.8+8039' and cadence='monthly' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816083

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816083/ft1_4FGL_J1223.8+8039_monthly_bin151.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816083/ft1_4FGL_J1223.8+8039_monthly_bin151.fits outfile=/scratch/kocevski/816083/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin151.fits ra=185.971 dec=80.6598 rad=12.0 tmin=628387201.0 tmax=630979201.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 30.46
user 29.74
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.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/816083/ft1_filteredMKT_4FGL_J1223.8+8039_monthly_bin151.fits evtable="EVENTS" outfile="/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.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.84
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/816083/ltcube_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.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/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits
.....................!
real 154.99
user 154.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/816083/ltcube_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits outfile=/scratch/kocevski/816083/expmap_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.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/816083/ltcube_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits
.....................!
real 192.90
user 187.49
sys 5.01

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

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits outfile=/scratch/kocevski/816083/cmap_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.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=185.971 yref=80.6598 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.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits outfile=/scratch/kocevski/816083/cmap_HighResolution_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.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=185.971 yref=80.6598 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/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816083/Model_4FGL_J1223.8+8039_monthly_bin151.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/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits.....................!
real 1044.88
user 1041.08
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits', '/scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits', expMap='/scratch/kocevski/816083/expmap_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits', expCube='/scratch/kocevski/816083/ltcube_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816083/Model_4FGL_J1223.8+8039_monthly_bin151.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/816083/ft1_filtered_4FGL_J1223.8+8039_monthly_bin151.fits
Spacecraft file(s): /scratch/kocevski/816083/ft2_4FGL_J1223.8+8039_monthly_bin151.fits
Exposure map: /scratch/kocevski/816083/expmap_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits
Exposure cube: /scratch/kocevski/816083/ltcube_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816083/Model_4FGL_J1223.8+8039_monthly_bin151.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) = 95065.6342281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43719       1.0000         .10000E-03   10000.    
     2 'norm      '    .93691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13190E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1641       1.0000         .10000E-03   10000.    
     9 'norm      '    .19853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .57750       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83371E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9818       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6630       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5643       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33925       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18407E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0627       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1193       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1899       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.860       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98767       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   95065.57     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4280 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43879        1.5415         .0000        .61982E-02
   2  norm          .93910        3.2430         .0000        .12314    
   3  Prefactor     22.040        11.279         .0000        .47672E-03
   4  Prefactor     3.2384        1.7631         .0000        .82496E-01
   5  Prefactor     7.2676        3.1145         .0000        .21638E-02
   6  Prefactor     .10000E-03    .70563         .0000    ** at limit **
   7  Prefactor     .10000E-03    1.5861         .0000    ** at limit **
   8  Prefactor     6.1636        8.8387         .0000        .29662E-03
   9  norm          .20952        .43538         .0000        .65968E-02
  10  Prefactor     .10000E-03    .27017         .0000    ** at limit **
  11  norm          .57746        .18207         .0000        .10645E-01
  12  norm          4.2388        2.1866         .0000        .26841E-02
  13  Prefactor     4.4462        2.6506         .0000        .59759E-01
  14  Prefactor     .92275        5.4698         .0000        .20046E-01
  15  Prefactor     .83231E-01    .26037         .0000        .12541E-01
  16  Prefactor     3.4507        2.8715         .0000        .68513E-01
  17  Prefactor     7.9824        9.2866         .0000        .10530E-03
  18  norm          1.6631        .92300         .0000        .66915E-02
  19  norm          3.5644        .90362         .0000        .26088E-02
  20  Prefactor     5.3832        6.0927         .0000        .59026E-02
  21  Prefactor     .33796        .91279         .0000        .33248E-02
  22  Prefactor     .10000E-03    1.1711         .0000    ** at limit **
  23  Prefactor     3.0630        2.2392         .0000        .47614E-02
  24  Prefactor     3.1197        2.9618         .0000        .28561E-01
  25  Prefactor     4.1902        8.2818         .0000        .20410E-03
  26  Prefactor     .10001E-03    5.4998         .0000    ** at limit **
  27  Prefactor     .10013E-03    15.957         .0000    ** at limit **
  28  norm          20.860        5.5344         .0000        .63131E-03
  29  Prefactor     .10013E-03    16.647         .0000    ** at limit **
  30  Normalizat    .98761        .46335E-01     .0000        .24079E-03
  31  Prefactor     .98490        .30605E-01     .0000        .91263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.438793
  norm       = 0.939103
  Prefactor  = 22.0399
  Prefactor  = 3.23843
  Prefactor  = 7.26762
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.16358
  norm       = 0.209521
  Prefactor  = 0.0001
  norm       = 0.577457
  norm       = 4.23882
  Prefactor  = 4.44618
  Prefactor  = 0.922752
  Prefactor  = 0.0832311
  Prefactor  = 3.45073
  Prefactor  = 7.98245
  norm       = 1.66305
  norm       = 3.56438
  Prefactor  = 5.38317
  Prefactor  = 0.337957
  Prefactor  = 0.000100001
  Prefactor  = 3.06296
  Prefactor  = 3.11969
  Prefactor  = 4.19023
  Prefactor  = 0.000100006
  Prefactor  = 0.000100133
  norm       = 20.86
  Prefactor  = 0.000100128
  Normalizat = 0.987609
  Prefactor  = 0.984896
 **********
 **   18 **HESSE 
 **********

 FCN=   95065.57     FROM HESSE     STATUS=OK           658 CALLS     4938 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43879        6.3078        .69255E-02   -1.5575    
   2  norm          .93910        3.2286        .25882E-02   -1.5514    
   3  Prefactor     22.040        11.252        .85318E-04   -1.4769    
   4  Prefactor     3.2384        1.7609        .11254E-02   -1.5348    
   5  Prefactor     7.2676        2.7488        .14878E-03   -1.5169    
   6  Prefactor     .10000E-03    .71378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9669        .65001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1636        8.5380        .16170E-03   -1.5211    
   9  norm          .20952        2.7087        .23012E-02   -1.5616    
  10  Prefactor     .10000E-03    .59481        .27870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .57746        .16328        .62378E-03   -1.5556    
  12  norm          4.2388        1.3825        .11321E-03   -1.5296    
  13  Prefactor     4.4462        3.4635        .95309E-03   -1.5286    
  14  Prefactor     .92275        2.8054        .48425E-03   -1.5516    
  15  Prefactor     .83231E-01    1.1041        .26797E-02   -1.5650    
  16  Prefactor     3.4507        2.8172        .10887E-02   -1.5336    
  17  Prefactor     7.9824        9.2852        .14192E-03   -1.5143    
  18  norm          1.6631        .91602        .21345E-03   -1.5450    
  19  norm          3.5644        .89612        .13477E-03   -1.5330    
  20  Prefactor     5.3832        6.0865        .86606E-03   -1.5244    
  21  Prefactor     .33796        6.7109        .45590E-02   -1.5592    
  22  Prefactor     .10000E-03    4.6879        .64829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0630        2.2379        .23180E-03   -1.5358    
  24  Prefactor     3.1197        2.9551        .11478E-02   -1.5355    
  25  Prefactor     4.1902        8.2700        .19689E-03   -1.5299    
  26  Prefactor     .10001E-03    5.6191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10013E-03    16.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          20.860        5.5341        .43849E-03   -1.4794    
  29  Prefactor     .10013E-03    17.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98761        .51108E-01    .27032E-03   -.93447    
  31  Prefactor     .98490        .34352E-01    .19190E-03   -.93235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27056e-06
Minuit parameter uncertainties:
  1  3.3274
  2  3.22924
  3  11.2533
  4  1.76096
  5  2.74882
  6  1.34788e-07
  7  0.000334616
  8  8.53972
  9  1.5064
  10  3.13214e-08
  11  0.163276
  12  1.38255
  13  3.46368
  14  2.80575
  15  0.605947
  16  2.81733
  17  9.28688
  18  0.916025
  19  0.896128
  20  6.0872
  21  3.01191
  22  0.000152767
  23  2.23799
  24  2.95521
  25  8.2723
  26  0.000363513
  27  0.00294518
  28  5.53423
  29  0.00297816
  30  0.051111
  31  0.034353
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  3.564e+00  8.961e-01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.849e-01  3.435e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.876e-01  5.111e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.77
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 6.75e-09
Energy Flux (Fixed Index): 1.30e-05 +/- 3.26e-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) = 95065.5716139
delta logL = 0.000524629445863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 95065.5716092
delta logL = 0.000529383687535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5643       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1253       1.0000          .0000       5.0000    
     3 'Normalizat'    .98741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   95065.57     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5635        10.007        .53518E-02    .25929E-02
   2  alpha         2.1253        1.8034        .41751        .19651E-03
   3  Normalizat    .98741        .28645E-01    .46009E-01    .22352E-03
   4  Prefactor     .98492        .13101E-01    .46078E-01    .66543E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56346
  alpha      = 2.12534
  Normalizat = 0.98741
  Prefactor  = 0.98492
 **********
 **   18 **HESSE 
 **********

 FCN=   95065.57     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5635        .85506        .13444E-03   -1.5330    
   2  alpha         2.1253        .24564        .20574E-01   -.15043    
   3  Normalizat    .98741        .47159E-01    .27034E-03   -.93453    
   4  Prefactor     .98492        .33343E-01    .19190E-03   -.93234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.92527e-12
Minuit parameter uncertainties:
  1  0.855065
  2  0.246049
  3  0.047161
  4  0.033344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816083': 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) = 95065.5716087
delta logL = 0.000529873708729

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  3.563e+00  8.551e-01  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.125e+00  2.460e-01  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.849e-01  3.334e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.874e-01  4.716e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.78
Ra Dec: 185.971 80.660
Photon Index (Free Index): 2.13 +/- 0.25
Photon Flux (Free Index): 2.71e-08 +/- 1.00e-08
Energy Flux (Free Index): 1.30e-05 +/- 3.19e-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/816083/cmap_HighResolution_628387201_630979201_4FGL_J1223.8+8039_monthly_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='1.30e-05', photon_flux_error='6.75e-09', dlogl='5.30e-04', energy_flux='1.30e-05', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-10-23 17:32:41.128992', photon_index_error2='0.25', photon_index2='2.13', ts='43.77', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.19e-06', EG='0.99', time_epoch_completed='1635035561.13', return_code='0', job_id='816083', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='3.26e-06', photon_flux_error2='1.00e-08', ts2='43.78', photon_index='2.12' WHERE bin_id='151' AND source_name='4FGL J1223.8+8039' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 17:32:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 816083: <4FGL_J1223.8+8039_monthly_bin151> in cluster <slac> Done

Job <4FGL_J1223.8+8039_monthly_bin151> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Oct 23 14:45:20 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 14:45:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 14:45:24 2021
Terminated at Sat Oct 23 17:32:42 2021
Results reported at Sat Oct 23 17:32:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_monthly_bin151 185.971 80.6598 628387201 630979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9887.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             453.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10037 sec.
    Turnaround time :                            10042 sec.

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

