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


Performing analysis on: 4FGL_J1724.2+4005_monthly_bin149
RA = 261.051, Dec = 40.0891
tmin = 623203201, tmax = 625795201
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='469145', job_status='RUN', time_executed='2021-10-30 16:36:19.007866', time_epoch_executed='1635636979.01' WHERE source_name='4FGL J1724.2+4005' and cadence='monthly' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469145

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469145/ft1_4FGL_J1724.2+4005_monthly_bin149.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469145/ft1_4FGL_J1724.2+4005_monthly_bin149.fits outfile=/scratch/kocevski/469145/ft1_filteredMKT_4FGL_J1724.2+4005_monthly_bin149.fits ra=261.051 dec=40.0891 rad=12.0 tmin=623203201.0 tmax=625795201.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 31.49
user 30.68
sys 0.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.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/469145/ft1_filteredMKT_4FGL_J1724.2+4005_monthly_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.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.83
user 0.66
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/469145/ltcube_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.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/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits
.....................!
real 112.93
user 112.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/469145/ltcube_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits outfile=/scratch/kocevski/469145/expmap_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.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/469145/ltcube_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits
.....................!
real 194.01
user 187.91
sys 5.71

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

Setting source of interest to:
4FGL J1724.2+4005 @ 261.051 40.0891

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits outfile=/scratch/kocevski/469145/cmap_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.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=261.051 yref=40.0891 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.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits outfile=/scratch/kocevski/469145/cmap_HighResolution_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.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=261.051 yref=40.0891 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469145/Model_4FGL_J1724.2+4005_monthly_bin149.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/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits.....................!
real 593.65
user 591.39
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits', '/scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits', expMap='/scratch/kocevski/469145/expmap_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits', expCube='/scratch/kocevski/469145/ltcube_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469145/Model_4FGL_J1724.2+4005_monthly_bin149.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.2+4005'

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  4.785e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/469145/ft1_filtered_4FGL_J1724.2+4005_monthly_bin149.fits
Spacecraft file(s): /scratch/kocevski/469145/ft2_4FGL_J1724.2+4005_monthly_bin149.fits
Exposure map: /scratch/kocevski/469145/expmap_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits
Exposure cube: /scratch/kocevski/469145/ltcube_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469145/Model_4FGL_J1724.2+4005_monthly_bin149.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) = 89874.2622884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44024       1.0000         .10000E-03   10000.    
     2 'norm      '    .28863       1.0000         .10000E-03   10000.    
     3 'norm      '    .68881       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15531E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34679E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90936       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6410       1.0000         .10000E-03   10000.    
    12 'norm      '    .64025       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8405       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7863       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1010       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1438       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12792E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6590       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3249       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.485       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12855E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .55339       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7836       1.0000         .10000E-03   10000.    
    27 'norm      '    .57286       1.0000         .10000E-03   10000.    
    28 'norm      '    .12151E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.4384       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .40814       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   89874.18     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     3296 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44029        .61521        .53165E-06   -.14374E-03
   2  norm          .28863        .39571E-01    .34086E-08    .61357E-02
   3  norm          .68786        1.2899        .40156E-06   -.10081E-02
   4  Prefactor     .10000E-03    .70345        .34129E-07** at limit **
   5  Prefactor     .10000E-03    .17118       -.75059E-08** at limit **
   6  norm          .10000E-03    1.6596       -.17935E-07** at limit **
   7  Prefactor     .35164E-01    .84701E-01   -.83802E-07    .44369E-04
   8  Prefactor     .68324        .27822        .20927E-07    .11705E-02
   9  Prefactor     2.0768        .80624        .27313E-07   -.21831E-04
  10  Prefactor     .90935        .62700        .11642E-06   -.46129E-04
  11  norm          3.6410        .50331       -.15991E-08    .41574E-03
  12  norm          .64028        .23278        .12927E-07   -.21869E-03
  13  Prefactor     1.8420        1.5561        .33695E-06    .12873E-03
  14  norm          .10000E-03    .38683E-01   -.36579E-07** at limit **
  15  norm          1.7814        1.7083        .42590E-06    .75283E-03
  16  norm          7.1004        .63111       -.25876E-08    .11280E-02
  17  Prefactor     3.1436        .89934        .47646E-08    .28356E-04
  18  Prefactor     .10000E-03    2.6792       -.21255E-07** at limit **
  19  norm          .10000E-03    .32316       -.47877E-06** at limit **
  20  Prefactor     14.029        15.628        .18274E-05    .43820E-03
  21  Prefactor     6.7316        19.050        .22995E-06    .23121E-03
  22  norm          2.3240        1.2565        .10825E-06    .34110E-04
  23  Prefactor     24.608        9.9814        .16679E-07    .14991E-03
  24  Prefactor     .10000E-03    2.3641        .17945E-07** at limit **
  25  Prefactor     .57174        1.2367       -.25159E-06   -.43863E-04
  26  Prefactor     2.7854        1.6404        .38298E-07    .52335E-04
  27  norm          .57286        .34078        .22168E-07   -.74706E-04
  28  norm          .10000E-03    8.6902       -.99146E-07** at limit **
  29  norm          3.4337        1.8771        .11554E-06    .52004E-04
  30  Prefactor     .40813        .66709        .34377E-06   -.67849E-03
  31  Normalizat    1.0186        .58519E-01   -.17357E-06    .14315E-02
  32  Prefactor     .99824        .38205E-01   -.21124E-07    .16827E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.440293
  norm       = 0.28863
  norm       = 0.687859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0351635
  Prefactor  = 0.683236
  Prefactor  = 2.07684
  Prefactor  = 0.909355
  norm       = 3.641
  norm       = 0.640279
  Prefactor  = 1.84201
  norm       = 0.0001
  norm       = 1.7814
  norm       = 7.10035
  Prefactor  = 3.14365
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0289
  Prefactor  = 6.73163
  norm       = 2.32396
  Prefactor  = 24.6077
  Prefactor  = 0.0001
  Prefactor  = 0.571736
  Prefactor  = 2.78537
  norm       = 0.572864
  norm       = 0.0001
  norm       = 3.43368
  Prefactor  = 0.408126
  Normalizat = 1.0186
  Prefactor  = 0.998238
 **********
 **   18 **HESSE 
 **********

 FCN=   89874.18     FROM HESSE     STATUS=OK           699 CALLS     3995 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44029        .61755        .27080E-03   -1.5575    
   2  norm          .28863        .37743E-01    .19590E-04   -1.5601    
   3  norm          .68786        1.6519        .43628E-02   -1.5542    
   4  Prefactor     .10000E-03    6.7784        .46110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .17472        .12105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6845        .14742       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .35164E-01    .69607        .10490E-02   -1.5671    
   8  Prefactor     .68324        .32359        .79665E-04   -1.5543    
   9  Prefactor     2.0768        .79779        .15959E-03   -1.5420    
  10  Prefactor     .90935        .60632        .18355E-03   -1.5517    
  11  norm          3.6410        .50160        .75782E-04   -1.5326    
  12  norm          .64028        .21018        .80568E-03   -1.5548    
  13  Prefactor     1.8420        1.5316        .30747E-03   -1.5437    
  14  norm          .10000E-03    .15932        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7814        1.7030        .31303E-03   -1.5441    
  16  norm          7.1004        .63061        .66690E-04   -1.5175    
  17  Prefactor     3.1436        .89759        .14639E-03   -1.5353    
  18  Prefactor     .10000E-03    2.6998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5175        .29837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.029        15.772        .10721E-03   -1.4959    
  21  Prefactor     6.7316        19.053        .15550E-03   -1.5189    
  22  norm          2.3240        1.2520        .23611E-03   -1.5403    
  23  Prefactor     24.608        9.9720        .80954E-04   -1.4715    
  24  Prefactor     .10000E-03    2.3704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .57174        5.1343        .45788E-02   -1.5557    
  26  Prefactor     2.7854        1.6366        .24389E-03   -1.5374    
  27  norm          .57286        .33375        .13058E-03   -1.5557    
  28  norm          .10000E-03    8.7599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.4337        1.8730        .21813E-03   -1.5337    
  30  Prefactor     .40813        .76573        .29094E-02   -1.5580    
  31  Normalizat    1.0186        .70145E-01    .29244E-03   -.92410    
  32  Prefactor     .99824        .46428E-01    .20571E-03   -.92788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15405e-06
Minuit parameter uncertainties:
  1  0.617556
  2  0.0377427
  3  1.65198
  4  3.43358e-05
  5  2.23627e-07
  6  6.20732e-05
  7  0.312456
  8  0.323586
  9  0.797798
  10  0.606321
  11  0.501604
  12  0.210184
  13  1.53162
  14  3.44811e-07
  15  1.70309
  16  0.630612
  17  0.897593
  18  1.20392e-06
  19  4.44665e-05
  20  15.7765
  21  19.0701
  22  1.25201
  23  9.97269
  24  4.99748e-07
  25  3.42674
  26  1.63667
  27  0.333751
  28  2.04882e-05
  29  1.87308
  30  0.765744
  31  0.0701512
  32  0.0464299
Done.

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

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.781e+00  1.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.332e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  9.982e-01  4.643e-02  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.019e+00  7.015e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 261.051 40.089
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.71e-09 +/- 6.41e-09
Energy Flux (Fixed Index): 2.20e-06 +/- 2.10e-06

TS (Fixed Index): 1.43
Ra Dec: 261.051 40.089
Photon Flux Upper Limit: 1.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469145/likelihoodResults_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.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) = 89873.6134206
delta logL = 0.570214858453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 89873.6098827
delta logL = 0.573752741475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7419       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1271       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+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=   89873.61     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      250 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7418        2.3705        .25412E-03    .45953E-03
   2  alpha         3.1270        1.1020        .52852E-01    .93197E-04
   3  Normalizat    1.0066        .66335E-01    .29400E-03   -.28337E-03
   4  Prefactor     1.0027        .45763E-01    .20528E-03   -.48115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74179
  alpha      = 3.12704
  Normalizat = 1.00656
  Prefactor  = 1.00271
 **********
 **   18 **HESSE 
 **********

 FCN=   89873.61     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7418        1.5719        .50825E-04   -1.5444    
   2  alpha         3.1270        .74565        .21141E-02    .25352    
   3  Normalizat    1.0066        .65901E-01    .11760E-04   -.92811    
   4  Prefactor     1.0027        .45475E-01    .82113E-05   -.92639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00524e-11
Minuit parameter uncertainties:
  1  1.57189
  2  0.757984
  3  0.0659064
  4  0.0454771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469145': 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) = 89873.6098827
delta logL = 0.573752769953

Extracting fit parameters...

4FGL J1724.2+4005
   Spectrum: LogParabola
330         norm:  1.742e+00  1.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  3.127e+00  7.580e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  5.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.003e+00  4.548e-02  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  1.007e+00  6.591e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 261.051 40.089
Photon Index (Free Index): 3.13 +/- 0.76
Photon Flux (Free Index): 1.60e-08 +/- 1.22e-08
Energy Flux (Free Index): 3.19e-06 +/- 2.17e-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/469145/cmap_HighResolution_623203201_625795201_4FGL_J1724.2+4005_monthly_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-06', comment='SUCCESS', photon_flux='6.71e-09', energy_flux2='3.19e-06', photon_flux_error='6.41e-09', dlogl='5.74e-01', energy_flux='2.20e-06', photon_flux2='1.60e-08', job_status='DONE', time_completed='2021-10-30 19:25:51.592273', photon_index_error2='0.76', photon_index2='3.13', ts='1.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.98e-08', energy_flux_error2='2.17e-06', EG='1.02', time_epoch_completed='1635647151.59', return_code='0', job_id='469145', GAL2='1.00', EG2='1.01', return_code2='0', energy_flux_error='2.10e-06', photon_flux_error2='1.22e-08', ts2='2.61', photon_index='2.33' WHERE bin_id='149' AND source_name='4FGL J1724.2+4005' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 30 19:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 469145: <4FGL_J1724.2+4005_monthly_bin149> in cluster <slac> Done

Job <4FGL_J1724.2+4005_monthly_bin149> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct 30 16:35:20 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 30 16:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 30 16:35:46 2021
Terminated at Sat Oct 30 19:25:52 2021
Results reported at Sat Oct 30 19:25:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1724.2+4005_monthly_bin149 261.051 40.0891 623203201 625795201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1724.2+4005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9959.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             440.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10206 sec.
    Turnaround time :                            10232 sec.

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

