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


Performing analysis on: 4FGL_J0921.6+6216_monthly_bin135
RA = 140.419, Dec = 62.2708
tmin = 586915201, tmax = 589507201
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='716600', job_status='RUN', time_executed='2021-10-20 16:50:39.167418', time_epoch_executed='1634773839.17' WHERE source_name='4FGL J0921.6+6216' and cadence='monthly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/716600

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/716600/ft1_4FGL_J0921.6+6216_monthly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/716600/ft1_4FGL_J0921.6+6216_monthly_bin135.fits outfile=/scratch/kocevski/716600/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin135.fits ra=140.419 dec=62.2708 rad=12.0 tmin=586915201.0 tmax=589507201.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 31.17
user 30.05
sys 0.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.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/716600/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.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.83
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/716600/ltcube_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.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/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits
.....................!
real 119.64
user 118.96
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/716600/ltcube_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits outfile=/scratch/kocevski/716600/expmap_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.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/716600/ltcube_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits
.....................!
real 192.92
user 186.91
sys 5.48

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

Setting source of interest to:
4FGL J0921.6+6216 @ 140.419 62.2708

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits outfile=/scratch/kocevski/716600/cmap_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.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=140.419 yref=62.2708 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.77
user 0.58
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits outfile=/scratch/kocevski/716600/cmap_HighResolution_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.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=140.419 yref=62.2708 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.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/716600/Model_4FGL_J0921.6+6216_monthly_bin135.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/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits.....................!
real 785.57
user 782.34
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits', '/scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits', expMap='/scratch/kocevski/716600/expmap_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits', expCube='/scratch/kocevski/716600/ltcube_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/716600/Model_4FGL_J0921.6+6216_monthly_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0921.6+6216'

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/716600/ft1_filtered_4FGL_J0921.6+6216_monthly_bin135.fits
Spacecraft file(s): /scratch/kocevski/716600/ft2_4FGL_J0921.6+6216_monthly_bin135.fits
Exposure map: /scratch/kocevski/716600/expmap_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits
Exposure cube: /scratch/kocevski/716600/ltcube_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/716600/Model_4FGL_J0921.6+6216_monthly_bin135.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) = 86525.1239844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1274       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9995       1.0000         .10000E-03   10000.    
     3 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5830       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.113       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8272       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23939E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28255       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23160E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52454       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.232       1.0000         .10000E-03   10000.    
    22 'norm      '    .13135E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11981E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5231       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0217       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.0128       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.3669       1.0000         .10000E-03   10000.    
    29 'norm      '    6.2061       1.0000         .10000E-03   10000.    
    30 'norm      '    2.3749       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   86524.81     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     4172 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1282        17.569         .0000        .15019E-03
   2  Prefactor     8.9996        4.1765         .0000        .43524E-02
   3  norm          .10000E-03    .92611E-01     .0000    ** at limit **
   4  Prefactor     6.4617        4.7173         .0000       -.37993E-03
   5  Prefactor     .75818        .32648         .0000        .70089E-02
   6  Prefactor     4.2030        1.9378         .0000        .14865E-01
   7  Prefactor     3.5832        1.8776         .0000        .11988    
   8  norm          3.2037        .69557         .0000        .65769E-02
   9  Prefactor     2.7658        1.7848         .0000        .36298E-02
  10  Prefactor     16.113        7.9222         .0000       -.25742E-02
  11  norm          1.8273        1.4170         .0000        .22564E-01
  12  Prefactor     .95035        2.5921         .0000        .20248    
  13  Prefactor     7.0626        5.4335         .0000       -.36307E-02
  14  Prefactor     3.1192        1.6735         .0000        .17998E-02
  15  Prefactor     .10000E-03    1.7139         .0000    ** at limit **
  16  norm          3.9595        .36288         .0000        .81205E-03
  17  Prefactor     .10116E-03    .49606         .0000    ** at limit **
  18  Prefactor     .28280        .47055         .0000        .14458E-01
  19  Prefactor     .10107E-03    .69718         .0000    ** at limit **
  20  Prefactor     .53303        1.1164         .0000        .81406E-02
  21  Prefactor     12.232        2.5703         .0000        .12114E-01
  22  norm          .10000E-03    .46450         .0000    ** at limit **
  23  Prefactor     .10000E-03    2.2617         .0000    ** at limit **
  24  norm          1.5231        .18367         .0000        .34742E-02
  25  norm          2.0217        .24018         .0000        .20507E-02
  26  Prefactor     .10000E-03    4.1777         .0000    ** at limit **
  27  norm          4.0129        3.0153         .0000       -.25733E-03
  28  Prefactor     8.3668        6.8235         .0000       -.16551E-02
  29  norm          6.2062        1.0963         .0000        .12547E-02
  30  norm          2.3749        .49344         .0000       -.26343E-02
  31  Prefactor     .10009E-03    129.71         .0000    ** at limit **
  32  Normalizat    1.1552        .56257E-01     .0000       -.26572E-03
  33  Prefactor     1.0258        .45727E-01     .0000       -.14721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.12824
  Prefactor  = 8.99955
  norm       = 0.0001
  Prefactor  = 6.46171
  Prefactor  = 0.758179
  Prefactor  = 4.20299
  Prefactor  = 3.58322
  norm       = 3.20367
  Prefactor  = 2.76577
  Prefactor  = 16.1128
  norm       = 1.82727
  Prefactor  = 0.950351
  Prefactor  = 7.06258
  Prefactor  = 3.11923
  Prefactor  = 0.0001
  norm       = 3.95945
  Prefactor  = 0.000101163
  Prefactor  = 0.282799
  Prefactor  = 0.000101069
  Prefactor  = 0.533032
  Prefactor  = 12.2323
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.5231
  norm       = 2.02166
  Prefactor  = 0.0001
  norm       = 4.01292
  Prefactor  = 8.36678
  norm       = 6.20621
  norm       = 2.37494
  Prefactor  = 0.000100093
  Normalizat = 1.15523
  Prefactor  = 1.02584
 **********
 **   18 **HESSE 
 **********

 FCN=   86524.81     FROM HESSE     STATUS=OK           755 CALLS     4927 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1282        17.564        .14063E-03   -1.5138    
   2  Prefactor     8.9996        4.1644        .13360E-03   -1.5108    
   3  norm          .10000E-03    1.1705        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4617        4.6995        .15788E-03   -1.5200    
   5  Prefactor     .75818        .31601        .10479E-03   -1.5534    
   6  Prefactor     4.2030        1.9339        .98285E-03   -1.5298    
   7  Prefactor     3.5832        1.8712        .10675E-02   -1.5329    
   8  norm          3.2037        .69073        .10061E-03   -1.5350    
   9  Prefactor     2.7658        1.7747        .24473E-03   -1.5375    
  10  Prefactor     16.113        7.9225        .99776E-04   -1.4905    
  11  norm          1.8273        1.4166        .14971E-02   -1.5438    
  12  Prefactor     .95035        2.5895        .25972E-02   -1.5513    
  13  Prefactor     7.0626        5.4019        .15095E-03   -1.5176    
  14  Prefactor     3.1192        1.6718        .22958E-03   -1.5355    
  15  Prefactor     .10000E-03    1.7273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9595        .35984        .50069E-04   -1.5310    
  17  Prefactor     .10116E-03    .74982        .70352E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28280        .57275        .24482E-02   -1.5602    
  19  Prefactor     .10107E-03    .81987        .87715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .53303        1.9647        .38644E-02   -1.5562    
  21  Prefactor     12.232        2.5352        .57268E-03   -1.5008    
  22  norm          .10000E-03    .50329        .80099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3317        .13486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5231        .18415        .42200E-04   -1.5461    
  25  norm          2.0217        .23904        .47280E-04   -1.5424    
  26  Prefactor     .10000E-03    4.2631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.0129        3.0129        .20132E-03   -1.5307    
  28  Prefactor     8.3668        6.8902        .13859E-03   -1.5129    
  29  norm          6.2062        1.1042        .10150E-03   -1.5210    
  30  norm          2.3749        .49452        .91701E-04   -1.5400    
  31  Prefactor     .10009E-03    135.24        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1552        .63333E-01    .27995E-03   -.87998    
  33  Prefactor     1.0258        .51827E-01    .25410E-03   -.91873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12104e-07
Minuit parameter uncertainties:
  1  17.5748
  2  4.16452
  3  1.02767e-05
  4  4.6998
  5  0.316013
  6  1.93389
  7  1.87125
  8  0.69073
  9  1.77469
  10  7.92297
  11  1.41658
  12  2.58983
  13  5.40227
  14  1.67187
  15  4.96676e-06
  16  0.359844
  17  0.00186774
  18  0.572764
  19  0.00187283
  20  1.96495
  21  2.53524
  22  1.84601e-06
  23  0.000158139
  24  0.18415
  25  0.239043
  26  6.45141e-05
  27  3.01298
  28  6.89089
  29  1.10423
  30  0.494516
  31  0.0071212
  32  0.0633367
  33  0.0518292
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  3.959e+00  3.598e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.026e+00  5.183e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.155e+00  6.334e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 349.08
Ra Dec: 140.419 62.271
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 1.34e-08
Energy Flux (Fixed Index): 5.57e-05 +/- 5.06e-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) = 86524.6733899
delta logL = 0.133129577924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 86524.6713387
delta logL = 0.13518083049

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   86524.67     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9076        4.8940        .51026E-02    .11559E-02
   2  alpha         2.2703        1.1254        .22172        .36242E-03
   3  Normalizat    1.1500        .73906E-01    .63405E-01    .14445E-03
   4  Prefactor     1.0283        .56537E-01    .41396E-01    .11704E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90759
  alpha      = 2.27028
  Normalizat = 1.15002
  Prefactor  = 1.02834
 **********
 **   18 **HESSE 
 **********

 FCN=   86524.67     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9076        .36665        .49317E-04   -1.5313    
   2  alpha         2.2703        .92727E-01    .92419E-02   -.92018E-01
   3  Normalizat    1.1500        .59209E-01    .28047E-03   -.88162    
   4  Prefactor     1.0283        .50518E-01    .25382E-03   -.91791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92941e-09
Minuit parameter uncertainties:
  1  0.366651
  2  0.0927481
  3  0.0592129
  4  0.0505206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/716600': 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) = 86524.6713381
delta logL = 0.135181373102

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  3.908e+00  3.667e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.270e+00  9.275e-02  0.000e+00  5.000e+00 ( 1.000e+00)
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.028e+00  5.052e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.150e+00  5.921e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 347.51
Ra Dec: 140.419 62.271
Photon Index (Free Index): 2.27 +/- 0.09
Photon Flux (Free Index): 1.52e-07 +/- 1.61e-08
Energy Flux (Free Index): 5.43e-05 +/- 5.52e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/716600/cmap_HighResolution_586915201_589507201_4FGL_J0921.6+6216_monthly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.43e-05', photon_flux_error='1.34e-08', dlogl='1.35e-01', energy_flux='5.57e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-10-20 19:37:47.351390', photon_index_error2='0.09', photon_index2='2.27', ts='349.08', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.52e-06', EG='1.16', time_epoch_completed='1634783867.35', return_code='0', job_id='716600', GAL2='1.03', EG2='1.15', return_code2='0', energy_flux_error='5.06e-06', photon_flux_error2='1.61e-08', ts2='347.51', photon_index='2.22' WHERE bin_id='135' AND source_name='4FGL J0921.6+6216' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 19:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 716600: <4FGL_J0921.6+6216_monthly_bin135> in cluster <slac> Done

Job <4FGL_J0921.6+6216_monthly_bin135> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Oct 20 16:50:14 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 16:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 16:50:27 2021
Terminated at Wed Oct 20 19:39:45 2021
Results reported at Wed Oct 20 19:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_monthly_bin135 140.419 62.2708 586915201 589507201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0921.6+6216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9947.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             456.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10158 sec.
    Turnaround time :                            10171 sec.

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

