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


Performing analysis on: 4FGL_J1322.6-0936_daily_bin535
RA = 200.664, Dec = -9.6075
tmin = 378000001, tmax = 378259201
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='519323', job_status='RUN', time_executed='2021-09-07 14:34:19.263264', time_epoch_executed='1631050459.26' WHERE source_name='4FGL J1322.6-0936' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519323

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519323/ft1_4FGL_J1322.6-0936_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519323/ft1_4FGL_J1322.6-0936_daily_bin535.fits outfile=/scratch/kocevski/519323/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin535.fits ra=200.664 dec=-9.6075 rad=12.0 tmin=378000001.0 tmax=378259201.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 3.54
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.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/519323/ft1_filteredMKT_4FGL_J1322.6-0936_daily_bin535.fits evtable="EVENTS" outfile="/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/519323/ltcube_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.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/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits
.....................!
real 18.60
user 18.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/519323/ltcube_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits outfile=/scratch/kocevski/519323/expmap_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.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/519323/ltcube_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits
.....................!
real 192.19
user 187.12
sys 4.59

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

Setting source of interest to:
4FGL J1322.6-0936 @ 200.664 -9.6075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits outfile=/scratch/kocevski/519323/cmap_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.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=200.664 yref=-9.6075 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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits outfile=/scratch/kocevski/519323/cmap_HighResolution_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.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=200.664 yref=-9.6075 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519323/Model_4FGL_J1322.6-0936_daily_bin535.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/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits.....................!
real 52.58
user 51.25
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits', '/scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits', expMap='/scratch/kocevski/519323/expmap_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits', expCube='/scratch/kocevski/519323/ltcube_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519323/Model_4FGL_J1322.6-0936_daily_bin535.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.6-0936'

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  4.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/519323/ft1_filtered_4FGL_J1322.6-0936_daily_bin535.fits
Spacecraft file(s): /scratch/kocevski/519323/ft2_4FGL_J1322.6-0936_daily_bin535.fits
Exposure map: /scratch/kocevski/519323/expmap_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits
Exposure cube: /scratch/kocevski/519323/ltcube_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519323/Model_4FGL_J1322.6-0936_daily_bin535.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) = 6323.75041423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.663       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .63920       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    31.664       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27103E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0141       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8674       1.0000         .10000E-03   10000.    
    14 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5544       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9518       1.0000         .10000E-03   10000.    
    21 'norm      '    4.9614       1.0000         .10000E-03   10000.    
    22 'norm      '    .12268E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2304       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6323.666     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2332 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.662        14.067       -.34023E-06    .16324E-04
   2  Prefactor     .10000E-03    29.572        .44233E-05** at limit **
   3  norm          .10000E-03    17.256       -.11126E-06** at limit **
   4  norm          .63920        .25428       -.77553E-07   -.11385E-03
   5  norm          9.1491        7.6874       -.28699E-06   -.93001E-05
   6  Prefactor     .10000E-03    18.896       -.10636E-04** at limit **
   7  norm          31.662        14.089       -.16972E-06    .15705E-03
   8  norm          .10000E-03    8.4113       -.27002E-05** at limit **
   9  Prefactor     .10000E-03    11.337       -.55132E-05** at limit **
  10  Prefactor     .10007E-03    10.452       -.16719E-05** at limit **
  11  Prefactor     6.8224        10.554       -.51544E-06    .12575E-04
  12  Prefactor     8.0180        12.692       -.36657E-06    .22586E-04
  13  norm          3.8674        1.7958       -.20032E-06    .72743E-04
  14  norm          .10000E-03    2.4011        .92278E-07** at limit **
  15  norm          15.396        8.1547        .19100E-06    .87444E-04
  16  Prefactor     .10000E-03    15.068        .89159E-05** at limit **
  17  norm          .10000E-03    12.777        .15582E-05** at limit **
  18  norm          .10000E-03    2.2095        .17985E-06** at limit **
  19  Prefactor     6.5549        6.8165       -.84720E-06   -.13725E-03
  20  Prefactor     9.9198        90.518       -.79943E-04    .44874E-05
  21  norm          4.9617        7.6630       -.18884E-05   -.16349E-03
  22  norm          .10004E-03    1.5833        .62286E-06** at limit **
  23  Normalizat    1.2303        .23896        .71212E-06    .18800E-03
  24  Prefactor     .85381        .13737        .39124E-05   -.10386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.639196
  norm       = 9.14912
  Prefactor  = 0.0001
  norm       = 31.6625
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  Prefactor  = 6.82244
  Prefactor  = 8.01804
  norm       = 3.86744
  norm       = 0.0001
  norm       = 15.3959
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.55494
  Prefactor  = 9.9198
  norm       = 4.96166
  norm       = 0.000100037
  Normalizat = 1.23025
  Prefactor  = 0.853807
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.666     FROM HESSE     STATUS=OK           403 CALLS     2735 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.662        14.071        .80660E-04   -1.4714    
   2  Prefactor     .10000E-03    29.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .63920        .25412        .23761E-04   -1.5548    
   5  norm          9.1491        7.6871        .13250E-03   -1.5103    
   6  Prefactor     .10000E-03    18.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.662        14.083        .71207E-04   -1.4582    
   8  norm          .10000E-03    8.4521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    97.810        .49442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8224        10.571        .15365E-03   -1.5186    
  12  Prefactor     8.0180        12.649        .14163E-03   -1.5142    
  13  norm          3.8674        1.8007        .68564E-04   -1.5315    
  14  norm          .10000E-03    2.4255        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.396        8.1226        .10208E-03   -1.4923    
  16  Prefactor     .10000E-03    15.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2243        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5549        6.7732        .15675E-03   -1.5196    
  20  Prefactor     9.9198        90.777        .12702E-03   -1.5078    
  21  norm          4.9617        7.6104        .18055E-03   -1.5262    
  22  norm          .10004E-03    8.8363        .19201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2303        .27997        .30800E-03   -.85673    
  24  Prefactor     .85381        .16083        .21683E-03   -.97774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29414e-09
Minuit parameter uncertainties:
  1  14.0731
  2  3.16474e-05
  3  3.67893e-05
  4  0.254122
  5  7.68791
  6  8.0582e-06
  7  14.0841
  8  1.99165e-05
  9  2.54817e-05
  10  0.00517565
  11  10.5739
  12  12.6536
  13  1.80074
  14  4.65642e-06
  15  8.12322
  16  8.84354e-05
  17  1.25562e-05
  18  2.83e-05
  19  6.77402
  20  60.1371
  21  7.61184
  22  0.00114113
  23  0.280312
  24  0.160917
Done.

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

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  6.822e+00  1.057e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.621e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.538e-01  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.230e+00  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 200.664 -9.607
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/519323/likelihoodResults_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.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) = 6323.62285778
delta logL = 0.0431586878649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6323.60957767
delta logL = 0.0564388017638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2192       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0765       1.0000          .0000       10.000    
     3 'Normalizat'    1.2129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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=   6323.610     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2009        14.228        .87976E-03   -.22154E-03
   2  Index         3.0781        1.9829        .11765E-01   -.34578E-04
   3  Normalizat    1.2129        .26957        .30988E-03   -.64129E-04
   4  Prefactor     .86138        .15811        .21598E-03   -.33266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.20089
  Index      = 3.07813
  Normalizat = 1.2129
  Prefactor  = 0.861384
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.610     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2009        10.689        .35191E-04   -1.5252    
   2  Index         3.0781        1.5084        .47059E-03   -.39453    
   3  Normalizat    1.2129        .26980        .12395E-04   -.86205    
   4  Prefactor     .86138        .15773        .86393E-05   -.97504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70574e-11
Minuit parameter uncertainties:
  1  10.6929
  2  1.53668
  3  0.270109
  4  0.157813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519323': 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) = 6323.60957614
delta logL = 0.0564403270409

Extracting fit parameters...

4FGL J1322.6-0936
   Spectrum: PowerLaw
306    Prefactor:  5.201e+00  1.069e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.078e+00  1.537e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  5.620e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.614e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.213e+00  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 200.664 -9.607

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/519323/cmap_HighResolution_378000001_378259201_4FGL_J1322.6-0936_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-07 14:45:28.865894', job_id='519323', GAL2='0.86', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1631051128.87', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.64e-02', ts2='0.64', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='535' AND source_name='4FGL J1322.6-0936' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 519323: <4FGL_J1322.6-0936_daily_bin535> in cluster <slac> Done

Job <4FGL_J1322.6-0936_daily_bin535> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 14:30:57 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:31:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:31:25 2021
Terminated at Tue Sep  7 14:45:29 2021
Results reported at Tue Sep  7 14:45:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.6-0936_daily_bin535 200.664 -9.6075 378000001 378259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.6-0936 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            872 sec.

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

