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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1086
RA = 180.187, Dec = 20.1354
tmin = 520819201, tmax = 521078401
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='262148', job_status='RUN', time_executed='2021-09-04 20:48:07.088948', time_epoch_executed='1630813687.09' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262148/ft1_4FGL_J1200.7+2008_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262148/ft1_4FGL_J1200.7+2008_daily_bin1086.fits outfile=/scratch/kocevski/262148/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1086.fits ra=180.187 dec=20.1354 rad=12.0 tmin=520819201.0 tmax=521078401.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.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.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/262148/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/262148/ltcube_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.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/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits
.....................!
real 11.91
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/262148/ltcube_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits outfile=/scratch/kocevski/262148/expmap_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.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/262148/ltcube_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits
.....................!
real 191.07
user 186.09
sys 4.48

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/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits outfile=/scratch/kocevski/262148/cmap_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits outfile=/scratch/kocevski/262148/cmap_HighResolution_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262148/Model_4FGL_J1200.7+2008_daily_bin1086.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/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits.....................!
real 55.63
user 54.21
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits', '/scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits', expMap='/scratch/kocevski/262148/expmap_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits', expCube='/scratch/kocevski/262148/ltcube_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262148/Model_4FGL_J1200.7+2008_daily_bin1086.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/262148/ft1_filtered_4FGL_J1200.7+2008_daily_bin1086.fits
Spacecraft file(s): /scratch/kocevski/262148/ft2_4FGL_J1200.7+2008_daily_bin1086.fits
Exposure map: /scratch/kocevski/262148/expmap_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits
Exposure cube: /scratch/kocevski/262148/ltcube_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262148/Model_4FGL_J1200.7+2008_daily_bin1086.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) = 5972.65452217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4716       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9847       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19223E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16999E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16724E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11453E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73551E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.6368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11210E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3606       1.0000         .10000E-03   10000.    
    20 'norm      '    .27063       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1974       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21919E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13135E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.184       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98907       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2712       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.

 FCN=   5972.582     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2651 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4730        5.1424        .93160E-06    .19986E-02
   2  norm          4.0066        11.930        .42051E-05   -.13308E-03
   3  Prefactor     .10000E-03    9.7559        .58922E-05** at limit **
   4  Prefactor     .10000E-03    9.4744        .94580E-06** at limit **
   5  Prefactor     .10000E-03    12.476        .18786E-05** at limit **
   6  Prefactor     .10000E-03    4.4470        .76864E-06** at limit **
   7  Prefactor     .10000E-03    3.3100       -.11667E-06** at limit **
   8  Prefactor     .24302        .97310       -.55481E-06   -.96650E-03
   9  Prefactor     .10000E-03    8.3758       -.89202E-05** at limit **
  10  norm          4.6685        1.4827        .50684E-08    .42636E-04
  11  Prefactor     12.307        14.687       -.80134E-05    .46463E-04
  12  Prefactor     .10000E-03    1.6741        .17399E-07** at limit **
  13  Prefactor     .10000E-03    20.978       -.20341E-04** at limit **
  14  Prefactor     .10000E-03    1.3667        .26441E-07** at limit **
  15  Prefactor     .10000E-03    2.7606        .56489E-07** at limit **
  16  norm          8.6468        3.8738       -.56526E-07   -.21569E-04
  17  Prefactor     .10000E-03    1.7600        .14816E-08** at limit **
  18  Prefactor     3.3465        2.6766       -.23050E-06   -.30129E-03
  19  Prefactor     9.3591        5.7427        .18859E-06    .23858E-04
  20  norm          .27054        .28277       -.87284E-07   -.23078E-02
  21  norm          3.1993        3.5876        .19037E-05   -.12707E-03
  22  Prefactor     .10000E-03    6.5051        .50140E-05** at limit **
  23  Prefactor     .10000E-03    5.3424       -.25750E-05** at limit **
  24  Prefactor     29.312        23.179        .40479E-05   -.52632E-04
  25  Normalizat    .98909        .19601       -.20209E-06    .49350E-04
  26  Prefactor     1.2710        .20161        .22451E-06    .17432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47304
  norm       = 4.00664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.243024
  Prefactor  = 0.0001
  norm       = 4.66849
  Prefactor  = 12.3067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.64681
  Prefactor  = 0.0001
  Prefactor  = 3.34651
  Prefactor  = 9.35911
  norm       = 0.270538
  norm       = 3.19932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3116
  Normalizat = 0.989092
  Prefactor  = 1.27097
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.582     FROM HESSE     STATUS=OK           460 CALLS     3111 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4730        5.2343        .84078E-03   -1.5240    
   2  norm          4.0066        11.879        .20205E-03   -1.5308    
   3  Prefactor     .10000E-03    9.9048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4510        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3162        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24302        1.6253        .14617E-02   -1.5609    
   9  Prefactor     .10000E-03    8.3994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6685        1.4837        .50912E-04   -1.5276    
  11  Prefactor     12.307        14.648        .11444E-03   -1.5006    
  12  Prefactor     .10000E-03    1.6994        .97600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.832        .20951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3946        .88134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8777        .25029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.6468        3.8565        .95551E-04   -1.5120    
  17  Prefactor     .10000E-03    1.7847        .99678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3465        2.6678        .10490E-03   -1.5342    
  19  Prefactor     9.3591        5.7350        .13099E-03   -1.5096    
  20  norm          .27054        .27011        .38431E-03   -1.5604    
  21  norm          3.1993        3.5706        .14798E-03   -1.5350    
  22  Prefactor     .10000E-03    6.5270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3547        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.312        23.138        .74163E-04   -1.4625    
  25  Normalizat    .98909        .22918        .26682E-03   -.93397    
  26  Prefactor     1.2710        .23873        .25847E-03   -.84175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60753e-09
Minuit parameter uncertainties:
  1  5.23472
  2  11.8856
  3  5.45812e-05
  4  1.91417e-06
  5  1.98828e-05
  6  5.68538e-07
  7  1.74231e-06
  8  1.25676
  9  7.59675e-05
  10  1.48367
  11  14.6522
  12  2.28419e-06
  13  3.97335e-05
  14  2.93771e-06
  15  6.56119e-06
  16  3.85658
  17  3.40308e-06
  18  2.66788
  19  5.7353
  20  0.270114
  21  3.57082
  22  3.86195e-05
  23  7.09742e-07
  24  23.1448
  25  0.229408
  26  0.238939
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.284e-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:  1.271e+00  2.389e-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:  9.891e-01  2.294e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262148/likelihoodResults_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.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) = 5972.58450672
delta logL = -0.00279155837143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5972.58171521
delta logL = -4.99776433571e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5104       1.0000          .0000       10.000    
     3 'Normalizat'    .98913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2710       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=   5972.582     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    48.410        .98002E-03** at limit **
   2  Index         2.4599        5.8159        .50000        .39739E-04
   3  Normalizat    .98909        .25526E-01    .26682E-03    .24798E-04
   4  Prefactor     1.2710        .27726E-01    .25847E-03    .28590E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5972.582     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      370 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    48.410        .25919E-03** at limit **
   2  Index         2.4599        5.8159        .35737E-03    .39739E-04
   3  Normalizat    .98909        .25526E-01    .34810E-05    .24798E-04
   4  Prefactor     1.2710        .27726E-01    .40852E-05    .28590E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5972.582     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      412 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    267.72        .19600E-03** at limit **
   2  Index         2.2565        8.7189        .50000        .91427E-07
   3  Normalizat    .98909        .74285E-01    .10673E-04   -.21411E-03
   4  Prefactor     1.2710        .80661E-01    .10339E-04   -.21201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25646
  Normalizat = 0.989091
  Prefactor  = 1.27097
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.582     FROM HESSE     STATUS=OK            29 CALLS      441 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2874        .39201E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2565        5.9797        .50000       -.58082    
   3  Normalizat    .98909        .21834        .21346E-05   -.93397    
   4  Prefactor     1.2710        .23719        .20677E-05   -.84175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37506e-11
Minuit parameter uncertainties:
  1  2.37866e-06
  2  81.4827
  3  0.218537
  4  0.237391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262148': 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) = 5972.58171361
delta logL = 1.54994995683e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.379e-06  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.256e+00  8.148e+01  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:  1.271e+00  2.374e-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:  9.891e-01  2.185e-01  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/262148/cmap_HighResolution_520819201_521078401_4FGL_J1200.7+2008_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-04 21:02:06.253367', job_id='262148', GAL2='1.27', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630814526.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1086' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 262148: <4FGL_J1200.7+2008_daily_bin1086> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1086> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:29 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:31 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:45:31 2021
Terminated at Sat Sep  4 21:02:07 2021
Results reported at Sat Sep  4 21:02:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1086 180.187 20.1354 520819201 521078401 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            998 sec.

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

