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


Performing analysis on: 4FGL_J1359.1+5544_monthly_bin138
RA = 209.785, Dec = 55.7479
tmin = 594691201, tmax = 597283201
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='524291', job_status='RUN', time_executed='2021-10-25 12:05:56.881067', time_epoch_executed='1635188756.88' WHERE source_name='4FGL J1359.1+5544' and cadence='monthly' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524291

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524291/ft1_4FGL_J1359.1+5544_monthly_bin138.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524291/ft1_4FGL_J1359.1+5544_monthly_bin138.fits outfile=/scratch/kocevski/524291/ft1_filteredMKT_4FGL_J1359.1+5544_monthly_bin138.fits ra=209.785 dec=55.7479 rad=12.0 tmin=594691201.0 tmax=597283201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 28.10
user 27.54
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.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/524291/ft1_filteredMKT_4FGL_J1359.1+5544_monthly_bin138.fits evtable="EVENTS" outfile="/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.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.85
user 0.64
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/524291/ltcube_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.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/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits
.....................!
real 117.88
user 117.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/524291/ltcube_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits outfile=/scratch/kocevski/524291/expmap_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.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/524291/ltcube_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits
.....................!
real 191.53
user 185.48
sys 5.66

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/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits outfile=/scratch/kocevski/524291/cmap_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.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.77
user 0.59
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits outfile=/scratch/kocevski/524291/cmap_HighResolution_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.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.78
user 0.60
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524291/Model_4FGL_J1359.1+5544_monthly_bin138.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/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits.....................!
real 585.87
user 582.62
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits', '/scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits', expMap='/scratch/kocevski/524291/expmap_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits', expCube='/scratch/kocevski/524291/ltcube_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524291/Model_4FGL_J1359.1+5544_monthly_bin138.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/524291/ft1_filtered_4FGL_J1359.1+5544_monthly_bin138.fits
Spacecraft file(s): /scratch/kocevski/524291/ft2_4FGL_J1359.1+5544_monthly_bin138.fits
Exposure map: /scratch/kocevski/524291/expmap_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits
Exposure cube: /scratch/kocevski/524291/ltcube_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524291/Model_4FGL_J1359.1+5544_monthly_bin138.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) = 92029.8215812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0599       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5998       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1019       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .71441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41383       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6290       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2183       1.0000         .10000E-03   10000.    
    17 'norm      '    .67435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19444E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.780       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9707       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8880       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1634       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16541E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .97795       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.068       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .36763       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3296       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .83281E-01   1.0000         .10000E-03   10000.    
    32 'norm      '    1.1510       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .64581       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .93185       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   92028.60     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     4744 TOTAL
                     EDM=   .75E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0601        1.1083         .0000        .10015E-01
   2  norm          3.5999        .62358         .0000        .17573E-02
   3  norm          1.5225        .41649         .0000        .27239E-02
   4  Prefactor     5.6147        4.5580         .0000        .19042E-02
   5  Prefactor     2.1020        1.6598         .0000        .24825E-02
   6  norm          1.8168        .80061         .0000        .56474E-02
   7  Prefactor     4.0953        7.1843         .0000        .42817E-03
   8  Prefactor     5.3312        3.2677         .0000        .42398E-02
   9  Prefactor     .10000E-03    3.8210         .0000    ** at limit **
  10  norm          .71442        .65366         .0000        .11122E-01
  11  Prefactor     .84844        2.9053         .0000        .22000E-02
  12  Prefactor     1.3171        1.0331         .0000        .13603E-01
  13  Prefactor     1.4329        12.370         .0000        .11315E-02
  14  Prefactor     .41497        1.3350         .0000        .41801    
  15  norm          4.6290        .47624         .0000        .14968E-02
  16  norm          8.2189        7.9504         .0000       -.10260E-03
  17  norm          .67435        .60545         .0000        .12739E-01
  18  Prefactor     14.939        6.5131         .0000       -.85323E-03
  19  Prefactor     .10154E-03    47.932         .0000    ** at limit **
  20  Prefactor     11.781        6.8894         .0000       -.58971E-04
  21  Prefactor     .10000E-03    6.0348         .0000    ** at limit **
  22  Prefactor     1.9708        .96672         .0000        .63563E-02
  23  Prefactor     4.8880        4.4459         .0000        .19346E-01
  24  Prefactor     1.1635        .56628         .0000        .93112E-02
  25  Prefactor     .10959E-03    1.2394         .0000    ** at limit **
  26  Prefactor     .97942        5.1712         .0000        .62044E-02
  27  Prefactor     2.5756        6.8149         .0000        .96072E-02
  28  Prefactor     16.068        6.5309         .0000        .31373E-02
  29  Prefactor     .36707        .89664         .0000        .51801E-02
  30  Prefactor     1.3299        2.4937         .0000        .12318    
  31  Prefactor     .10433        .69446         .0000        .18068E-02
  32  norm          1.1508        .29423         .0000        .23935E-02
  33  Prefactor     .64609        1.5400         .0000        .42657    
  34  Prefactor     .10000E-03    .33275         .0000    ** at limit **
  35  Normalizat    1.1192        .45110E-01     .0000        .85154E-03
  36  Prefactor     .93182        .50763E-01     .0000        .71007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06005
  norm       = 3.59989
  norm       = 1.52246
  Prefactor  = 5.61472
  Prefactor  = 2.10205
  norm       = 1.81679
  Prefactor  = 4.0953
  Prefactor  = 5.33124
  Prefactor  = 0.0001
  norm       = 0.714418
  Prefactor  = 0.848441
  Prefactor  = 1.31705
  Prefactor  = 1.43288
  Prefactor  = 0.414966
  norm       = 4.62903
  norm       = 8.21894
  norm       = 0.674352
  Prefactor  = 14.9388
  Prefactor  = 0.000101541
  Prefactor  = 11.7808
  Prefactor  = 0.0001
  Prefactor  = 1.9708
  Prefactor  = 4.88803
  Prefactor  = 1.16348
  Prefactor  = 0.000109595
  Prefactor  = 0.979421
  Prefactor  = 2.57561
  Prefactor  = 16.0685
  Prefactor  = 0.367068
  Prefactor  = 1.32992
  Prefactor  = 0.104325
  norm       = 1.15083
  Prefactor  = 0.646087
  Prefactor  = 0.0001
  Normalizat = 1.11924
  Prefactor  = 0.931825
 **********
 **   18 **HESSE 
 **********

 FCN=   92028.60     FROM HESSE     STATUS=OK           861 CALLS     5605 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0601        1.0752        .29861E-03   -1.5502    
   2  norm          3.5999        .61444        .91034E-04   -1.5328    
   3  norm          1.5225        .41456        .99346E-04   -1.5461    
   4  Prefactor     5.6147        4.5575        .84762E-03   -1.5234    
   5  Prefactor     2.1020        1.6580        .28464E-03   -1.5418    
   6  norm          1.8168        .79382        .17167E-03   -1.5438    
   7  Prefactor     4.0953        7.1143        .19925E-03   -1.5303    
   8  Prefactor     5.3312        3.1457        .17407E-03   -1.5246    
   9  Prefactor     .10000E-03    3.8568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71442        .56944        .20911E-02   -1.5539    
  11  Prefactor     .84844        21.569        .87407E-02   -1.5524    
  12  Prefactor     1.3171        .95147        .22441E-03   -1.5478    
  13  Prefactor     1.4329        12.074        .36150E-03   -1.5469    
  14  Prefactor     .41497        1.2124        .21827E-02   -1.5579    
  15  norm          4.6290        .47586        .64666E-04   -1.5278    
  16  norm          8.2189        7.9435        .13985E-03   -1.5135    
  17  norm          .67435        .66812        .20525E-02   -1.5544    
  18  Prefactor     14.939        6.5058        .10364E-03   -1.4935    
  19  Prefactor     .10154E-03    48.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.781        6.8735        .11672E-03   -1.5021    
  21  Prefactor     .10000E-03    6.1059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9708        .96015        .20010E-03   -1.5427    
  23  Prefactor     4.8880        4.4382        .90967E-03   -1.5266    
  24  Prefactor     1.1635        .53102        .13839E-03   -1.5492    
  25  Prefactor     .10959E-03    1.2825        .98549E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .97942        4.8581        .52350E-03   -1.5510    
  27  Prefactor     2.5756        6.7539        .12712E-02   -1.5387    
  28  Prefactor     16.068        6.5272        .99916E-04   -1.4906    
  29  Prefactor     .36707        2.8136        .41792E-02   -1.5587    
  30  Prefactor     1.3299        2.4792        .19047E-02   -1.5477    
  31  Prefactor     .10433        .88078        .77258E-01   -1.5643    
  32  norm          1.1508        .29166        .79512E-04   -1.5493    
  33  Prefactor     .64609        1.5088        .23705E-02   -1.5547    
  34  Prefactor     .10000E-03    .88732        .32611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.1192        .51685E-01    .21280E-03   -.89136    
  36  Prefactor     .93182        .59029E-01    .27911E-03   -.95038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60482e-06
Minuit parameter uncertainties:
  1  1.07525
  2  0.61444
  3  0.414562
  4  4.55782
  5  1.65804
  6  0.793822
  7  7.1158
  8  3.14584
  9  2.18296e-05
  10  0.569449
  11  8.55873
  12  0.95148
  13  8.32067
  14  1.21246
  15  0.475863
  16  7.94453
  17  0.668132
  18  6.5061
  19  0.0172364
  20  6.87394
  21  3.29246e-05
  22  0.960161
  23  4.43847
  24  0.531022
  25  0.00701597
  26  4.36296
  27  6.7559
  28  6.52749
  29  2.03239
  30  2.47939
  31  0.605979
  32  0.291659
  33  1.50886
  34  6.57776e-06
  35  0.0516877
  36  0.0590329
Done.

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

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  6.744e-01  6.681e-01  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:  9.318e-01  5.903e-02  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.119e+00  5.169e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 209.785 55.748
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 4.52e-09 +/- 4.47e-09
Energy Flux (Fixed Index): 1.52e-06 +/- 1.51e-06

TS (Fixed Index): 1.36
Ra Dec: 209.785 55.748
Photon Flux Upper Limit: 1.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524291/likelihoodResults_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.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): 0
logL (Free Index) = 92028.5476018
delta logL = 0.0494334890682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 92028.546282
delta logL = 0.0507532915071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64504       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5733       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93298       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   92028.55     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64503        .70957        .22476E-03    .70699E-03
   2  alpha         2.5734        .73236        .60579E-01    .52283E-04
   3  Normalizat    1.1177        .48315E-01    .21293E-03    .12814E-04
   4  Prefactor     .93286        .58315E-01    .27898E-03    .65202E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.645034
  alpha      = 2.57338
  Normalizat = 1.11773
  Prefactor  = 0.932865
 **********
 **   18 **HESSE 
 **********

 FCN=   92028.55     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .61E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64503        .64252        .44953E-04   -1.5547    
   2  alpha         2.5734        .66629        .24231E-02    .29358E-01
   3  Normalizat    1.1177        .48318E-01    .85172E-05   -.89185    
   4  Prefactor     .93286        .58313E-01    .11159E-04   -.95002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05116e-14
Minuit parameter uncertainties:
  1  0.642526
  2  0.674444
  3  0.0483203
  4  0.0583166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524291': 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) = 92028.5462783
delta logL = 0.0507569971232

Extracting fit parameters...

4FGL J1359.1+5544
   Spectrum: LogParabola
333         norm:  6.450e-01  6.425e-01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.573e+00  6.744e-01  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:  9.329e-01  5.832e-02  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.118e+00  4.832e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 209.785 55.748
Photon Index (Free Index): 2.57 +/- 0.67
Photon Flux (Free Index): 5.64e-09 +/- 6.10e-09
Energy Flux (Free Index): 1.57e-06 +/- 1.47e-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/524291/cmap_HighResolution_594691201_597283201_4FGL_J1359.1+5544_monthly_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-06', comment='SUCCESS', photon_flux='4.52e-09', energy_flux2='1.57e-06', photon_flux_error='4.47e-09', dlogl='5.08e-02', energy_flux='1.52e-06', photon_flux2='5.64e-09', job_status='DONE', time_completed='2021-10-25 15:40:01.515666', photon_index_error2='0.67', photon_index2='2.57', ts='1.36', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.38e-08', energy_flux_error2='1.47e-06', EG='1.12', time_epoch_completed='1635201601.52', return_code='0', job_id='524291', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.51e-06', photon_flux_error2='6.10e-09', ts2='1.46', photon_index='2.36' WHERE bin_id='138' AND source_name='4FGL J1359.1+5544' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 15:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 524291: <4FGL_J1359.1+5544_monthly_bin138> in cluster <slac> Done

Job <4FGL_J1359.1+5544_monthly_bin138> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Oct 25 12:05:20 2021
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 12:05:41 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:05:41 2021
Terminated at Mon Oct 25 15:40:02 2021
Results reported at Mon Oct 25 15:40:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.1+5544_monthly_bin138 209.785 55.7479 594691201 597283201 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 :                                   12732.39 sec.
    Max Memory :                                 1266 MB
    Average Memory :                             450.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2950 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   12861 sec.
    Turnaround time :                            12882 sec.

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

