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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin670
RA = 180.055, Dec = 2.0172
tmin = 412992001, tmax = 413251201
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='242519', job_status='RUN', time_executed='2021-09-04 19:48:34.067307', time_epoch_executed='1630810114.07' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242519/ft1_4FGL_J1200.2+0201_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242519/ft1_4FGL_J1200.2+0201_daily_bin670.fits outfile=/scratch/kocevski/242519/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin670.fits ra=180.055 dec=2.0172 rad=12.0 tmin=412992001.0 tmax=413251201.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.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.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/242519/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin670.fits evtable="EVENTS" outfile="/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/242519/ltcube_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.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/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/242519/ltcube_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits outfile=/scratch/kocevski/242519/expmap_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.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/242519/ltcube_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits
.....................!
real 190.62
user 185.18
sys 5.02

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits outfile=/scratch/kocevski/242519/cmap_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.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.055 yref=2.0172 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits outfile=/scratch/kocevski/242519/cmap_HighResolution_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.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.055 yref=2.0172 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/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242519/Model_4FGL_J1200.2+0201_daily_bin670.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/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits..........................!
real 18.45
user 17.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits', '/scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits', expMap='/scratch/kocevski/242519/expmap_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits', expCube='/scratch/kocevski/242519/ltcube_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242519/Model_4FGL_J1200.2+0201_daily_bin670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/242519/ft1_filtered_4FGL_J1200.2+0201_daily_bin670.fits
Spacecraft file(s): /scratch/kocevski/242519/ft2_4FGL_J1200.2+0201_daily_bin670.fits
Exposure map: /scratch/kocevski/242519/expmap_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits
Exposure cube: /scratch/kocevski/242519/ltcube_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242519/Model_4FGL_J1200.2+0201_daily_bin670.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 668.218333765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 665.511714153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7223       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8006       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69037E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8039       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98523E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87338E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93038E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15773E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .68686E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .64259       1.0000         .10000E-03   10000.    
    25 'norm      '    1.3035       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .22466E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    16.352       1.0000         .10000E-03   10000.    
    28 'Prefactor '    119.47       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11503       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   665.5031     FROM MIGRAD    STATUS=CONVERGED    229 CALLS      515 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7223        1.0500         .0000         .0000    
   2  norm          4.2595        1.0071         .0000         .0000    
   3  Prefactor     .10000E-03    9.3111        .53802E-06** at limit **
   4  Prefactor     4.8006        1.0055         .0000         .0000    
   5  norm          2.7385        1.0177         .0000         .0000    
   6  Prefactor     1.8378        1.0428         .0000         .0000    
   7  Prefactor     .10089E-03    93.958       -.52954E-06** at limit **
   8  Prefactor     .10371E-03    99.654        .16342E-04** at limit **
   9  Prefactor     8.5134        24.355        .69595E-05    .10079E-02
  10  Prefactor     5.2270        1.0046         .0000         .0000    
  11  Prefactor     10.085        29.219        .10373E-05    .14825E-03
  12  Prefactor     46.359        39.485        .64779E-05    .69977E-03
  13  Prefactor     3.3550        1.0116         .0000         .0000    
  14  Prefactor     .10671E-03    6436.5       -.11576E-04** at limit **
  15  Prefactor     9.3280        1.0014         .0000         .0000    
  16  Prefactor     .10020E-03    65.607       -.27813E-05** at limit **
  17  Prefactor     .10007E-03    5.7714       -.50979E-05** at limit **
  18  Prefactor     .10000E-03    27.206        .11468E-05** at limit **
  19  Prefactor     .10000E-03    37.268        .45805E-06** at limit **
  20  norm          .10000E-03    8.9541       -.31362E-06** at limit **
  21  norm          .10000E-03    5.5979       -.35732E-06** at limit **
  22  Prefactor     .10949E-03    27.452       -.80718E-05** at limit **
  23  norm          .10492E-03    47.743        .34717E-05** at limit **
  24  Prefactor     .10000E-03    133.60        .36636E-05** at limit **
  25  norm          1.3028        2.3509        .21730E-06   -.58856E-05
  26  Prefactor     .10000E-03    45.671        .81771E-06** at limit **
  27  norm          16.370        7.8101       -.48823E-07    .29736E-04
  28  Prefactor     121.18        135.09        .20802E-05   -.96227E-04
  29  Prefactor     .10000E-03    153.33        .74063E-05** at limit **
  30  Normalizat    .10000E-01    1.7801        .10355E-04** at limit **
  31  Prefactor     .96391        .24304       -.40434E-06   -.73446E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72231
  norm       = 4.25953
  Prefactor  = 0.0001
  Prefactor  = 4.80064
  norm       = 2.73851
  Prefactor  = 1.83777
  Prefactor  = 0.000100892
  Prefactor  = 0.000103712
  Prefactor  = 8.51337
  Prefactor  = 5.22701
  Prefactor  = 10.0851
  Prefactor  = 46.3595
  Prefactor  = 3.35499
  Prefactor  = 0.000106713
  Prefactor  = 9.32801
  Prefactor  = 0.000100199
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000109488
  norm       = 0.000104923
  Prefactor  = 0.000100001
  norm       = 1.30279
  Prefactor  = 0.0001
  norm       = 16.3704
  Prefactor  = 121.179
  Prefactor  = 0.000100004
  Normalizat = 0.01
  Prefactor  = 0.963906
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   665.5031     FROM HESSE     STATUS=FAILED         9 CALLS      524 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     573.72        571.84         .0000       -1.5445    
   2  norm          4.2595        1.0071         .0000       -1.5295    
   3  Prefactor     .10000E-03    .20571        .53802E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8006        1.0055         .0000       -1.5270    
   5  norm          2.7385        1.0177         .0000       -1.5377    
   6  Prefactor     1.8378        1.0428         .0000       -1.5437    
   7  Prefactor     .10089E-03    .21914       -.52954E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10371E-03    .23210        .16342E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5134        1.1017        .69595E-05   -1.5124    
  10  Prefactor     5.2270        1.0046         .0000       -1.5251    
  11  Prefactor     10.085        1.0155        .10373E-05   -1.5073    
  12  Prefactor     46.359        1.0067        .64779E-05   -1.4345    
  13  Prefactor     3.3550        1.0116         .0000       -1.5342    
  14  Prefactor     .10671E-03    .25065E-01   -.11576E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3280        1.0014         .0000       -1.5097    
  16  Prefactor     .10020E-03    .23128       -.27813E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    .20576       -.50979E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .27167        .11468E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20720        .45805E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571       -.31362E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.35732E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10949E-03    .20571       -.80718E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10492E-03    .21926        .34717E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .35044        .36636E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3028        1.1035        .21730E-06   -1.5480    
  26  Prefactor     .10000E-03    .20861        .81771E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.370        1.0010       -.48823E-07   -1.4899    
  28  Prefactor     121.18        1.0070        .20802E-05   -1.3502    
  29  Prefactor     .10000E-03    .22957        .74063E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .25727        .10355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .96391        1.3061       -.40434E-06   -.93942    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.14666e-10
Minuit parameter uncertainties:
  1  1.04997
  2  1.00706
  3  3.03715e-07
  4  1.00553
  5  1.01772
  6  1.04286
  7  0.000884048
  8  0.00185631
  9  1.10172
  10  1.00465
  11  1.01555
  12  1.00671
  13  1.01156
  14  0.000820367
  15  1.00144
  16  0.000429467
  17  0.000231685
  18  6.02229e-07
  19  1.13021e-06
  20  2.29358e-08
  21  1.49378e-07
  22  0.00279413
  23  0.00207784
  24  4.4434e-05
  25  1.10356
  26  3.30199e-06
  27  1.00102
  28  1.00704
  29  5.77062e-05
  30  1.079e-07
  31  1.35295
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 665.503071229

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.009e+01  1.016e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.639e-01  1.353e+00  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.000e-02  1.079e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 4.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242519/likelihoodResults_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 665.427233924
delta logL = 0.075837304901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 665.425215174
delta logL = 0.0778560545307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6559       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8823       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   665.4252     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      311 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6546        24.597        .11601E-03    .29166E-04
   2  Index         2.8829        2.2572        .50417E-02    .55849E-05
   3  Normalizat    .10000E-01    1.4695        .10804E-01** at limit **
   4  Prefactor     .95597        .21469        .18137E-03   -.30075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.65457
  Index      = 2.88285
  Normalizat = 0.01
  Prefactor  = 0.955968
 **********
 **   18 **HESSE 
 **********

 FCN=   665.4252     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6546        18.403        .46405E-05   -1.5276    
   2  Index         2.8829        1.9656        .20167E-03   -.43723    
   3  Normalizat    .10000E-01    1.4721        .21607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95597        .21418        .36275E-04   -.94212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92276e-10
Minuit parameter uncertainties:
  1  18.4257
  2  2.03324
  3  3.99799e-06
  4  0.214371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242519': 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) = 665.42521494
delta logL = 0.0778562886662

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.655e+00  1.843e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.883e+00  2.033e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.560e-01  2.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.000e-02  3.998e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 180.055 2.017

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/242519/cmap_HighResolution_412992001_413251201_4FGL_J1200.2+0201_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-02', job_status='DONE', photon_flux_upper_limit='4.59e-07', time_completed='2021-09-04 19:54:08.264609', job_id='242519', GAL2='0.96', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630810448.26', return_code2='0', ts='0.16', comment='SUCCESS', return_code='101', GAL='0.96', dlogl='7.79e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='670' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 242519: <4FGL_J1200.2+0201_daily_bin670> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin670> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:30 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19: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 19:45:31 2021
Terminated at Sat Sep  4 19:54:18 2021
Results reported at Sat Sep  4 19:54:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin670 180.055 2.0172 412992001 413251201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   333.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            528 sec.

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

