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


Performing analysis on: 4FGL_J2022.5+7612_monthly_bin118
RA = 305.646, Dec = 76.2007
tmin = 542851201, tmax = 545443201
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='753511', job_status='RUN', time_executed='2021-11-06 00:07:09.861259', time_epoch_executed='1636182429.86' WHERE source_name='4FGL J2022.5+7612' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/753511

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/753511/ft1_4FGL_J2022.5+7612_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/753511/ft1_4FGL_J2022.5+7612_monthly_bin118.fits outfile=/scratch/kocevski/753511/ft1_filteredMKT_4FGL_J2022.5+7612_monthly_bin118.fits ra=305.646 dec=76.2007 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.47
user 18.00
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.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/753511/ft1_filteredMKT_4FGL_J2022.5+7612_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.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.59
user 0.41
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/753511/ltcube_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.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/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits
.....................!
real 38.86
user 38.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/753511/ltcube_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits outfile=/scratch/kocevski/753511/expmap_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.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/753511/ltcube_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits
.....................!
real 192.36
user 186.87
sys 5.18

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 FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 206 point sources and 2 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 J2022.5+7612 @ 305.646 76.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits outfile=/scratch/kocevski/753511/cmap_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.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=305.646 yref=76.2007 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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits outfile=/scratch/kocevski/753511/cmap_HighResolution_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.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=305.646 yref=76.2007 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.60
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/753511/Model_4FGL_J2022.5+7612_monthly_bin118.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits........................!
real 26.51
user 25.25
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits', '/scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits', expMap='/scratch/kocevski/753511/expmap_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits', expCube='/scratch/kocevski/753511/ltcube_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/753511/Model_4FGL_J2022.5+7612_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.5+7612'

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  8.450e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/753511/ft1_filtered_4FGL_J2022.5+7612_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/753511/ft2_4FGL_J2022.5+7612_monthly_bin118.fits
Exposure map: /scratch/kocevski/753511/expmap_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits
Exposure cube: /scratch/kocevski/753511/ltcube_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/753511/Model_4FGL_J2022.5+7612_monthly_bin118.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) = 943.250607507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    582.82       1.0000         .10000E-03   10000.    
     4 'norm      '    .62665       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17607E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.778       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.571       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.4006       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   943.0212     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     3239 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.189        18.835       -.34449E-06    .67341E-04
   2  Prefactor     .10000E-03    72.630       -.23244E-04** at limit **
   3  Prefactor     582.66        901.99       -.66049E-04    .71183E-05
   4  norm          .62741        5.9913       -.16227E-05    .62872E-04
   5  norm          .10000E-03    9.3171       -.82708E-07** at limit **
   6  Prefactor     .10000E-03    14.728        .29310E-05** at limit **
   7  Prefactor     .10000E-03    37.829        .35829E-04** at limit **
   8  Prefactor     .10000E-03    263.07       -.12045E-03** at limit **
   9  norm          .10000E-03    7.3421        .38504E-07** at limit **
  10  Prefactor     28.412        85.625       -.24595E-04    .12268E-04
  11  Prefactor     .10000E-03    21.240       -.13491E-04** at limit **
  12  norm          .10000E-03    5.7708       -.23299E-06** at limit **
  13  norm          .10000E-03    119.02        .54028E-04** at limit **
  14  norm          .10000E-03    32.394       -.21253E-04** at limit **
  15  norm          .10000E-03    64.656       -.13230E-04** at limit **
  16  Prefactor     46.789        83.322        .11903E-04    .23369E-04
  17  norm          .10000E-03    8.1426        .47649E-07** at limit **
  18  Prefactor     .10000E-03    71.739       -.22971E-04** at limit **
  19  norm          .10000E-03    19.536        .19428E-04** at limit **
  20  Prefactor     .10000E-03    16.404       -.90915E-05** at limit **
  21  Prefactor     .10000E-03    115.88        .48818E-04** at limit **
  22  norm          .10000E-03    93.234        .20545E-05** at limit **
  23  Prefactor     12.568        59.974       -.50917E-05   -.97699E-06
  24  Normalizat    2.4007        .92382        .17768E-04    .42158E-04
  25  Prefactor     .65019        .19556       -.25204E-05    .31077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1888
  Prefactor  = 0.0001
  Prefactor  = 582.663
  norm       = 0.627407
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.412
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 46.7891
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5678
  Normalizat = 2.40072
  Prefactor  = 0.650192
 **********
 **   18 **HESSE 
 **********

 FCN=   943.0212     FROM HESSE     STATUS=OK           411 CALLS     3650 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.189        18.841        .10277E-03   -1.4928    
   2  Prefactor     .10000E-03    72.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     582.66        917.00        .85370E-04   -1.0832    
   4  norm          .62741        10.273        .13555E-02   -1.5550    
   5  norm          .10000E-03    9.3179        .91576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.729        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    263.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.3434        .81287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.412        86.829        .75139E-04   -1.4641    
  11  Prefactor     .10000E-03    21.326        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7847        .71924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    119.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    32.651        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    64.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.789        83.248        .58625E-04   -1.4339    
  17  norm          .10000E-03    8.1487        .85604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    71.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.533        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.437        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    115.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    93.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.568        60.052        .11298E-03   -1.4999    
  24  Normalizat    2.4007        1.0668        .38746E-03   -.54847    
  25  Prefactor     .65019        .22407        .15868E-03   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76698e-10
Minuit parameter uncertainties:
  1  18.8483
  2  6.04896e-06
  3  942.196
  4  5.07812
  5  3.28942e-06
  6  1.72632e-07
  7  6.17272e-06
  8  5.79163e-05
  9  7.97682e-06
  10  87.2184
  11  3.57216e-05
  12  5.764e-05
  13  3.78592e-06
  14  6.51887e-06
  15  0.00013943
  16  83.4563
  17  8.26313e-06
  18  3.85218e-05
  19  7.91498e-06
  20  2.94749e-05
  21  5.34346e-05
  22  1.40807e-06
  23  55.0341
  24  1.07823
  25  0.224379
Done.

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

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.000e-04  3.852e-05  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  6.502e-01  2.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  2.401e+00  1.078e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 305.646 76.201
Photon Flux Upper Limit: 5.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/753511/likelihoodResults_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.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) = 943.021288289
delta logL = -6.61944294507e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 943.021222297
delta logL = -2.03019340006e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   943.0212     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.487        .90712E-02** at limit **
   2  Index         2.4304        6.7164        .50000        .47580E-05
   3  Normalizat    2.4007        .22570E-01    .87562E-01   -.29204E-05
   4  Prefactor     .65019        .53470E-02    .41734E-01   -.58093E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.43037
  Normalizat = 2.40073
  Prefactor  = 0.650188
 **********
 **   18 **HESSE 
 **********

 FCN=   943.0212     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    257.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4304        5.7374        .50000       -.53975    
   3  Normalizat    2.4007        .51249E-01    .38746E-03   -.54846    
   4  Prefactor     .65019        .12149E-01    .15868E-03   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.41593e-08
Minuit parameter uncertainties:
  1  0.000723112
  2  271.223
  3  0.0512502
  4  0.0121493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/753511': 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) = 943.021222228
delta logL = -1.343112217e-07

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.000e-04  7.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.430e+00  2.712e+02  0.000e+00  1.000e+01 (-1.000e+00)
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  6.502e-01  1.215e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  2.401e+00  5.125e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 305.646 76.201

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/753511/cmap_HighResolution_542851201_545443201_4FGL_J2022.5+7612_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-02', job_status='DONE', photon_flux_upper_limit='5.63e-07', time_completed='2021-11-06 00:16:50.682184', job_id='753511', GAL2='0.65', fit_tolerance='1e-08', EG2='2.40', EG='2.40', time_epoch_completed='1636183010.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='118' AND source_name='4FGL J2022.5+7612' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Nov  6 00:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 753511: <4FGL_J2022.5+7612_monthly_bin118> in cluster <slac> Done

Job <4FGL_J2022.5+7612_monthly_bin118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Nov  6 00:05:24 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  6 00:05:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  6 00:05:26 2021
Terminated at Sat Nov  6 00:16:51 2021
Results reported at Sat Nov  6 00:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.5+7612_monthly_bin118 305.646 76.2007 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2022.5+7612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.00 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             246.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

