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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin1286
RA = 333.226, Dec = -25.4335
tmin = 572659201, tmax = 572918401
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='224716', job_status='RUN', time_executed='2021-09-28 07:12:13.845935', time_epoch_executed='1632838333.85' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224716/ft1_4FGL_J2212.9-2526_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224716/ft1_4FGL_J2212.9-2526_daily_bin1286.fits outfile=/scratch/kocevski/224716/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin1286.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=572659201.0 tmax=572918401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.63
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.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/224716/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin1286.fits evtable="EVENTS" outfile="/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/224716/ltcube_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.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/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/224716/ltcube_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits outfile=/scratch/kocevski/224716/expmap_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.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/224716/ltcube_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits
.....................!
real 192.54
user 187.89
sys 4.34

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

Setting source of interest to:
4FGL J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits outfile=/scratch/kocevski/224716/cmap_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.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=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits outfile=/scratch/kocevski/224716/cmap_HighResolution_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.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=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224716/Model_4FGL_J2212.9-2526_daily_bin1286.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/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits.....................!
real 50.17
user 48.78
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits', '/scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits', expMap='/scratch/kocevski/224716/expmap_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits', expCube='/scratch/kocevski/224716/ltcube_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/224716/Model_4FGL_J2212.9-2526_daily_bin1286.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/224716/ft1_filtered_4FGL_J2212.9-2526_daily_bin1286.fits
Spacecraft file(s): /scratch/kocevski/224716/ft2_4FGL_J2212.9-2526_daily_bin1286.fits
Exposure map: /scratch/kocevski/224716/expmap_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits
Exposure cube: /scratch/kocevski/224716/ltcube_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/224716/Model_4FGL_J2212.9-2526_daily_bin1286.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) = 5369.08683359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46355E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1235       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    102.28       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    87.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2051       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0127       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8393       1.0000         .10000E-03   10000.    
    20 'norm      '    .12082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0853       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4770       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57159E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7399       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5369.003     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3131 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    5.7544       -.62379E-06** at limit **
   2  Prefactor     .10000E-03    2.3610        .40637E-08** at limit **
   3  Prefactor     8.1236        15.227        .49269E-06    .89951E-05
   4  norm          .10000E-03    2.2291       -.23299E-07** at limit **
   5  Prefactor     .10000E-03    10.202        .69481E-06** at limit **
   6  Prefactor     .10000E-03    35.793        .36417E-05** at limit **
   7  Prefactor     102.37        89.187       -.41598E-05    .13779E-04
   8  norm          6.4370        7.8995        .97414E-06    .44728E-05
   9  Prefactor     .10000E-03    6.2363        .41272E-08** at limit **
  10  norm          1.9471        .58783        .19240E-07   -.78417E-05
  11  Prefactor     .10000E-03    3.9469        .12072E-06** at limit **
  12  Prefactor     42.166        28.546        .16800E-07   -.76205E-05
  13  Prefactor     .10000E-03    4.6302       -.25878E-07** at limit **
  14  Prefactor     .10000E-03    54.028       -.32399E-06** at limit **
  15  norm          87.297        43.200        .15681E-05   -.84983E-04
  16  Prefactor     8.2164        18.224       -.94165E-07   -.20467E-04
  17  norm          2.0142        2.0742       -.10491E-06   -.71147E-04
  18  Prefactor     .10000E-03    20.686        .39547E-06** at limit **
  19  Prefactor     4.8448        15.395        .27255E-05    .34909E-04
  20  norm          .10000E-03    8.1202        .71949E-06** at limit **
  21  Prefactor     .10000E-03    11.577       -.94570E-07** at limit **
  22  Prefactor     3.0669        20.584        .43354E-05    .87633E-05
  23  norm          2.4761        1.2615       -.45080E-06   -.85798E-03
  24  Prefactor     .10014E-03    13.960       -.12484E-05** at limit **
  25  Normalizat    1.7391        .27442       -.30307E-05    .70385E-05
  26  Prefactor     .60540        .18783        .24000E-05   -.97525E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 8.12363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 102.371
  norm       = 6.43701
  Prefactor  = 0.0001
  norm       = 1.94712
  Prefactor  = 0.0001
  Prefactor  = 42.1656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 87.2973
  Prefactor  = 8.21635
  norm       = 2.01419
  Prefactor  = 0.0001
  Prefactor  = 4.84478
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06688
  norm       = 2.47609
  Prefactor  = 0.000100136
  Normalizat = 1.73909
  Prefactor  = 0.605404
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.003     FROM HESSE     STATUS=OK           462 CALLS     3593 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    63.805        .33529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3645        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1236        15.230        .14067E-03   -1.5138    
   4  norm          .10000E-03    2.2300        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     102.37        89.189        .19878E-03   -1.3681    
   8  norm          6.4370        7.8822        .15822E-03   -1.5200    
   9  Prefactor     .10000E-03    6.2390        .17872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9471        .58911        .28621E-04   -1.5429    
  11  Prefactor     .10000E-03    3.9528        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.166        28.636        .61743E-04   -1.4408    
  13  Prefactor     .10000E-03    4.6493        .15397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          87.297        42.871        .21495E-03   -1.3837    
  16  Prefactor     8.2164        18.325        .13996E-03   -1.5135    
  17  norm          2.0142        2.0801        .10365E-03   -1.5424    
  18  Prefactor     .10000E-03    20.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8448        15.302        .91433E-03   -1.5268    
  20  norm          .10000E-03    8.5185        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0669        21.415        .11545E-02   -1.5358    
  23  norm          2.4761        1.2434        .25978E-04   -1.5393    
  24  Prefactor     .10014E-03    88.381        .46229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7391        .31803        .26008E-03   -.71264    
  26  Prefactor     .60540        .21625        .30483E-03   -1.0736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70598e-09
Minuit parameter uncertainties:
  1  0.00404869
  2  1.04797e-06
  3  15.2371
  4  5.90756e-07
  5  1.64467e-05
  6  0.000600046
  7  89.3062
  8  7.88351
  9  7.22499e-07
  10  0.589112
  11  7.2576e-06
  12  28.6457
  13  1.8785e-06
  14  3.24762e-05
  15  42.8866
  16  18.3376
  17  2.08017
  18  8.50895e-06
  19  15.314
  20  6.44266e-05
  21  5.90836e-05
  22  16.2163
  23  1.24345
  24  0.00693535
  25  0.318408
  26  0.216546
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  4.217e+01  2.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.054e-01  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.739e+00  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.09
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 2.18e-05

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) = 5368.99010822
delta logL = 0.0132268198568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.98692512
delta logL = 0.0164099145932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.233       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    1.7217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5368.987     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.230        30.874        .63194E-04    .64332E-04
   2  Index         2.3852        .73523        .75772E-02    .31760E-04
   3  Normalizat    1.7220        .30134        .26103E-03    .84485E-04
   4  Prefactor     .61280        .21254        .30311E-03    .10172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.2298
  Index      = 2.38515
  Normalizat = 1.72204
  Prefactor  = 0.612801
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.987     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.230        29.617        .12639E-04   -1.4439    
   2  Index         2.3852        .70292        .30309E-03   -.55033    
   3  Normalizat    1.7220        .30031        .52206E-04   -.71716    
   4  Prefactor     .61280        .21225        .12124E-04   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51372e-11
Minuit parameter uncertainties:
  1  29.6275
  2  0.706147
  3  0.300634
  4  0.212524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224716': 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) = 5368.98692439
delta logL = 0.0164106503544

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  4.023e+01  2.963e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.385e+00  7.061e-01  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.128e-01  2.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.722e+00  3.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.11
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 2.39 +/- 0.71
Photon Flux (Free Index): 9.31e-08 +/- 9.87e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/224716/cmap_HighResolution_572659201_572918401_4FGL_J2212.9-2526_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='3.11e-05', photon_flux_error='5.34e-08', dlogl='1.64e-02', energy_flux='3.20e-05', photon_flux2='9.31e-08', job_status='DONE', time_completed='2021-09-28 07:21:52.549344', photon_index_error2='0.71', photon_index2='2.39', ts='6.09', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.74', time_epoch_completed='1632838912.55', return_code='0', job_id='224716', GAL2='0.61', EG2='1.72', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='9.87e-08', ts2='6.11', photon_index='2.26' WHERE bin_id='1286' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 224716: <4FGL_J2212.9-2526_daily_bin1286> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin1286> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 07:11:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:11:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:11:20 2021
Terminated at Tue Sep 28 07:21:53 2021
Results reported at Tue Sep 28 07:21:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin1286 333.226 -25.4335 572659201 572918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            635 sec.

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

