/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 1 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.7+2008_daily_bin364
RA = 180.187, Dec = 20.1354
tmin = 333676801, tmax = 333936001
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='258381', job_status='RUN', time_executed='2021-09-04 20:35:26.143881', time_epoch_executed='1630812926.14' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258381/ft1_4FGL_J1200.7+2008_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258381/ft1_4FGL_J1200.7+2008_daily_bin364.fits outfile=/scratch/kocevski/258381/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin364.fits ra=180.187 dec=20.1354 rad=12.0 tmin=333676801.0 tmax=333936001.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.90
user 3.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258381/ft1_filtered_4FGL_J1200.7+2008_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/258381/ltcube_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.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/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits
.....................!
real 12.01
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258381/ft1_filtered_4FGL_J1200.7+2008_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/258381/ltcube_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.fits outfile=/scratch/kocevski/258381/expmap_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.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/258381/ltcube_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.fits
.....................!
real 190.19
user 184.63
sys 5.09

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/258381/ft1_filtered_4FGL_J1200.7+2008_daily_bin364.fits scfile=/scratch/kocevski/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits outfile=/scratch/kocevski/258381/cmap_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.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.69
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258381/ft1_filtered_4FGL_J1200.7+2008_daily_bin364.fits scfile=/scratch/kocevski/258381/ft2_4FGL_J1200.7+2008_daily_bin364.fits outfile=/scratch/kocevski/258381/cmap_HighResolution_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8780       1.0000         .10000E-03   10000.    
     2 'norm      '    21.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11556E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2823       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1303       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20334E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2440       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1160       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6199       1.0000         .10000E-03   10000.    
    20 'norm      '    .75593       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4807       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0077       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30056E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2927       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60275       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.

 FCN=   5547.810     FROM MIGRAD    STATUS=CONVERGED   1136 CALLS     3227 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8801        6.1156        .71429E-03   -.23217E-03
   2  norm          21.612        14.104        .86116E-04    .88451E-04
   3  Prefactor     .10000E-03    2.7010        .11950E-02** at limit **
   4  Prefactor     .10000E-03    23.300        .18142E-02** at limit **
   5  Prefactor     .10000E-03    15.418        .18142E-02** at limit **
   6  Prefactor     .10000E-03    39.327        .36285E-03** at limit **
   7  Prefactor     6.2820        9.0557        .16015E-03    .17463E-04
   8  Prefactor     1.5867        2.3676        .13124E-03    .67343E-03
   9  Prefactor     .10000E-03    5.9341        .17691E-02** at limit **
  10  norm          5.1303        1.6451        .51646E-04    .40790E-03
  11  Prefactor     .10006E-03    154.15        .59845E-02** at limit **
  12  Prefactor     .10000E-03    6.9509        .24159E-02** at limit **
  13  Prefactor     .10001E-03    47.870        .18142E-02** at limit **
  14  Prefactor     8.6622        4.4072        .96080E-04    .51282E-03
  15  Prefactor     1.2432        3.2484        .19102E-03    .45959E-03
  16  norm          4.2272        2.6470        .91332E-04    .60247E-04
  17  Prefactor     2.1159        1.8650        .90820E-04   -.37554E-06
  18  Prefactor     .10000E-03    2.2349        .16887E-02** at limit **
  19  Prefactor     6.6199        6.4007        .15597E-03   -.20847E-04
  20  norm          .75593        .30074        .24384E-04    .84014E-03
  21  norm          .10000E-03    3.8346        .14115E-02** at limit **
  22  Prefactor     1.4961        16.038        .35272E-03   -.13528E-03
  23  Prefactor     8.0074        7.8546        .14169E-03    .13360E-03
  24  Prefactor     .10065E-03    268.15        .68613E-02** at limit **
  25  Normalizat    1.2928        .22887        .23018E-03    .36218E-03
  26  Prefactor     .60274        .21536        .31635E-03    .19887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88011
  norm       = 21.6122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.282
  Prefactor  = 1.58672
  Prefactor  = 0.0001
  norm       = 5.13034
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 8.6622
  Prefactor  = 1.24323
  norm       = 4.22721
  Prefactor  = 2.11594
  Prefactor  = 0.0001
  Prefactor  = 6.61993
  norm       = 0.755932
  norm       = 0.0001
  Prefactor  = 1.49609
  Prefactor  = 8.00743
  Prefactor  = 0.000100649
  Normalizat = 1.29281
  Prefactor  = 0.602739
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.810     FROM HESSE     STATUS=OK           432 CALLS     3659 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8801        6.1154        .28572E-04   -1.5146    
   2  norm          21.612        14.103        .34446E-05   -1.4778    
   3  Prefactor     .10000E-03    2.7011        .23900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.328        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2820        9.0551        .64060E-05   -1.5207    
   8  Prefactor     1.5867        2.3670        .52496E-05   -1.5456    
   9  Prefactor     .10000E-03    5.9348        .35383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1303        1.6449        .20658E-05   -1.5255    
  11  Prefactor     .10006E-03    159.38        .23938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0002        .48317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    47.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6622        4.4046        .38432E-05   -1.5119    
  15  Prefactor     1.2432        3.2466        .76407E-05   -1.5485    
  16  norm          4.2272        2.6469        .36533E-05   -1.5297    
  17  Prefactor     2.1159        1.8650        .36328E-05   -1.5417    
  18  Prefactor     .10000E-03    2.2386        .33775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6199        6.4000        .62386E-05   -1.5193    
  20  norm          .75593        .30072        .97537E-06   -1.5534    
  21  norm          .10000E-03    3.8359        .28230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4961        15.948        .14109E-04   -1.5463    
  23  Prefactor     8.0074        7.8543        .56675E-05   -1.5142    
  24  Prefactor     .10065E-03    277.64        .27445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2928        .22882        .46035E-04   -.83781    
  26  Prefactor     .60274        .21546        .12654E-04   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46033e-09
Minuit parameter uncertainties:
  1  6.1159
  2  14.1052
  3  4.76306e-06
  4  1.9915e-05
  5  4.6351e-05
  6  0.000430086
  7  9.05706
  8  2.36709
  9  6.79293e-06
  10  1.64495
  11  0.00617127
  12  0.000105852
  13  0.00122846
  14  4.4048
  15  3.24708
  16  2.647
  17  1.865
  18  1.45133e-05
  19  6.40066
  20  0.300716
  21  1.57026e-06
  22  9.77233
  23  7.85529
  24  0.0269703
  25  0.229004
  26  0.215751
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.059e-04  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:  6.027e-01  2.158e-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.293e+00  2.290e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258381/likelihoodResults_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.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) = 5547.81092751
delta logL = -0.0006839858479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5547.81024666
delta logL = -3.13278451358e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5373       1.0000          .0000       10.000    
     3 'Normalizat'    1.2924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60318       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=   5547.810     FROM MIGRAD    STATUS=FAILED        97 CALLS      271 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    51.489        .24100E-02** at limit **
   2  Index         2.6016        8.0739        .50000       -.11002E-04
   3  Normalizat    1.2928        .12692E-01    .23018E-03    .32106E-03
   4  Prefactor     .60274        .12401E-01    .31635E-03    .20793E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5547.810     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      393 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    51.489        .53442E-03** at limit **
   2  Index         2.6016        8.0739        .28107E-03   -.11002E-04
   3  Normalizat    1.2928        .12692E-01    .25920E-05    .32106E-03
   4  Prefactor     .60274        .12401E-01    .32510E-05    .20793E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5547.810     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      426 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    267.02        .48201E-03** at limit **
   2  Index         2.5923        6.6874        .50000       -.12171E-04
   3  Normalizat    1.2928        .29913E-01    .46035E-04    .31561E-03
   4  Prefactor     .60274        .29225E-01    .12654E-04    .20466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100383
  Index      = 2.59233
  Normalizat = 1.29281
  Prefactor  = 0.60274
 **********
 **   18 **HESSE 
 **********

 FCN=   5547.810     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      455 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    1182.8        .96401E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5923        5.9463        .50000       -.50240    
   3  Normalizat    1.2928        .84292E-01    .92070E-05   -.83781    
   4  Prefactor     .60274        .82259E-01    .25308E-05   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.95959e-08
Minuit parameter uncertainties:
  1  0.0434803
  2  1053.31
  3  0.084301
  4  0.0822754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258381': 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) = 5547.81024327
delta logL = 2.5292592909e-07

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.004e-04  4.348e-02  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.592e+00  1.053e+03  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:  6.027e-01  8.228e-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.293e+00  8.430e-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/258381/cmap_HighResolution_333676801_333936001_4FGL_J1200.7+2008_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-04 20:47:45.477872', job_id='258381', GAL2='0.60', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630813665.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='2.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='364' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:47:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 258381: <4FGL_J1200.7+2008_daily_bin364> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin364> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:14 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:16 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:35:16 2021
Terminated at Sat Sep  4 20:47:46 2021
Results reported at Sat Sep  4 20:47:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin364 180.187 20.1354 333676801 333936001 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 :                                   735.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

