/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 4 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin59
RA = 180.055, Dec = 2.0172
tmin = 254620801, tmax = 254880001
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='239588', job_status='RUN', time_executed='2021-09-04 19:35:51.940634', time_epoch_executed='1630809351.94' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239588

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239588/ft1_4FGL_J1200.2+0201_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239588/ft2_4FGL_J1200.2+0201_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239588/ft1_4FGL_J1200.2+0201_daily_bin59.fits outfile=/scratch/kocevski/239588/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin59.fits ra=180.055 dec=2.0172 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.43
user 1.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239588/ft1_filtered_4FGL_J1200.2+0201_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/239588/ft2_4FGL_J1200.2+0201_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/239588/ltcube_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.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/239588/ft2_4FGL_J1200.2+0201_daily_bin59.fits
.....................!
real 11.69
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239588/ft1_filtered_4FGL_J1200.2+0201_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/239588/ft2_4FGL_J1200.2+0201_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/239588/ltcube_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.fits outfile=/scratch/kocevski/239588/expmap_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.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/239588/ltcube_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.fits
.....................!
real 190.37
user 185.25
sys 4.70

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/239588/ft1_filtered_4FGL_J1200.2+0201_daily_bin59.fits scfile=/scratch/kocevski/239588/ft2_4FGL_J1200.2+0201_daily_bin59.fits outfile=/scratch/kocevski/239588/cmap_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.665       1.0000         .10000E-03   10000.    
     5 'norm      '    10.016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0117       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3853       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    26.258       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8614       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.2309       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.665       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1537       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82606       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.

 FCN=   6792.641     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4092 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9701       -.25637E-07** at limit **
   2  norm          .10000E-03    7.0353       -.34932E-06** at limit **
   3  Prefactor     2.6790        2.0768        .26617E-07   -.50008E-04
   4  Prefactor     31.664        27.368       -.28075E-07   -.50339E-04
   5  norm          10.011        9.7946       -.23663E-06   -.36845E-03
   6  Prefactor     .98600        5.8098        .12945E-05   -.36220E-03
   7  Prefactor     4.7946        14.375        .53768E-05   -.81472E-04
   8  Prefactor     104.61        84.090        .16721E-07   -.13141E-04
   9  Prefactor     .10000E-03    2.6429       -.94207E-08** at limit **
  10  Prefactor     41.080        44.739       -.24753E-05   -.25508E-03
  11  Prefactor     .10000E-03    2.7394        .11538E-07** at limit **
  12  Prefactor     .10000E-03    6.8736        .38304E-06** at limit **
  13  Prefactor     15.823        18.880        .56797E-06   -.10817E-03
  14  Prefactor     .10000E-03    19.192       -.57224E-07** at limit **
  15  Prefactor     .10000E-03    18.194        .14482E-05** at limit **
  16  Prefactor     .10000E-03    26.797        .13707E-05** at limit **
  17  Prefactor     6.0115        11.936        .36383E-08   -.19138E-04
  18  Prefactor     .10000E-03    26.238        .28528E-07** at limit **
  19  Prefactor     9.3854        9.1537        .14049E-07   -.33834E-04
  20  norm          .10000E-03    .74842        .38580E-08** at limit **
  21  norm          8.5395        4.5312       -.26971E-07   -.18190E-03
  22  Prefactor     .10000E-03    19.994       -.29704E-05** at limit **
  23  norm          26.259        55.825       -.32205E-07   -.73076E-05
  24  Prefactor     .10000E-03    101.18       -.87663E-06** at limit **
  25  norm          1.8613        .67163        .15957E-07   -.16736E-03
  26  Prefactor     .10000E-03    4.5314        .40776E-07** at limit **
  27  norm          7.2309        2.0575        .94119E-08   -.93494E-05
  28  Prefactor     .10000E-03    2.5171        .19594E-07** at limit **
  29  Prefactor     12.666        26.791        .12687E-06    .87675E-07
  30  Normalizat    1.1537        .20284       -.59871E-06   -.11782E-03
  31  Prefactor     .82604        .15297        .94997E-07   -.14261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.67896
  Prefactor  = 31.6645
  norm       = 10.011
  Prefactor  = 0.985996
  Prefactor  = 4.79465
  Prefactor  = 104.608
  Prefactor  = 0.0001
  Prefactor  = 41.08
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8228
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.01151
  Prefactor  = 0.0001
  Prefactor  = 9.38543
  norm       = 0.0001
  norm       = 8.53947
  Prefactor  = 0.000100003
  norm       = 26.2589
  Prefactor  = 0.0001
  norm       = 1.86133
  Prefactor  = 0.0001
  norm       = 7.23094
  Prefactor  = 0.0001
  Prefactor  = 12.6658
  Normalizat = 1.15374
  Prefactor  = 0.82604
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.641     FROM HESSE     STATUS=OK           622 CALLS     4714 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9824        .11284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.0501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6790        2.0771        .10027E-03   -1.5381    
   4  Prefactor     31.664        27.392        .71205E-04   -1.4582    
   5  norm          10.011        9.2585        .12661E-03   -1.5075    
   6  Prefactor     .98600        8.2634        .26213E-02   -1.5509    
   7  Prefactor     4.7946        14.749        .91861E-03   -1.5270    
   8  Prefactor     104.61        84.303        .39315E-04   -1.3659    
   9  Prefactor     .10000E-03    2.6487        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.080        45.490        .62527E-04   -1.4425    
  11  Prefactor     .10000E-03    2.7523        .13320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.823        18.766        .10069E-03   -1.4912    
  14  Prefactor     .10000E-03    19.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0115        11.921        .16376E-03   -1.5218    
  18  Prefactor     .10000E-03    26.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3854        9.1334        .13082E-03   -1.5095    
  20  norm          .10000E-03    .75176        .69501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5395        4.5629        .10329E-03   -1.5123    
  22  Prefactor     .10000E-03    20.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          26.259        56.381        .78177E-04   -1.4683    
  24  Prefactor     .10000E-03    101.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8613        .67088        .35347E-04   -1.5435    
  26  Prefactor     .10000E-03    4.5691        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.2309        2.0569        .60053E-04   -1.5170    
  28  Prefactor     .10000E-03    2.5214        .12770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.666        26.785        .11256E-03   -1.4996    
  30  Normalizat    1.1537        .23622        .27747E-03   -.88045    
  31  Prefactor     .82604        .17702        .25713E-03   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75361e-10
Minuit parameter uncertainties:
  1  1.71779e-06
  2  3.38281e-05
  3  2.07719
  4  27.4026
  5  9.25987
  6  5.70962
  7  14.7604
  8  84.3994
  9  2.29642e-07
  10  45.5283
  11  3.52013e-07
  12  3.50542e-05
  13  18.7727
  14  9.17505e-06
  15  0.000265288
  16  0.000262579
  17  11.9261
  18  2.66357e-05
  19  9.13478
  20  8.58263e-08
  21  4.56304
  22  0.000471815
  23  56.4955
  24  0.000292926
  25  0.670879
  26  2.1843e-06
  27  2.05688
  28  9.28741e-07
  29  26.8102
  30  0.236436
  31  0.177146
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.520e-07  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:  8.260e-01  1.771e-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.154e+00  2.364e-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: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239588/likelihoodResults_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.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) = 6792.64239443
delta logL = -0.00171810447955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6792.64067623
delta logL = 9.63946149568e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0967       1.0000          .0000       10.000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82604       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6792.641     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    560.82        .13407E-02** at limit **
   2  Index         2.0841        5.2604        .50000        .36227E-04
   3  Normalizat    1.1537        .11390        .27747E-03   -.94238E-06
   4  Prefactor     .82604        .91366E-01    .25713E-03   -.35371E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6792.641     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      422 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    560.82        .33275E-03** at limit **
   2  Index         2.0841        5.2604        .28035E-05    .36227E-04
   3  Normalizat    1.1537        .11390        .20830E-06   -.94238E-06
   4  Prefactor     .82604        .91366E-01    .59835E-07   -.35371E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6792.641     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      456 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1030        .26815E-03** at limit **
   2  Index         2.0838        6.0275        .50000        .36204E-04
   3  Normalizat    1.1537        .21624        .11099E-04    .47119E-05
   4  Prefactor     .82604        .17355        .10285E-04    .17686E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.08378
  Normalizat = 1.15374
  Prefactor  = 0.82604
 **********
 **   18 **HESSE 
 **********

 FCN=   6792.641     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7959        .53630E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0838        6.0383        .50000       -.62272    
   3  Normalizat    1.1537        .21640        .22197E-05   -.88045    
   4  Prefactor     .82604        .17366        .20570E-05   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48072e-09
Minuit parameter uncertainties:
  1  0.00020329
  2  4.0693
  3  0.216565
  4  0.173775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239588': 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) = 6792.64067609
delta logL = 2.31746525969e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.033e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.084e+00  4.069e+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:  8.260e-01  1.738e-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.154e+00  2.166e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/239588/cmap_HighResolution_254620801_254880001_4FGL_J1200.2+0201_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-04 19:52:07.170137', job_id='239588', GAL2='0.83', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630810327.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='59' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:52:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 239588: <4FGL_J1200.2+0201_daily_bin59> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin59> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:37 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:39 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:35:39 2021
Terminated at Sat Sep  4 19:52:07 2021
Results reported at Sat Sep  4 19:52:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin59 180.055 2.0172 254620801 254880001 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 :                                   972.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

