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


Performing analysis on: 4FGL_J1033.9+6050_monthly_bin116
RA = 158.485, Dec = 60.8493
tmin = 537667201, tmax = 540259201
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='146198', job_status='RUN', time_executed='2021-10-21 20:04:09.735364', time_epoch_executed='1634871849.74' WHERE source_name='4FGL J1033.9+6050' and cadence='monthly' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146198

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146198/ft1_4FGL_J1033.9+6050_monthly_bin116.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146198/ft1_4FGL_J1033.9+6050_monthly_bin116.fits outfile=/scratch/kocevski/146198/ft1_filteredMKT_4FGL_J1033.9+6050_monthly_bin116.fits ra=158.485 dec=60.8493 rad=12.0 tmin=537667201.0 tmax=540259201.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 42.44
user 41.32
sys 0.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.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/146198/ft1_filteredMKT_4FGL_J1033.9+6050_monthly_bin116.fits evtable="EVENTS" outfile="/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.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.85
user 0.67
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/146198/ltcube_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.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/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits
.....................!
real 124.40
user 123.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/146198/ltcube_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits outfile=/scratch/kocevski/146198/expmap_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.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/146198/ltcube_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits
.....................!
real 192.08
user 186.65
sys 4.66

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

Setting source of interest to:
4FGL J1033.9+6050 @ 158.485 60.8493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits outfile=/scratch/kocevski/146198/cmap_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.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=158.485 yref=60.8493 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.79
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits outfile=/scratch/kocevski/146198/cmap_HighResolution_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.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=158.485 yref=60.8493 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.78
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146198/Model_4FGL_J1033.9+6050_monthly_bin116.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/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits.....................!
real 500.55
user 498.30
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits', '/scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits', expMap='/scratch/kocevski/146198/expmap_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits', expCube='/scratch/kocevski/146198/ltcube_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146198/Model_4FGL_J1033.9+6050_monthly_bin116.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.9+6050'

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  4.658e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146198/ft1_filtered_4FGL_J1033.9+6050_monthly_bin116.fits
Spacecraft file(s): /scratch/kocevski/146198/ft2_4FGL_J1033.9+6050_monthly_bin116.fits
Exposure map: /scratch/kocevski/146198/expmap_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits
Exposure cube: /scratch/kocevski/146198/ltcube_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146198/Model_4FGL_J1033.9+6050_monthly_bin116.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) = 57381.6272132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84323       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6248       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6832       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8773       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9793       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0570       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0880       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1733       1.0000         .10000E-03   10000.    
    18 'norm      '    .74681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38228       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13584E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .15532       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2625       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5469       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .84878       1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.696       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.1760       1.0000         .10000E-03   10000.    
    33 'norm      '    2.7898       1.0000         .10000E-03   10000.    
    34 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .21325       1.0000         .10000E-03   10000.    
    37 'Prefactor '    1.8990       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .95143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   57381.62     FROM MIGRAD    STATUS=CONVERGED   1186 CALLS     6245 TOTAL
                     EDM=   .54E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84736        2.2832         .0000        .25108    
   2  norm          5.7485        .45759         .0000       -.99858E-04
   3  Prefactor     2.4340        2.3972         .0000        .49867E-01
   4  Prefactor     1.4990        .92996         .0000        .29240E-02
   5  Prefactor     2.6261        2.1104         .0000       -.33914E-03
   6  Prefactor     .31455        .94396         .0000        .44946E-02
   7  Prefactor     5.6833        2.2689         .0000        .38034E-01
   8  norm          2.6661        1.8383         .0000        .24849E-02
   9  Prefactor     .10000E-03    7.1891         .0000    ** at limit **
  10  norm          1.8773        .21490         .0000       -.13181E-02
  11  Prefactor     .10000E-03    .61031         .0000    ** at limit **
  12  norm          1.9793        .26285         .0000        .19745E-02
  13  norm          8.2728        1.3395         .0000       -.87074E-03
  14  Prefactor     3.0609        6.5100         .0000        .97347E-02
  15  norm          .10000E-03    1.5312         .0000    ** at limit **
  16  Prefactor     1.0913        7.7990         .0000        .68474E-01
  17  norm          3.1732        .95658         .0000        .10789E-02
  18  norm          .74683        .48204         .0000        .59419E-02
  19  Prefactor     63.446        38.301         .0000       -.77578E-02
  20  Prefactor     .10000E-03    .38584         .0000    ** at limit **
  21  norm          .38229        .16220         .0000        .90378E-02
  22  Prefactor     .10000E-03    21.917         .0000    ** at limit **
  23  norm          .15535        .38782         .0000        .12957E-01
  24  Prefactor     4.2660        15.324         .0000       -.71291E-03
  25  norm          3.5469        .75468         .0000       -.13676E-03
  26  Prefactor     .10000E-03    .36140         .0000    ** at limit **
  27  Prefactor     .10000E-03    12.916         .0000    ** at limit **
  28  Prefactor     .10000E-03    4.0011         .0000    ** at limit **
  29  Prefactor     .84930        2.2157         .0000        .28915    
  30  Prefactor     16.692        8.7577         .0000       -.53657E-03
  31  Prefactor     .10000E-03    1.4306         .0000    ** at limit **
  32  Prefactor     1.1761        .59786         .0000       -.24307E-02
  33  norm          2.7898        2.0785         .0000       -.54977E-02
  34  norm          .10000E-03    .55131         .0000    ** at limit **
  35  Prefactor     .10000E-03    .90119         .0000    ** at limit **
  36  Prefactor     .21829        1.3997         .0000        .13653E-02
  37  Prefactor     1.8999        6.4218         .0000        .66090E-03
  38  Normalizat    1.0566        .58569E-01     .0000       -.41184E-03
  39  Prefactor     .95142        .59782E-01     .0000       -.11031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84736
  norm       = 5.74846
  Prefactor  = 2.43405
  Prefactor  = 1.49899
  Prefactor  = 2.62605
  Prefactor  = 0.314546
  Prefactor  = 5.68332
  norm       = 2.66607
  Prefactor  = 0.0001
  norm       = 1.87731
  Prefactor  = 0.0001
  norm       = 1.97935
  norm       = 8.27277
  Prefactor  = 3.06091
  norm       = 0.0001
  Prefactor  = 1.09126
  norm       = 3.17319
  norm       = 0.746826
  Prefactor  = 63.4459
  Prefactor  = 0.0001
  norm       = 0.382291
  Prefactor  = 0.000100001
  norm       = 0.155353
  Prefactor  = 4.266
  norm       = 3.54688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.849302
  Prefactor  = 16.692
  Prefactor  = 0.0001
  Prefactor  = 1.17606
  norm       = 2.78981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.21829
  Prefactor  = 1.8999
  Normalizat = 1.05655
  Prefactor  = 0.951419
 **********
 **   18 **HESSE 
 **********

 FCN=   57381.62     FROM HESSE     STATUS=OK           974 CALLS     7219 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84736        2.3078        .25200E-02   -1.5524    
   2  norm          5.7485        .45244        .42151E-04   -1.5228    
   3  Prefactor     2.4340        2.3906        .13114E-02   -1.5396    
   4  Prefactor     1.4990        .92144        .17396E-03   -1.5463    
   5  Prefactor     2.6261        2.1576        .25172E-03   -1.5384    
   6  Prefactor     .31455        3.3163        .36569E-02   -1.5596    
   7  Prefactor     5.6833        2.2593        .84248E-03   -1.5231    
   8  norm          2.6661        1.8362        .24960E-03   -1.5381    
   9  Prefactor     .10000E-03    7.2569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8773        .21489        .35991E-04   -1.5434    
  11  Prefactor     .10000E-03    .62699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9793        .26192        .42518E-04   -1.5427    
  13  norm          8.2728        1.3396        .10859E-03   -1.5133    
  14  Prefactor     3.0609        6.4926        .11601E-02   -1.5358    
  15  norm          .10000E-03    1.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0913        7.1849        .22971E-02   -1.5499    
  17  norm          3.1732        .90568        .92780E-04   -1.5352    
  18  norm          .74683        .39501        .12857E-02   -1.5535    
  19  Prefactor     63.446        38.257        .50381E-04   -1.4113    
  20  Prefactor     .10000E-03    .39196        .14471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38229        .14548        .56633E-03   -1.5584    
  22  Prefactor     .10000E-03    22.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .15535        .47566        .17648E-02   -1.5629    
  24  Prefactor     4.2660        15.306        .19515E-03   -1.5295    
  25  norm          3.5469        .75394        .92650E-04   -1.5331    
  26  Prefactor     .10000E-03    2.0701        .22524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .84930        2.2066        .25241E-02   -1.5524    
  30  Prefactor     16.692        8.6770        .98020E-04   -1.4891    
  31  Prefactor     .10000E-03    5.6678        .55662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.1761        .61171        .12868E-03   -1.5491    
  33  norm          2.7898        2.0798        .12180E-02   -1.5374    
  34  norm          .10000E-03    .57148        .34665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    .91948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .21829        1.9115        .10739       -1.5615    
  37  Prefactor     1.8999        6.4134        .30184E-03   -1.5432    
  38  Normalizat    1.0566        .63877E-01    .24354E-03   -.91159    
  39  Prefactor     .95142        .66467E-01    .27683E-03   -.94367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16957e-06
Minuit parameter uncertainties:
  1  2.30804
  2  0.452444
  3  2.39067
  4  0.921446
  5  2.15764
  6  2.04248
  7  2.25935
  8  1.83626
  9  3.94805e-06
  10  0.214893
  11  9.74836e-07
  12  0.26192
  13  1.33957
  14  6.49412
  15  6.25898e-06
  16  5.60093
  17  0.90568
  18  0.395016
  19  38.2719
  20  1.06091e-06
  21  0.145482
  22  0.000238094
  23  0.475669
  24  15.3204
  25  0.753937
  26  1.17379e-05
  27  0.000119462
  28  1.50413e-05
  29  2.20685
  30  8.67762
  31  5.05994e-06
  32  0.611716
  33  2.07989
  34  1.42524e-06
  35  1.89435e-06
  36  1.29166
  37  6.41574
  38  0.0638812
  39  0.0664725
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  3.173e+00  9.057e-01  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  9.514e-01  6.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.057e+00  6.388e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.15
Ra Dec: 158.485 60.849
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 1.03e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 5.08e-06

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) = 57381.4379236
delta logL = 0.186788955929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 57381.4354553
delta logL = 0.18925728961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3366       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0054       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94850       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   57381.44     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      285 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3366        .79938        .97434E-04    .56007E-04
   2  alpha         2.0055        .21616        .16008E-01    .63757E-04
   3  Normalizat    1.0616        .59386E-01    .24304E-03   -.89812E-05
   4  Prefactor     .94850        .64061E-01    .27720E-03    .91867E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33657
  alpha      = 2.00545
  Normalizat = 1.06164
  Prefactor  = 0.948498
 **********
 **   18 **HESSE 
 **********

 FCN=   57381.44     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3366        .79047        .38974E-05   -1.5343    
   2  alpha         2.0055        .21364        .64033E-03   -.19913    
   3  Normalizat    1.0616        .59396E-01    .97216E-05   -.90993    
   4  Prefactor     .94850        .64090E-01    .11088E-04   -.94466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89899e-12
Minuit parameter uncertainties:
  1  0.790469
  2  0.213909
  3  0.0594001
  4  0.0640952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146198': 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) = 57381.4354553
delta logL = 0.189257290716

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  3.337e+00  7.905e-01  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.005e+00  2.139e-01  0.000e+00  5.000e+00 ( 1.000e+00)
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  9.485e-01  6.410e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.062e+00  5.940e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.40
Ra Dec: 158.485 60.849
Photon Index (Free Index): 2.01 +/- 0.21
Photon Flux (Free Index): 3.16e-08 +/- 1.01e-08
Energy Flux (Free Index): 1.94e-05 +/- 5.38e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/146198/cmap_HighResolution_537667201_540259201_4FGL_J1033.9+6050_monthly_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='1.94e-05', photon_flux_error='1.03e-08', dlogl='1.89e-01', energy_flux='1.78e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-10-21 22:52:13.642910', photon_index_error2='0.21', photon_index2='2.01', ts='56.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.38e-06', EG='1.06', time_epoch_completed='1634881933.64', return_code='0', job_id='146198', GAL2='0.95', EG2='1.06', return_code2='0', energy_flux_error='5.08e-06', photon_flux_error2='1.01e-08', ts2='56.40', photon_index='2.14' WHERE bin_id='116' AND source_name='4FGL J1033.9+6050' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 22:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 146198: <4FGL_J1033.9+6050_monthly_bin116> in cluster <slac> Done

Job <4FGL_J1033.9+6050_monthly_bin116> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 21 20:00:16 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 20:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 20:01:01 2021
Terminated at Thu Oct 21 22:52:14 2021
Results reported at Thu Oct 21 22:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_monthly_bin116 158.485 60.8493 537667201 540259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.9+6050 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9713.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             390.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10273 sec.
    Turnaround time :                            10318 sec.

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

