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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin821
RA = 333.226, Dec = -25.4335
tmin = 452131201, tmax = 452390401
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='222928', job_status='RUN', time_executed='2021-09-28 07:07:48.658328', time_epoch_executed='1632838068.66' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222928/ft1_4FGL_J2212.9-2526_daily_bin821.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222928/ft1_4FGL_J2212.9-2526_daily_bin821.fits outfile=/scratch/kocevski/222928/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin821.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=452131201.0 tmax=452390401.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.40
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.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/222928/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin821.fits evtable="EVENTS" outfile="/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits" evtable="EVENTS" scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits sctable="SC_DATA" outfile=/scratch/kocevski/222928/ltcube_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.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/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits
.....................!
real 12.26
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits sctable="SC_DATA" expcube=/scratch/kocevski/222928/ltcube_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits outfile=/scratch/kocevski/222928/expmap_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.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/222928/ltcube_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits
.....................!
real 190.05
user 185.07
sys 4.45

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/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits outfile=/scratch/kocevski/222928/cmap_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits outfile=/scratch/kocevski/222928/cmap_HighResolution_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222928/Model_4FGL_J2212.9-2526_daily_bin821.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/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits.....................!
real 60.29
user 58.94
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits', '/scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits', expMap='/scratch/kocevski/222928/expmap_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits', expCube='/scratch/kocevski/222928/ltcube_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222928/Model_4FGL_J2212.9-2526_daily_bin821.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/222928/ft1_filtered_4FGL_J2212.9-2526_daily_bin821.fits
Spacecraft file(s): /scratch/kocevski/222928/ft2_4FGL_J2212.9-2526_daily_bin821.fits
Exposure map: /scratch/kocevski/222928/expmap_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits
Exposure cube: /scratch/kocevski/222928/ltcube_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222928/Model_4FGL_J2212.9-2526_daily_bin821.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) = 7927.19116133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6834       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15921E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0682       1.0000         .10000E-03   10000.    
    10 'norm      '    .91743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.553       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    17 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1484       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5647       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4063       1.0000         .10000E-03   10000.    
    23 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73355       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92573       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=   7927.176     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3089 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4195        4.3944       -.15637E-06    .98116E-04
   2  Prefactor     .10000E-03    2.9981        .22770E-05** at limit **
   3  Prefactor     6.6791        10.592        .12326E-04    .29642E-04
   4  norm          .10000E-03    2.5399        .46550E-06** at limit **
   5  Prefactor     15.721        14.090       -.15730E-05   -.24152E-04
   6  Prefactor     .10000E-03    7.9968       -.11748E-05** at limit **
   7  Prefactor     .10000E-03    115.73       -.53716E-05** at limit **
   8  norm          6.8320        3.7043       -.32736E-06   -.52248E-05
   9  Prefactor     8.0685        8.8374        .90315E-07   -.51411E-05
  10  norm          .91740        .29882        .85288E-08   -.11110E-03
  11  Prefactor     8.8458        6.8744       -.66826E-06   -.26619E-04
  12  Prefactor     .10000E-03    2.8875       -.22984E-05** at limit **
  13  Prefactor     .10000E-03    2.0747        .12664E-07** at limit **
  14  Prefactor     13.557        50.531        .69890E-05   -.23843E-05
  15  norm          .10000E-03    4.4036        .21341E-06** at limit **
  16  Prefactor     11.599        8.5665        .10534E-06   -.31407E-04
  17  norm          .10000E-03    .86660        .38551E-06** at limit **
  18  Prefactor     30.687        33.259       -.65425E-05   -.92816E-04
  19  Prefactor     1.1492        1.3480        .15146E-06   -.12607E-02
  20  norm          5.5645        3.3713        .63010E-06   -.57426E-03
  21  Prefactor     .10000E-03    6.0797        .10489E-05** at limit **
  22  Prefactor     7.3997        7.2643       -.12615E-05   -.80930E-03
  23  norm          .10000E-03    .31103        .29965E-06** at limit **
  24  Prefactor     .10000E-03    3.8651       -.55750E-06** at limit **
  25  Normalizat    .73347        .14970        .23907E-06   -.28178E-03
  26  Prefactor     .92575        .11881       -.14284E-05   -.11574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.41954
  Prefactor  = 0.0001
  Prefactor  = 6.67909
  norm       = 0.0001
  Prefactor  = 15.7211
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 6.83199
  Prefactor  = 8.06849
  norm       = 0.917398
  Prefactor  = 8.84575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5571
  norm       = 0.0001
  Prefactor  = 11.599
  norm       = 0.0001
  Prefactor  = 30.6874
  Prefactor  = 1.14918
  norm       = 5.56447
  Prefactor  = 0.0001
  Prefactor  = 7.39972
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.733475
  Prefactor  = 0.92575
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.176     FROM HESSE     STATUS=OK           462 CALLS     3551 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4195        4.3989        .81957E-03   -1.5242    
   2  Prefactor     .10000E-03    3.0419        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6791        10.524        .15522E-03   -1.5191    
   4  norm          .10000E-03    2.5906        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.721        14.092        .10102E-03   -1.4915    
   6  Prefactor     .10000E-03    8.0355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    118.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8320        3.7074        .11460E-03   -1.5185    
   9  Prefactor     8.0685        8.8354        .14115E-03   -1.5140    
  10  norm          .91740        .29944        .25922E-04   -1.5516    
  11  Prefactor     8.8458        6.8760        .13476E-03   -1.5113    
  12  Prefactor     .10000E-03    2.8860        .14763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0863        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.557        50.568        .10880E-03   -1.4971    
  15  norm          .10000E-03    4.4073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.599        8.5756        .11764E-03   -1.5027    
  17  norm          .10000E-03    .88357        .16114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.687        33.047        .72317E-04   -1.4599    
  19  Prefactor     1.1492        10.229        .21614E-02   -1.5494    
  20  norm          5.5645        3.3671        .11221E-03   -1.5236    
  21  Prefactor     .10000E-03    6.0981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3997        6.5076        .14737E-03   -1.5164    
  23  norm          .10000E-03    .60120        .84027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8892        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73347        .17895        .26235E-03   -1.0259    
  26  Prefactor     .92575        .14084        .19625E-03   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83474e-09
Minuit parameter uncertainties:
  1  4.39917
  2  1.03461e-05
  3  10.5268
  4  3.28721e-06
  5  14.0945
  6  3.92433e-05
  7  0.00147069
  8  3.70751
  9  8.8368
  10  0.299444
  11  6.87659
  12  2.48913e-06
  13  3.46803e-06
  14  50.7286
  15  1.07374e-05
  16  8.5765
  17  2.77372e-05
  18  33.0663
  19  6.85848
  20  3.36719
  21  3.37303e-05
  22  6.50827
  23  2.569e-05
  24  2.93544e-05
  25  0.179092
  26  0.140892
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.489e-06  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:  9.258e-01  1.409e-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:  7.335e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 2.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222928/likelihoodResults_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7927.17721314
delta logL = -0.00164240507002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7927.17557054
delta logL = 1.97076587938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2376       1.0000          .0000       10.000    
     3 'Normalizat'    .73349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92574       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=   7927.176     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.480        .14947E-01** at limit **
   2  Index         1.7452        5.3080        .50000        .20705E-06
   3  Normalizat    .73348        .63032E-02    .26235E-03   -.15167E-03
   4  Prefactor     .92575        .52790E-02    .19625E-03   -.20134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74518
  Normalizat = 0.733477
  Prefactor  = 0.925749
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.176     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    147.19        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7452        6.6228        .50000       -.70885    
   3  Normalizat    .73348        .23616E-01    .10494E-04   -1.0259    
   4  Prefactor     .92575        .19778E-01    .39249E-04   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64691e-10
Minuit parameter uncertainties:
  1  0.00016433
  2  772.365
  3  0.0236159
  4  0.0197784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222928': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7927.17556753
delta logL = 3.21115840052e-06

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.643e-04  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  1.745e+00  7.724e+02  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:  9.257e-01  1.978e-02  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:  7.335e-01  2.362e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 333.226 -25.433

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/222928/cmap_HighResolution_452131201_452390401_4FGL_J2212.9-2526_daily_bin821.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-03', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2021-09-28 07:20:30.545892', job_id='222928', GAL2='0.93', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632838830.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='821' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 222928: <4FGL_J2212.9-2526_daily_bin821> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin821> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:05:43 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:05:44 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:05:44 2021
Terminated at Tue Sep 28 07:20:31 2021
Results reported at Tue Sep 28 07:20:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin821 333.226 -25.4335 452131201 452390401 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 :                                   758.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            888 sec.

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

