/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 62 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_J1359.1+5544_monthly_bin118
RA = 209.785, Dec = 55.7479
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='522928', job_status='RUN', time_executed='2021-10-25 12:03:23.320409', time_epoch_executed='1635188603.32' WHERE source_name='4FGL J1359.1+5544' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/522928

Creating custom pfile directory:
/scratch/kocevski/522928/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/522928/ft1_4FGL_J1359.1+5544_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/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/522928/ft1_4FGL_J1359.1+5544_monthly_bin118.fits outfile=/scratch/kocevski/522928/ft1_filteredMKT_4FGL_J1359.1+5544_monthly_bin118.fits ra=209.785 dec=55.7479 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 19.23
user 18.49
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_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/522928/ft1_filteredMKT_4FGL_J1359.1+5544_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_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.60
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/522928/ltcube_542851201_545443201_4FGL_J1359.1+5544_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/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits
.....................!
real 45.51
user 44.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/522928/ltcube_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits outfile=/scratch/kocevski/522928/expmap_542851201_545443201_4FGL_J1359.1+5544_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/522928/ltcube_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits
.....................!
real 193.51
user 186.94
sys 5.32

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

Setting source of interest to:
4FGL J1359.1+5544 @ 209.785 55.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits outfile=/scratch/kocevski/522928/cmap_542851201_545443201_4FGL_J1359.1+5544_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=209.785 yref=55.7479 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.61
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits outfile=/scratch/kocevski/522928/cmap_HighResolution_542851201_545443201_4FGL_J1359.1+5544_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=209.785 yref=55.7479 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.66
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/522928/Model_4FGL_J1359.1+5544_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 GAL_V02
Working on...
/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits...................................!
real 17.03
user 15.69
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits', '/scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits', expMap='/scratch/kocevski/522928/expmap_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits', expCube='/scratch/kocevski/522928/ltcube_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/522928/Model_4FGL_J1359.1+5544_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.1+5544'

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  2.033e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/522928/ft1_filtered_4FGL_J1359.1+5544_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/522928/ft2_4FGL_J1359.1+5544_monthly_bin118.fits
Exposure map: /scratch/kocevski/522928/expmap_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits
Exposure cube: /scratch/kocevski/522928/ltcube_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/522928/Model_4FGL_J1359.1+5544_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) = 444.76113788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36174E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .18216E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .91715E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0011       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63525E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    13.921       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22382E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    147.46       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46819E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    25.853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    229.97       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24312E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.954       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28844       1.0000         .10000E-03   10000.    
    17 'norm      '    .21239E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12117E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22207E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40284E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.495       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .35650E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18331E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    66.504       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .55037E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12570E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    43.500       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .56315E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .44209E-02   1.0000         .10000E-03   10000.    
    32 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .19923E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    22.417       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   439.3279     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     4465 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.15       -.19401E-05** at limit **
   2  norm          .10000E-03    53.279       -.13352E-06** at limit **
   3  norm          .10001E-03    28.647        .46228E-05** at limit **
   4  Prefactor     .10085E-03    6269.6        .58133E-05** at limit **
   5  Prefactor     .10000E-03    177.22        .54421E-06** at limit **
   6  norm          15.593        17.433        .27656E-06    .32308E-04
   7  Prefactor     .10000E-03    79.764       -.24271E-06** at limit **
   8  Prefactor     .12249E-03    504.31        .96701E-04** at limit **
   9  Prefactor     .10001E-03    157.28        .45942E-05** at limit **
  10  norm          30.507        38.406        .98604E-05    .53850E-04
  11  Prefactor     1097.1        1169.6        .13309E-04    .15931E-02
  12  Prefactor     .10311E-03    939.63        .12000E-04** at limit **
  13  Prefactor     .10000E-03    401.13        .61458E-05** at limit **
  14  Prefactor    10000.0        2054.4        .13023E-04** at limit **
  15  norm          .10000E-03    2.0506       -.35203E-06** at limit **
  16  norm          .10000E-03    1044.2       -.53948E-06** at limit **
  17  norm          .10000E-03    33.427       -.58223E-06** at limit **
  18  Prefactor    10000.0        7816.0       -.51611E-05   -.36009E-03
  19  Prefactor     .77144E-01    864.65        .46448E-04   -.14680E-02
  20  Prefactor     .10000E-03    175.11        .24936E-05** at limit **
  21  Prefactor     .10000E-03    73.232        .14776E-06** at limit **
  22  Prefactor     .10000E-03    8.0018        .15743E-06** at limit **
  23  Prefactor     35.311        59.861       -.31015E-05    .84301E-04
  24  Prefactor     .10000E-03    10.915       -.31162E-06** at limit **
  25  Prefactor     .10000E-03    108.20       -.33016E-05** at limit **
  26  Prefactor     27.168        136.20       -.34818E-05   -.78329E-04
  27  Prefactor     .10000E-03    88.937       -.98498E-06** at limit **
  28  Prefactor     .10000E-03    158.24        .22533E-05** at limit **
  29  Prefactor     48.732        57.607       -.26437E-06    .26450E-04
  30  Prefactor     .10000E-03    101.60        .33532E-06** at limit **
  31  Prefactor     .10000E-03    16.292       -.50688E-07** at limit **
  32  norm          .10000E-03    2.6906       -.18841E-06** at limit **
  33  Prefactor     .10000E-03    31.202        .61294E-05** at limit **
  34  Prefactor     .10000E-03    36.324        .60878E-05** at limit **
  35  Normalizat    .10000E-01    .89868        .30178E-04** at limit **
  36  Prefactor     1.0783        .37284        .12420E-04    .61458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100853
  Prefactor  = 0.0001
  norm       = 15.5926
  Prefactor  = 0.000100001
  Prefactor  = 0.000122492
  Prefactor  = 0.000100006
  norm       = 30.507
  Prefactor  = 1097.12
  Prefactor  = 0.000103105
  Prefactor  = 0.000100004
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0771437
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.168
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 48.7323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.07832
 **********
 **   18 **HESSE 
 **********

 FCN=   439.3279     FROM HESSE     STATUS=OK           863 CALLS     5328 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    132.67        .98081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    53.682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    30.730        .91171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10085E-03    6267.8        .44956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    178.10        .94265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.593        17.409        .26838E-02   -1.4918    
   7  Prefactor     .10000E-03    83.840        .91344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12249E-03    509.19        .82965E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    162.00        .96458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          30.507        38.458        .19696E-02   -1.4603    
  11  Prefactor     1097.1        1191.7        .66713E-03   -.89559    
  12  Prefactor     .10311E-03    914.47        .34954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    410.99        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        2179.9        .28966E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1045.4        .10374E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        7931.3        .23919E-02    1.5697    
  19  Prefactor     .77144E-01    8425.8        .24621E-02   -1.5763    
  20  Prefactor     .10000E-03    173.39        .90835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    74.020        .10066E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2759        .10630E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.311        60.402        .19834E-02   -1.4519    
  24  Prefactor     .10000E-03    11.274        .98168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    109.12        .10153E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     27.168        134.03        .12304E-02   -1.4665    
  27  Prefactor     .10000E-03    86.967        .95335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    153.24        .10302E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     48.732        57.708        .15196E-02   -1.4311    
  30  Prefactor     .10000E-03    101.25        .10549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    16.766        .96836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    2.8158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    31.036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    36.261        .21150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .75474        .15084       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.0783        .39799        .34735E-01   -.90162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00463e-06
Minuit parameter uncertainties:
  1  0.000229846
  2  8.8958e-05
  3  0.000829154
  4  0.097459
  5  1.61922e-05
  6  17.4149
  7  0.000434269
  8  0.215896
  9  0.00198351
  10  38.4895
  11  1222.65
  12  0.108269
  13  0.00271378
  14  0.739692
  15  2.13241e-06
  16  0.000328752
  17  5.48976e-06
  18  9.53528
  19  53.9765
  20  0.000678055
  21  0.000109057
  22  6.32853e-06
  23  60.5071
  24  3.74397e-05
  25  2.72295e-06
  26  121.124
  27  0.000136815
  28  0.000915535
  29  57.7747
  30  0.000106213
  31  2.49593e-05
  32  2.63897e-06
  33  0.000175013
  34  0.0001789
  35  9.66863e-06
  36  0.39909
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  5.490e-06  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.361e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.078e+00  3.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.000e-02  9.669e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.785 55.748
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/522928/likelihoodResults_542851201_545443201_4FGL_J1359.1+5544_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) = 439.328074398
delta logL = -0.000141538114008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 439.327935745
delta logL = -2.88554417693e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4283       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   439.3279     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      293 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6282.4        .71957E-02** at limit **
   2  alpha         1.8060        2.7803        .18192        .58470E-08
   3  Normalizat    .10000E-01    .15273        .92250E-02** at limit **
   4  Prefactor     1.0783        .12019        .19311E-03   -.28125E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80597
  Normalizat = 0.01
  Prefactor  = 1.07832
 **********
 **   18 **HESSE 
 **********

 FCN=   439.3279     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.326        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8060        3.3478        .72767E-01   -.28131    
   3  Normalizat    .10000E-01    .88352        .18450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0783        .29197        .38622E-04   -.90163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1308e-09
Minuit parameter uncertainties:
  1  2.04682e-05
  2  918.857
  3  3.79575e-05
  4  0.292407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/522928': 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) = 439.327932639
delta logL = 2.20318497668e-07

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  1.000e-04  2.047e-05  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.806e+00  9.189e+02  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  7.465e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.078e+00  2.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.000e-02  3.796e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.785 55.748

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/522928/cmap_HighResolution_542851201_545443201_4FGL_J1359.1+5544_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-04', job_status='DONE', photon_flux_upper_limit='1.07e-06', time_completed='2021-10-25 12:12:27.485781', job_id='522928', GAL2='1.08', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1635189147.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='118' AND source_name='4FGL J1359.1+5544' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 12:12:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 522928: <4FGL_J1359.1+5544_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1359.1+5544_monthly_bin118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Oct 25 12:00:24 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 12:02:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 12:02:08 2021
Terminated at Mon Oct 25 12:12:28 2021
Results reported at Mon Oct 25 12:12:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_monthly_bin118 209.785 55.7479 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.1+5544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   522.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            724 sec.

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

