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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1328
RA = 180.187, Dec = 20.1354
tmin = 583545601, tmax = 583804801
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='263754', job_status='RUN', time_executed='2021-09-04 20:53:02.823539', time_epoch_executed='1630813982.82' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263754/ft1_4FGL_J1200.7+2008_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263754/ft1_4FGL_J1200.7+2008_daily_bin1328.fits outfile=/scratch/kocevski/263754/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1328.fits ra=180.187 dec=20.1354 rad=12.0 tmin=583545601.0 tmax=583804801.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.53
user 3.19
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.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/263754/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1328.fits evtable="EVENTS" outfile="/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/263754/ltcube_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.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/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits
.....................!
real 12.39
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/263754/ltcube_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits outfile=/scratch/kocevski/263754/expmap_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.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/263754/ltcube_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits
.....................!
real 190.66
user 184.68
sys 5.57

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

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits outfile=/scratch/kocevski/263754/cmap_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.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=180.187 yref=20.1354 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits outfile=/scratch/kocevski/263754/cmap_HighResolution_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.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=180.187 yref=20.1354 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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263754/Model_4FGL_J1200.7+2008_daily_bin1328.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/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits.....................!
real 56.46
user 55.12
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits', '/scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits', expMap='/scratch/kocevski/263754/expmap_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits', expCube='/scratch/kocevski/263754/ltcube_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263754/Model_4FGL_J1200.7+2008_daily_bin1328.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263754/ft1_filtered_4FGL_J1200.7+2008_daily_bin1328.fits
Spacecraft file(s): /scratch/kocevski/263754/ft2_4FGL_J1200.7+2008_daily_bin1328.fits
Exposure map: /scratch/kocevski/263754/expmap_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits
Exposure cube: /scratch/kocevski/263754/ltcube_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263754/Model_4FGL_J1200.7+2008_daily_bin1328.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) = 5867.42493195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1912       1.0000         .10000E-03   10000.    
     2 'norm      '    27.735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98214E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3778       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2633       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .81055E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9240       1.0000         .10000E-03   10000.    
    20 'norm      '    .21696       1.0000         .10000E-03   10000.    
    21 'norm      '    31.220       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.874       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5867.333     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     2682 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1913        4.6560        .49213E-02   -.86030E-04
   2  norm          27.731        14.695        .19018E-02    .18985E-02
   3  Prefactor     .10111E-03    6.8713        .90721E-01** at limit **
   4  Prefactor     .10000E-03    29.965        .90712E-02** at limit **
   5  Prefactor     .10000E-03    9.6275        .90712E-02** at limit **
   6  Prefactor     .92282        16.128        .13041       -.74306E-03
   7  Prefactor     .10002E-03    11.645        .90712E-02** at limit **
   8  Prefactor     1.4086        2.1640        .91160E-02    .75575E-03
   9  Prefactor     6.3778        8.8111        .39733E-02   -.27306E-03
  10  norm          .10000E-03    .44010        .90712E-02** at limit **
  11  Prefactor     .10002E-03    11.830        .90712E-02** at limit **
  12  Prefactor     .10000E-03    1.8782        .90712E-02** at limit **
  13  Prefactor     .10006E-03    54.533        .90712E-02** at limit **
  14  Prefactor     .10000E-03    .85034        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.2362        .90712E-02** at limit **
  16  norm          9.2634        3.4576        .32920E-02    .13912E-03
  17  Prefactor     .80271E-01    1.1213        .41569E-01    .47192E-03
  18  Prefactor     .10000E-03    .54718        .90712E-02** at limit **
  19  Prefactor     5.9238        5.0325        .41246E-02    .10224E-03
  20  norm          .21697        .15987        .57819E-02    .15529E-02
  21  norm          31.218        7.6837        .17928E-02    .20167E-02
  22  Prefactor     10.878        11.935        .30375E-02   -.14364E-03
  23  Prefactor     .10000E-03    3.0964        .90712E-02** at limit **
  24  Prefactor     .10000E-03    21.693        .90712E-02** at limit **
  25  Normalizat    1.2514        .18384        .52727E-01   -.15053E-04
  26  Prefactor     .82330        .17949        .65105E-01    .92862E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19128
  norm       = 27.7307
  Prefactor  = 0.000101108
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.922818
  Prefactor  = 0.000100023
  Prefactor  = 1.40863
  Prefactor  = 6.37784
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.2634
  Prefactor  = 0.0802711
  Prefactor  = 0.0001
  Prefactor  = 5.9238
  norm       = 0.216971
  norm       = 31.2181
  Prefactor  = 10.8775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2514
  Prefactor  = 0.823302
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.333     FROM HESSE     STATUS=OK           464 CALLS     3146 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1913        4.6541        .16929E-03   -1.5298    
   2  norm          27.731        14.722        .76071E-04   -1.4654    
   3  Prefactor     .10111E-03    11.270        .63486E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92282        146.42        .51276E-02   -1.5516    
   7  Prefactor     .10002E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4086        2.1216        .12091E-03   -1.5471    
   9  Prefactor     6.3778        8.8082        .15893E-03   -1.5203    
  10  norm          .10000E-03    .45754        .99028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    11.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9477        .20491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    54.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .86006        .68951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2485        .83122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2634        3.6929        .80183E-04   -1.5099    
  17  Prefactor     .80271E-01    7.6724        .15003E-02   -1.5651    
  18  Prefactor     .10000E-03    .55044        .55310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9238        5.0308        .15104E-03   -1.5221    
  20  norm          .21697        .16090        .12669E-03   -1.5615    
  21  norm          31.218        7.6987        .71710E-04   -1.4590    
  22  Prefactor     10.878        11.933        .12150E-03   -1.5048    
  23  Prefactor     .10000E-03    3.1003        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2514        .21793        .23313E-03   -.85029    
  26  Prefactor     .82330        .21080        .28799E-03   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4399e-08
Minuit parameter uncertainties:
  1  4.6545
  2  14.7235
  3  0.00707013
  4  0.000708272
  5  5.20688e-06
  6  23.3052
  7  0.00104223
  8  2.12174
  9  8.80997
  10  2.63533e-07
  11  0.000989411
  12  2.40037e-06
  13  0.00369377
  14  1.67027e-06
  15  8.28736e-07
  16  3.69298
  17  1.56878
  18  8.13532e-07
  19  5.03117
  20  0.160904
  21  7.69894
  22  11.9359
  23  2.09029e-06
  24  5.10839e-05
  25  0.218093
  26  0.211009
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.400e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.233e-01  2.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.251e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263754/likelihoodResults_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.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) = 5867.33546546
delta logL = -0.00244112835207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.33302448
delta logL = -1.44819750858e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5066       1.0000          .0000       10.000    
     3 'Normalizat'    1.2514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5867.333     FROM MIGRAD    STATUS=FAILED        93 CALLS      252 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    27.967        .20658E-02** at limit **
   2  Index         2.4381        8.7665        .50000        .46306E-04
   3  Normalizat    1.2514        .17291E-01    .23313E-03   -.45986E-04
   4  Prefactor     .82330        .17800E-01    .28799E-03   -.15988E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5867.333     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      374 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    27.967        .23996E-03** at limit **
   2  Index         2.4381        8.7665        .61031E-03    .46306E-04
   3  Normalizat    1.2514        .17291E-01    .26306E-05   -.45986E-04
   4  Prefactor     .82330        .17800E-01    .33390E-05   -.15988E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5867.333     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      420 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.040        .41316E-02** at limit **
   2  Index         2.2095        5.9468        .50000        .57889E-07
   3  Normalizat    1.2514        .14588E-01    .93251E-05    .25992E-03
   4  Prefactor     .82330        .15017E-01    .11520E-04    .22442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20949
  Normalizat = 1.2514
  Prefactor  = 0.823302
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.333     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      449 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.80        .82632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2095        6.1767        .50000       -.59210    
   3  Normalizat    1.2514        .34058E-01    .18650E-05   -.85029    
   4  Prefactor     .82330        .35064E-01    .23040E-05   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66573e-11
Minuit parameter uncertainties:
  1  3.76593e-05
  2  519.268
  3  0.0340583
  4  0.0350654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263754': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.33302209
delta logL = 2.23907045438e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.766e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.209e+00  5.193e+02  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  8.233e-01  3.507e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.251e+00  3.406e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/263754/cmap_HighResolution_583545601_583804801_4FGL_J1200.7+2008_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-04 21:05:57.399365', job_id='263754', GAL2='0.82', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630814757.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1328' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 263754: <4FGL_J1200.7+2008_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1328> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:25 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:50:27 2021
Terminated at Sat Sep  4 21:05:58 2021
Results reported at Sat Sep  4 21:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1328 180.187 20.1354 583545601 583804801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

