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


Performing analysis on: 4FGL_J0855.9+7144_monthly_bin109
RA = 133.975, Dec = 71.7419
tmin = 519523201, tmax = 522115201
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='565217', job_status='RUN', time_executed='2021-10-20 07:10:22.195539', time_epoch_executed='1634739022.2' WHERE source_name='4FGL J0855.9+7144' and cadence='monthly' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565217

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

Retrieving the FT1 file...

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

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

Retrieving 448 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565217/ft1_4FGL_J0855.9+7144_monthly_bin109.fits


Retrieving the FT1 file...

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

Retrieving 448 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565217/ft1_4FGL_J0855.9+7144_monthly_bin109.fits outfile=/scratch/kocevski/565217/ft1_filteredMKT_4FGL_J0855.9+7144_monthly_bin109.fits ra=133.975 dec=71.7419 rad=12.0 tmin=519523201.0 tmax=522115201.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 38.37
user 37.50
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.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/565217/ft1_filteredMKT_4FGL_J0855.9+7144_monthly_bin109.fits evtable="EVENTS" outfile="/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.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.82
user 0.64
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/565217/ltcube_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.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/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits
.....................!
real 115.71
user 114.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/565217/ltcube_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits outfile=/scratch/kocevski/565217/expmap_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.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/565217/ltcube_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits
.....................!
real 192.27
user 185.07
sys 6.29

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

Setting source of interest to:
4FGL J0855.9+7144 @ 133.975 71.7419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits outfile=/scratch/kocevski/565217/cmap_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.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=133.975 yref=71.7419 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.77
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits outfile=/scratch/kocevski/565217/cmap_HighResolution_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.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=133.975 yref=71.7419 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.78
user 0.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/565217/Model_4FGL_J0855.9+7144_monthly_bin109.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/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits.....................!
real 896.84
user 892.26
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits', '/scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits', expMap='/scratch/kocevski/565217/expmap_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits', expCube='/scratch/kocevski/565217/ltcube_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/565217/Model_4FGL_J0855.9+7144_monthly_bin109.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0855.9+7144'

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  5.650e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/565217/ft1_filtered_4FGL_J0855.9+7144_monthly_bin109.fits
Spacecraft file(s): /scratch/kocevski/565217/ft2_4FGL_J0855.9+7144_monthly_bin109.fits
Exposure map: /scratch/kocevski/565217/expmap_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits
Exposure cube: /scratch/kocevski/565217/ltcube_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/565217/Model_4FGL_J0855.9+7144_monthly_bin109.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) = 88156.1291928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.306       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15435       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2421       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9511       1.0000         .10000E-03   10000.    
     7 'norm      '    16.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19227E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .65527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92678       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9261       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
    21 'norm      '    .49872       1.0000         .10000E-03   10000.    
    22 'norm      '    8.4992       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18905E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.173       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7941       1.0000         .10000E-03   10000.    
    26 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6055       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .31278       1.0000         .10000E-03   10000.    
    29 'norm      '    3.7048       1.0000         .10000E-03   10000.    
    30 'norm      '    .80106       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.6454       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7346       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0031       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0178       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   88155.94     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     4313 TOTAL
                     EDM=   .68E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.330        6.8417         .0000        .47178E-02
   2  Prefactor     .56223E-01    2.2124         .0000        .72807E-03
   3  norm          .10000E-03    1.0166         .0000    ** at limit **
   4  norm          3.2423        .26336         .0000       -.13839E-03
   5  Prefactor     14.926        16.372         .0000        .10746E-02
   6  Prefactor     1.9531        10.340         .0000        .61242E-03
   7  norm          16.544        5.2833         .0000       -.39059E-02
   8  Prefactor     .10000E-03    1.6201         .0000    ** at limit **
   9  Prefactor     .10000E-03    2.3911         .0000    ** at limit **
  10  norm          .65532        .75935         .0000        .20622E-01
  11  Prefactor     .92970        .67732         .0000        .19736E-02
  12  Prefactor     .92706        .50702         .0000        .13564E-01
  13  norm          6.0946        .87470         .0000        .26166E-02
  14  Prefactor     .10000E-03    2.3869         .0000    ** at limit **
  15  Prefactor     14.794        7.4723         .0000        .29725E-03
  16  Prefactor     1.9258        2.0566         .0000        .13732    
  17  norm          4.7157        .38369         .0000        .37812E-03
  18  Prefactor     6.1127        2.9912         .0000        .21405E-01
  19  Prefactor     .10000E-03    1.0325         .0000    ** at limit **
  20  Prefactor     11.929        2.7680         .0000        .75946E-03
  21  norm          .49869        .17789         .0000        .11534E-01
  22  norm          8.4991        4.1813         .0000        .32125E-02
  23  Prefactor     .10000E-03    .86330         .0000    ** at limit **
  24  Prefactor     23.165        8.1625         .0000       -.30253E-02
  25  Prefactor     1.7848        13.804         .0000        .61894E-03
  26  norm          .10000E-03    .24080         .0000    ** at limit **
  27  Prefactor     6.6050        18.725         .0000        .40388E-03
  28  Prefactor     .31398        1.1482         .0000        .54332    
  29  norm          3.7046        .32699         .0000        .97377E-03
  30  norm          .80085        .83561         .0000        .14207E-01
  31  Prefactor     1.6455        2.2047         .0000        .14557    
  32  Prefactor     1.7349        1.8684         .0000        .87353E-02
  33  Normalizat    1.0031        .57805E-01     .0000        .63543E-04
  34  Prefactor     1.0179        .41565E-01     .0000       -.11094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3297
  Prefactor  = 0.0562231
  norm       = 0.0001
  norm       = 3.24229
  Prefactor  = 14.926
  Prefactor  = 1.95307
  norm       = 16.544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.655321
  Prefactor  = 0.929696
  Prefactor  = 0.927062
  norm       = 6.09459
  Prefactor  = 0.0001
  Prefactor  = 14.7941
  Prefactor  = 1.92577
  norm       = 4.71574
  Prefactor  = 6.11266
  Prefactor  = 0.0001
  Prefactor  = 11.9291
  norm       = 0.498691
  norm       = 8.49906
  Prefactor  = 0.0001
  Prefactor  = 23.1654
  Prefactor  = 1.78476
  norm       = 0.0001
  Prefactor  = 6.60496
  Prefactor  = 0.313982
  norm       = 3.70457
  norm       = 0.80085
  Prefactor  = 1.64551
  Prefactor  = 1.73495
  Normalizat = 1.00308
  Prefactor  = 1.0179
 **********
 **   18 **HESSE 
 **********

 FCN=   88155.94     FROM HESSE     STATUS=OK           766 CALLS     5079 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.330        6.8598        .59574E-03   -1.5035    
   2  Prefactor     .56223E-01    2.6116        .10979       -1.5661    
   3  norm          .10000E-03    1.0266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2423        .26163        .40064E-04   -1.5348    
   5  Prefactor     14.926        16.370        .10367E-03   -1.4935    
   6  Prefactor     1.9531        10.201        .29709E-03   -1.5428    
   7  norm          16.544        5.2827        .98466E-04   -1.4894    
   8  Prefactor     .10000E-03    1.7627        .12149       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .65532        .74793        .25865E-03   -1.5546    
  11  Prefactor     .92970        .68863        .20251E-03   -1.5515    
  12  Prefactor     .92706        .48077        .13843E-03   -1.5515    
  13  norm          6.0946        .87534        .89120E-04   -1.5214    
  14  Prefactor     .10000E-03    2.3954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.794        7.4770        .10413E-03   -1.4939    
  16  Prefactor     1.9258        2.0461        .14967E-02   -1.5430    
  17  norm          4.7157        .38329        .49241E-04   -1.5274    
  18  Prefactor     6.1127        2.9849        .81188E-03   -1.5213    
  19  Prefactor     .10000E-03    1.0417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.929        2.7631        .11598E-03   -1.5017    
  21  norm          .49869        .17337        .71079E-04   -1.5567    
  22  norm          8.4991        4.1792        .13750E-03   -1.5125    
  23  Prefactor     .10000E-03    4.1927        .45420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.165        7.2783        .83211E-04   -1.4745    
  25  Prefactor     1.7848        12.599        .31222E-03   -1.5441    
  26  norm          .10000E-03    .45336        .25960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.6050        18.710        .15614E-03   -1.5194    
  28  Prefactor     .31398        1.0846        .20962E-02   -1.5596    
  29  norm          3.7046        .31431        .40722E-04   -1.5323    
  30  norm          .80085        .72379        .18177E-03   -1.5529    
  31  Prefactor     1.6455        2.0209        .16464E-02   -1.5451    
  32  Prefactor     1.7349        1.6723        .28205E-03   -1.5445    
  33  Normalizat    1.0031        .65509E-01    .29828E-03   -.92927    
  34  Prefactor     1.0179        .47829E-01    .22941E-03   -.92135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64504e-08
Minuit parameter uncertainties:
  1  6.8603
  2  0.765732
  3  5.39026e-07
  4  0.26163
  5  16.3747
  6  8.92938
  7  5.28283
  8  2.32492e-05
  9  2.41257e-05
  10  0.747937
  11  0.688635
  12  0.480774
  13  0.875346
  14  2.18877e-05
  15  7.47751
  16  2.04613
  17  0.383289
  18  2.98496
  19  5.62083e-07
  20  2.76313
  21  0.173368
  22  4.17934
  23  1.97765e-06
  24  7.27862
  25  9.4865
  26  3.52635e-07
  27  18.7267
  28  1.08464
  29  0.314307
  30  0.723801
  31  2.02103
  32  1.67237
  33  0.065514
  34  0.0478312
Done.

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

Extracting fit parameters...

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  1.479e+01  7.478e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  1.018e+00  4.783e-02  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  1.003e+00  6.551e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.06
Ra Dec: 133.975 71.742
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 6.56e-06 +/- 3.32e-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) = 88155.8518989
delta logL = 0.0866741165228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 88155.8214755
delta logL = 0.117097496142

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   88155.82     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.269        10.075        .11436E-03    .16383E-03
   2  Index         2.8239        .54978        .10440E-01    .23660E-03
   3  Normalizat    .99797        .61869E-01    .29894E-03    .36813E-03
   4  Prefactor     1.0207        .47297E-01    .22914E-03    .44852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2692
  Index      = 2.82385
  Normalizat = 0.997971
  Prefactor  = 1.02065
 **********
 **   18 **HESSE 
 **********

 FCN=   88155.82     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.269        8.1485        .45745E-05   -1.5007    
   2  Index         2.8239        .44428        .41761E-03   -.45029    
   3  Normalizat    .99797        .61615E-01    .11958E-04   -.93098    
   4  Prefactor     1.0207        .47131E-01    .91654E-05   -.92044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69113e-11
Minuit parameter uncertainties:
  1  8.14925
  2  0.445007
  3  0.0616199
  4  0.0471328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565217': 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) = 88155.8214755
delta logL = 0.117097499024

Extracting fit parameters...

4FGL J0855.9+7144
   Spectrum: PowerLaw
329    Prefactor:  1.227e+01  8.149e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        Index:  2.824e+00  4.450e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  8.574e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  1.021e+00  4.713e-02  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  9.980e-01  6.162e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 133.975 71.742
Photon Index (Free Index): 2.82 +/- 0.45
Photon Flux (Free Index): 2.91e-08 +/- 1.41e-08
Energy Flux (Free Index): 6.41e-06 +/- 2.84e-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/565217/cmap_HighResolution_519523201_522115201_4FGL_J0855.9+7144_monthly_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='6.41e-06', photon_flux_error='1.29e-08', dlogl='1.17e-01', energy_flux='6.56e-06', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-10-20 10:07:47.533684', photon_index_error2='0.45', photon_index2='2.82', ts='6.06', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.84e-06', EG='1.00', time_epoch_completed='1634749667.53', return_code='0', job_id='565217', GAL2='1.02', EG2='1.00', return_code2='0', energy_flux_error='3.32e-06', photon_flux_error2='1.41e-08', ts2='6.38', photon_index='2.62' WHERE bin_id='109' AND source_name='4FGL J0855.9+7144' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 10:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0184>
Subject: Job 565217: <4FGL_J0855.9+7144_monthly_bin109> in cluster <slac> Done

Job <4FGL_J0855.9+7144_monthly_bin109> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Oct 20 07:10:10 2021
Job was executed on host(s) <bullet0184>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 07:10:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 07:10:12 2021
Terminated at Wed Oct 20 10:07:48 2021
Results reported at Wed Oct 20 10:07:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0855.9+7144_monthly_bin109 133.975 71.7419 519523201 522115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0855.9+7144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10514.02 sec.
    Max Memory :                                 1108 MB
    Average Memory :                             465.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   10656 sec.
    Turnaround time :                            10658 sec.

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

