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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1449
RA = 180.187, Dec = 20.1354
tmin = 614908801, tmax = 615168001
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='263930', job_status='RUN', time_executed='2021-09-04 20:50:56.101970', time_epoch_executed='1630813856.1' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263930/ft1_4FGL_J1200.7+2008_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263930/ft1_4FGL_J1200.7+2008_daily_bin1449.fits outfile=/scratch/kocevski/263930/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1449.fits ra=180.187 dec=20.1354 rad=12.0 tmin=614908801.0 tmax=615168001.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 4.01
user 3.34
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/263930/ltcube_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.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/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits
.....................!
real 12.33
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/263930/ltcube_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.fits outfile=/scratch/kocevski/263930/expmap_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.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/263930/ltcube_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.fits
.....................!
real 193.57
user 188.01
sys 5.14

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/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits scfile=/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits outfile=/scratch/kocevski/263930/cmap_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.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/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits scfile=/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits outfile=/scratch/kocevski/263930/cmap_HighResolution_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/263930/ft2_4FGL_J1200.7+2008_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263930/Model_4FGL_J1200.7+2008_daily_bin1449.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/263930/ft1_filtered_4FGL_J1200.7+2008_daily_bin1449.fits.....................!
real 58.68
user 57.34
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2356       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.653       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34159E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8544       1.0000         .10000E-03   10000.    
    10 'norm      '    .89902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29744E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13168E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4561       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0965       1.0000         .10000E-03   10000.    
    20 'norm      '    .16008       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2237       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.276       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8108       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7461       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .46291       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=   6010.527     FROM MIGRAD    STATUS=CONVERGED   1123 CALLS     3629 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2343        4.3548        .29723E-03   -.48844E-04
   2  norm          .10000E-03    11.158        .18142E-02** at limit **
   3  Prefactor     14.329        11.491        .10581E-03   -.23316E-04
   4  Prefactor     16.635        29.068        .98146E-04   -.25252E-04
   5  Prefactor     .41511        184.59        .54737E-02    .13615E-03
   6  Prefactor     .10013E-03    49.912        .46976E-02** at limit **
   7  Prefactor     5.6883        8.2773        .16838E-03   -.38958E-04
   8  Prefactor     .52409        1.6431        .16778E-03   -.36373E-03
   9  Prefactor     3.8412        14.256        .20555E-03   -.55585E-04
  10  norm          .89905        .79449        .65227E-03   -.88384E-04
  11  Prefactor     .10000E-03    44.515        .18142E-02** at limit **
  12  Prefactor     .10000E-03    10.060        .21472E-02** at limit **
  13  Prefactor     .10000E-03    89.825        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.1087        .22912E-02** at limit **
  15  Prefactor     5.4520        3.8714        .12108E-03   -.44673E-03
  16  norm          6.4139        3.8242        .10161E-03   -.26404E-04
  17  Prefactor     2.5625        2.6614        .11267E-03   -.22703E-04
  18  Prefactor     2.0080        2.1686        .11262E-03   -.23521E-04
  19  Prefactor     1.0965        5.4511        .34067E-03   -.55230E-04
  20  norm          .16001        .19284        .38632E-03    .54181E-03
  21  norm          7.2233        5.4831        .14673E-03   -.20222E-04
  22  Prefactor     14.275        9.9273        .10601E-03   -.15979E-04
  23  Prefactor     7.8097        10.381        .14348E-03   -.45165E-05
  24  Prefactor     .10000E-03    21.371        .18142E-02** at limit **
  25  Normalizat    1.7462        .22988        .22042E-03   -.28814E-03
  26  Prefactor     .46293        .20996        .37981E-03   -.11419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23435
  norm       = 0.0001
  Prefactor  = 14.3291
  Prefactor  = 16.6348
  Prefactor  = 0.415112
  Prefactor  = 0.000100129
  Prefactor  = 5.68831
  Prefactor  = 0.524086
  Prefactor  = 3.84116
  norm       = 0.899052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.45202
  norm       = 6.4139
  Prefactor  = 2.56252
  Prefactor  = 2.00803
  Prefactor  = 1.09648
  norm       = 0.160011
  norm       = 7.2233
  Prefactor  = 14.2751
  Prefactor  = 7.80974
  Prefactor  = 0.0001
  Normalizat = 1.74625
  Prefactor  = 0.462934
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.527     FROM HESSE     STATUS=OK           436 CALLS     4065 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2343        4.3543        .11889E-04   -1.5486    
   2  norm          .10000E-03    11.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.329        11.489        .42323E-05   -1.4951    
   4  Prefactor     16.635        29.066        .39258E-05   -1.4892    
   5  Prefactor     .41511        188.17        .21895E-03   -1.5579    
   6  Prefactor     .10013E-03    50.593        .93953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6883        8.2752        .67351E-05   -1.5231    
   8  Prefactor     .52409        1.6424        .67112E-05   -1.5563    
   9  Prefactor     3.8412        14.245        .82220E-05   -1.5316    
  10  norm          .89905        .79437        .26091E-04   -1.5518    
  11  Prefactor     .10000E-03    44.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.144        .42945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    89.827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1282        .45823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4520        3.8661        .48434E-05   -1.5241    
  16  norm          6.4139        3.8245        .40645E-05   -1.5201    
  17  Prefactor     2.5625        2.6617        .45068E-05   -1.5388    
  18  Prefactor     2.0080        2.1682        .45047E-05   -1.5425    
  19  Prefactor     1.0965        5.4447        .13627E-04   -1.5499    
  20  norm          .16001        .19265        .15453E-04   -1.5628    
  21  norm          7.2233        5.4799        .58692E-05   -1.5170    
  22  Prefactor     14.275        9.9268        .42403E-05   -1.4952    
  23  Prefactor     7.8097        10.381        .57391E-05   -1.5149    
  24  Prefactor     .10000E-03    21.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7462        .22863        .44085E-04   -.71075    
  26  Prefactor     .46293        .20997        .15192E-04   -1.1371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79148e-09
Minuit parameter uncertainties:
  1  4.35541
  2  5.04038e-06
  3  11.4903
  4  29.0903
  5  17.7303
  6  0.00511783
  7  8.2769
  8  1.64252
  9  14.2574
  10  0.79438
  11  0.00011315
  12  9.69043e-05
  13  0.000310081
  14  4.49121e-05
  15  3.86627
  16  3.82469
  17  2.66183
  18  2.16823
  19  4.88722
  20  0.192654
  21  5.48026
  22  9.92799
  23  10.383
  24  4.75253e-06
  25  0.22877
  26  0.210319
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.690e-05  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:  4.629e-01  2.103e-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.746e+00  2.288e-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: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263930/likelihoodResults_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.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) = 6010.52779986
delta logL = -0.000472993428048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6010.52732733
delta logL = -4.60996488982e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13794E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6105       1.0000          .0000       10.000    
     3 'Normalizat'    1.7466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46265       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=   6010.446     FROM MIGRAD    STATUS=FAILED       144 CALLS      324 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14556        47.668        .70810E-04    .24789E-03
   2  Index         4.3372        7.4502        .11318E-01    .25064E-03
   3  Normalizat    1.7218        .18354        .22165E-03    .13633E-03
   4  Prefactor     .47596        .17270        .37490E-03    .10596E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6010.446     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      412 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14556        47.668        .17754E-03    .24789E-03
   2  Index         4.3372        7.4502        .47606E-02    .25064E-03
   3  Normalizat    1.7218        .18354        .14236E-03    .13633E-03
   4  Prefactor     .47596        .17270        .13669E-03    .10596E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6010.446     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      441 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14556        6.2284        .28324E-05    .26732E-03
   2  Index         4.3372        7.1684        .22636E-02   -.76391E-05
   3  Normalizat    1.7218        .22657        .44330E-04    .11715E-03
   4  Prefactor     .47596        .21057        .14996E-04    .93097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.145557
  Index      = 4.33718
  Normalizat = 1.72176
  Prefactor  = 0.475963
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.446     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14556        2.7058        .56648E-06   -1.5784    
   2  Index         4.3372        4.0465        .90543E-04   -.13295    
   3  Normalizat    1.7218        .22643        .88660E-05   -.71724    
   4  Prefactor     .47596        .21060        .29992E-05   -1.1309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31475e-11
Minuit parameter uncertainties:
  1  1.25478
  2  4.73452
  3  0.226566
  4  0.210941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263930': 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) = 6010.44567416
delta logL = 0.0816527102406

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.456e-01  1.255e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  4.337e+00  4.735e+00  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:  4.760e-01  2.109e-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.722e+00  2.266e-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/263930/cmap_HighResolution_614908801_615168001_4FGL_J1200.7+2008_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-04 21:04:38.283519', job_id='263930', GAL2='0.48', fit_tolerance='1e-08', EG2='1.72', EG='1.75', time_epoch_completed='1630814678.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='8.17e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1449' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 263930: <4FGL_J1200.7+2008_daily_bin1449> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1449> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:37 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:40 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:40 2021
Terminated at Sat Sep  4 21:04:39 2021
Results reported at Sat Sep  4 21:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1449 180.187 20.1354 614908801 615168001 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 :                                   810.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            842 sec.

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

