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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin728
RA = 180.055, Dec = 2.0172
tmin = 428025601, tmax = 428284801
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='242606', job_status='RUN', time_executed='2021-09-04 19:49:18.276748', time_epoch_executed='1630810158.28' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242606/ft1_4FGL_J1200.2+0201_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242606/ft1_4FGL_J1200.2+0201_daily_bin728.fits outfile=/scratch/kocevski/242606/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin728.fits ra=180.055 dec=2.0172 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.56
user 5.27
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.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/242606/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/242606/ltcube_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.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/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits
.....................!
real 11.88
user 11.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/242606/ltcube_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits outfile=/scratch/kocevski/242606/expmap_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.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/242606/ltcube_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits
.....................!
real 189.58
user 185.18
sys 4.05

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/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits outfile=/scratch/kocevski/242606/cmap_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits outfile=/scratch/kocevski/242606/cmap_HighResolution_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242606/Model_4FGL_J1200.2+0201_daily_bin728.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/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits.....................!
real 45.42
user 43.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits', '/scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits', expMap='/scratch/kocevski/242606/expmap_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits', expCube='/scratch/kocevski/242606/ltcube_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242606/Model_4FGL_J1200.2+0201_daily_bin728.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/242606/ft1_filtered_4FGL_J1200.2+0201_daily_bin728.fits
Spacecraft file(s): /scratch/kocevski/242606/ft2_4FGL_J1200.2+0201_daily_bin728.fits
Exposure map: /scratch/kocevski/242606/expmap_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits
Exposure cube: /scratch/kocevski/242606/ltcube_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242606/Model_4FGL_J1200.2+0201_daily_bin728.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) = 4406.18491198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31199E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12779E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.573       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6864       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0368       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.381       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2864       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96742       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=   4406.147     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     3996 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5380       -.50704E-06** at limit **
   2  norm          .10050E-03    5.8785       -.14392E-04** at limit **
   3  Prefactor     1.9380        2.3335       -.11452E-06   -.80238E-07
   4  Prefactor     .10003E-03    6.9299        .43707E-06** at limit **
   5  norm          .10000E-03    2.5057       -.40048E-06** at limit **
   6  Prefactor     .10000E-03    1.4760        .42972E-06** at limit **
   7  Prefactor     23.468        1.0030       -.14839E-06    .55006E-04
   8  Prefactor     .27800E-01    5.8349       -.46928E-04    .18728E-02
   9  Prefactor     4.2303        1.0091       -.79187E-07    .29145E-04
  10  Prefactor     28.468        2.3190       -.37999E-05    .31016E-02
  11  Prefactor     .10000E-03    2.7285       -.44162E-06** at limit **
  12  Prefactor     11.080        1.0150        .20526E-06   -.15635E-04
  13  Prefactor     .10039E-03    5.7211       -.10295E-04** at limit **
  14  Prefactor     .10254E-03    15.160        .30272E-04** at limit **
  15  Prefactor     .10089E-03    8.6481        .41886E-04** at limit **
  16  Prefactor     .10014E-03    10.243       -.38389E-04** at limit **
  17  Prefactor     20.581        1.2179        .94980E-06    .79444E-04
  18  Prefactor     .10193E-03    22.582        .38820E-04** at limit **
  19  Prefactor     .10002E-03    6.5295        .19978E-04** at limit **
  20  norm          2.6856        2.9581       -.36786E-07    .13797E-04
  21  norm          7.0379        4.9907        .44446E-05    .65257E-03
  22  Prefactor     .10018E-03    9.8394       -.20496E-04** at limit **
  23  norm          .10021E-03    10.832       -.21960E-04** at limit **
  24  Prefactor     .10102E-03    89.935       -.13556E-03** at limit **
  25  norm          1.0723        .69951       -.36622E-06    .12099E-03
  26  Prefactor     .10000E-03    7.4040        .31884E-06** at limit **
  27  norm          .10000E-03    1.6339        .20411E-06** at limit **
  28  Prefactor     .10070E-03    22.245        .50001E-04** at limit **
  29  Prefactor     24.373        1.9035       -.31821E-05    .22539E-02
  30  Normalizat    1.2860        .29448       -.13975E-05    .27731E-04
  31  Prefactor     .96774        .23111        .26919E-05    .23522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100496
  Prefactor  = 1.93804
  Prefactor  = 0.000100033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4681
  Prefactor  = 0.0278001
  Prefactor  = 4.23028
  Prefactor  = 28.4679
  Prefactor  = 0.0001
  Prefactor  = 11.0802
  Prefactor  = 0.000100393
  Prefactor  = 0.000102544
  Prefactor  = 0.000100889
  Prefactor  = 0.000100144
  Prefactor  = 20.581
  Prefactor  = 0.000101934
  Prefactor  = 0.000100019
  norm       = 2.68557
  norm       = 7.03789
  Prefactor  = 0.000100176
  norm       = 0.000100205
  Prefactor  = 0.000101017
  norm       = 1.07235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100704
  Prefactor  = 24.373
  Normalizat = 1.28603
  Prefactor  = 0.967745
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.147     FROM HESSE     STATUS=OK           684 CALLS     4680 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10050E-03    22.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9380        2.3484        .74560E-02   -1.5430    
   4  Prefactor     .10003E-03    16.461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.468        21.721        .20671E-02   -1.4739    
   8  Prefactor     .27800E-01    6823.5        .91779E-02   -1.5675    
   9  Prefactor     4.2303        12.480        .48985E-02   -1.5297    
  10  Prefactor     28.468        49.000        .18769E-02   -1.4640    
  11  Prefactor     .10000E-03    2.7266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.080        16.521        .30085E-02   -1.5042    
  13  Prefactor     .10039E-03    22.017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10254E-03    37.683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10089E-03    18.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10014E-03    27.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.581        21.889        .22076E-02   -1.4800    
  18  Prefactor     .10193E-03    59.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    20.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6856        2.9848        .62148E-02   -1.5380    
  21  norm          7.0379        4.9999        .37807E-02   -1.5177    
  22  Prefactor     .10018E-03    16.167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10021E-03    30.738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10102E-03    107.43        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0723        .71467        .93618E-02   -1.5501    
  26  Prefactor     .10000E-03    7.3850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .93981        .25463E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10070E-03    54.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.373        50.815        .20281E-02   -1.4720    
  30  Normalizat    1.2860        .25401        .62341E-01   -.83984    
  31  Prefactor     .96774        .19872        .45859E-01   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32615e-06
Minuit parameter uncertainties:
  1  2.80764e-06
  2  0.00668406
  3  2.34852
  4  0.00147906
  5  1.14747e-06
  6  1.71691e-06
  7  21.7281
  8  21.6382
  9  12.488
  10  49.0694
  11  1.20663e-06
  12  16.5282
  13  0.00588182
  14  0.0195958
  15  0.00818742
  16  0.0039952
  17  21.8974
  18  0.0215015
  19  0.0012522
  20  2.98496
  21  5.00015
  22  0.00337233
  23  0.00502751
  24  0.0209455
  25  0.714678
  26  3.88092e-06
  27  3.77865e-07
  28  0.0123578
  29  50.9052
  30  0.254257
  31  0.198875
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.207e-06  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.677e-01  1.989e-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.286e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242606/likelihoodResults_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.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) = 4406.14879839
delta logL = -0.00163647358931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4406.14716169
delta logL = 2.22194103117e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0886       1.0000          .0000       10.000    
     3 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96776       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=   4406.147     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10291E-03    3.4797        .10912E-01** at limit **
   2  Index         1.9937        5.1966        .50000        .53373E-04
   3  Normalizat    1.2860        .68171E-02    .27574E-03    .61845E-04
   4  Prefactor     .96774        .54580E-02    .24889E-03    .53351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102914
  Index      = 1.99366
  Normalizat = 1.28603
  Prefactor  = 0.967744
 **********
 **   18 **HESSE 
 **********

 FCN=   4406.147     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10291E-03    58.244        .11244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9937        8.5314        .50000       -.64509    
   3  Normalizat    1.2860        .28445E-01    .11030E-04   -.83984    
   4  Prefactor     .96774        .22774E-01    .99558E-05   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.59923e-08
Minuit parameter uncertainties:
  1  0.0260809
  2  340.092
  3  0.0284452
  4  0.0227741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242606': 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) = 4406.14716068
delta logL = 1.23213249026e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.029e-04  2.608e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.994e+00  3.401e+02  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.677e-01  2.277e-02  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.286e+00  2.845e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/242606/cmap_HighResolution_428025601_428284801_4FGL_J1200.2+0201_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-04 20:01:40.773151', job_id='242606', GAL2='0.97', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630810900.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='728' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 242606: <4FGL_J1200.2+0201_daily_bin728> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin728> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:36 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:38 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:38 2021
Terminated at Sat Sep  4 20:01:41 2021
Results reported at Sat Sep  4 20:01:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin728 180.055 2.0172 428025601 428284801 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

