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


Performing analysis on: 4FGL_J0212.9+2244_daily_bin1427
RA = 33.2427, Dec = 22.7466
tmin = 609206401, tmax = 609465601
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='203247', job_status='RUN', time_executed='2021-08-15 11:51:09.777077', time_epoch_executed='1629053469.78' WHERE source_name='4FGL J0212.9+2244' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203247/ft1_4FGL_J0212.9+2244_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203247/ft1_4FGL_J0212.9+2244_daily_bin1427.fits outfile=/scratch/kocevski/203247/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1427.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=609206401.0 tmax=609465601.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 9.19
user 2.86
sys 6.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.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/203247/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.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 6.87
user 0.34
sys 6.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/203247/ltcube_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.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/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits
.....................!
real 22.32
user 14.77
sys 7.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/203247/ltcube_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits outfile=/scratch/kocevski/203247/expmap_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.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/203247/ltcube_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits
.....................!
real 201.85
user 187.67
sys 13.51

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

Setting source of interest to:
4FGL J0212.9+2244 @ 33.2427 22.7466

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits outfile=/scratch/kocevski/203247/cmap_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.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=33.2427 yref=22.7466 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 6.80
user 0.39
sys 6.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits outfile=/scratch/kocevski/203247/cmap_HighResolution_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.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=33.2427 yref=22.7466 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 6.71
user 0.40
sys 6.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203247/Model_4FGL_J0212.9+2244_daily_bin1427.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/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits.......................................!
real 28.35
user 18.69
sys 9.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits', '/scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits', expMap='/scratch/kocevski/203247/expmap_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits', expCube='/scratch/kocevski/203247/ltcube_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203247/Model_4FGL_J0212.9+2244_daily_bin1427.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0212.9+2244'

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.178e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/203247/ft1_filtered_4FGL_J0212.9+2244_daily_bin1427.fits
Spacecraft file(s): /scratch/kocevski/203247/ft2_4FGL_J0212.9+2244_daily_bin1427.fits
Exposure map: /scratch/kocevski/203247/expmap_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits
Exposure cube: /scratch/kocevski/203247/ltcube_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203247/Model_4FGL_J0212.9+2244_daily_bin1427.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 436.664127601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21343E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18910E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    .35458E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33646E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34949E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    95.252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6289       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.231       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   434.6646     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     4639 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    232.52        .80768E-04** at limit **
   2  Prefactor     .10000E-03    9986.4       -.87581E-03** at limit **
   3  Prefactor     .10000E-03    8367.3       -.27066E-02** at limit **
   4  norm         10000.0        638.78        .61910E-03** at limit **
   5  Prefactor    10000.0        7494.2        .33989E-03** at limit **
   6  Prefactor    10000.0        6903.6        .25708E-02** at limit **
   7  norm          .10000E-03    581.61       -.41994E-04** at limit **
   8  Prefactor    10000.0        5000.1        .36784E-03** at limit **
   9  Prefactor    10000.0        8512.9        .80730E-03** at limit **
  10  Prefactor     .10000E-03    1583.8       -.17489E-03** at limit **
  11  norm          .10000E-03    284.24        .12857E-04** at limit **
  12  Prefactor     .10000E-03    110.19       -.60988E-04** at limit **
  13  Prefactor     .10000E-03    50.438       -.29356E-05** at limit **
  14  norm          .10001E-03    2036.3       -.20919E-03** at limit **
  15  Prefactor     .10000E-03    195.98        .92262E-04** at limit **
  16  Prefactor     .10000E-03    94.821       -.65604E-04** at limit **
  17  Prefactor     95.520        628.15        .27236E-03    .26615E-05
  18  Prefactor     .10000E-03    50.192       -.90064E-05** at limit **
  19  norm          1.9166        6.9547        .27528E-06   -.29916E-04
  20  Prefactor     .10000E-03    69.561        .56133E-04** at limit **
  21  norm          1.6281        3.1584        .31924E-05   -.40768E-03
  22  Prefactor     .10000E-03    163.59        .61041E-04** at limit **
  23  Prefactor     55.185        80.845       -.37204E-04   -.43902E-04
  24  Prefactor     11.127        28.094       -.15866E-05   -.18082E-04
  25  Prefactor     .10000E-03    35.449        .10391E-05** at limit **
  26  norm          .10000E-03    19.913        .21237E-06** at limit **
  27  Normalizat    .10000E-01    .20089        .12210E-05** at limit **
  28  Prefactor     .72436        .22260       -.56557E-05    .55837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.5204
  Prefactor  = 0.0001
  norm       = 1.9166
  Prefactor  = 0.0001
  norm       = 1.62805
  Prefactor  = 0.0001
  Prefactor  = 55.1851
  Prefactor  = 11.1265
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.724365
 **********
 **   18 **HESSE 
 **********

 FCN=   434.6646     FROM HESSE     STATUS=OK           501 CALLS     5140 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    232.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9986.4        .20170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8367.7        .18234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        638.65        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7494.2        .21174E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6903.8        .18215E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    581.62        .21318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        5000.1        .21216E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        8512.8        .20224E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1583.9        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    284.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    110.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.445        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    2036.1        .21324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    195.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    94.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     95.520        629.78        .20591E-03   -1.3750    
  18  Prefactor     .10000E-03    50.196        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9166        6.9475        .96443E-04   -1.5431    
  20  Prefactor     .10000E-03    69.630        .17007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6281        3.1281        .46114E-04   -1.5453    
  22  Prefactor     .10000E-03    163.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     55.185        80.976        .26987E-03   -1.4221    
  24  Prefactor     11.127        28.240        .12009E-03   -1.5041    
  25  Prefactor     .10000E-03    35.454        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    19.942        .90923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .20200        .28802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .72436        .22377        .15061E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76397e-10
Minuit parameter uncertainties:
  1  6.01725e-07
  2  0.000428143
  3  0.000960095
  4  0.000108367
  5  0.000450716
  6  0.000861075
  7  2.33902e-05
  8  0.0204228
  9  0.00066439
  10  0.000104668
  11  3.16206e-06
  12  0.000112898
  13  7.68033e-06
  14  0.00876823
  15  7.91513e-07
  16  3.51764e-05
  17  498.354
  18  4.63098e-05
  19  6.95045
  20  0.000230166
  21  3.12845
  22  0.000118036
  23  81.1381
  24  28.2742
  25  0.00014227
  26  5.76528e-05
  27  1.66609e-06
  28  0.224053
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e-04  1.129e-04  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  7.244e-01  2.241e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  1.666e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 33.243 22.747
Photon Flux Upper Limit: 3.50e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203247/likelihoodResults_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.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) = 434.664667468
delta logL = -4.3097121079e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 434.664625332
delta logL = -9.61156501944e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21527E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3112       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+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=   434.6646     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      267 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10366E-03    56.330        .18142E-01** at limit **
   2  Index         2.2243        5.1580        .50000        .37307E-05
   3  Normalizat    .10000E-01    .26357E-03    .28803E-02** at limit **
   4  Prefactor     .72436        .68980E-02    .15061E-03   -.71197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103656
  Index      = 2.22433
  Normalizat = 0.01
  Prefactor  = 0.724363
 **********
 **   18 **HESSE 
 **********

 FCN=   434.6646     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10366E-03    540.16        .19010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2243        8.0139        .50000       -.58852    
   3  Normalizat    .10000E-01    .25988E-02    .57606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72436        .21661E-01    .30123E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.27142e-10
Minuit parameter uncertainties:
  1  0.0896974
  2  595.61
  3  2.60186e-09
  4  0.0216609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203247': 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) = 434.664624514
delta logL = -1.43143893183e-07

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.037e-04  8.970e-02  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.224e+00  5.956e+02  0.000e+00  1.000e+01 (-1.000e+00)
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  7.244e-01  2.166e-02  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  1.000e-02  2.602e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 33.243 22.747

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/203247/cmap_HighResolution_609206401_609465601_4FGL_J0212.9+2244_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-01', job_status='DONE', photon_flux_upper_limit='3.50e-06', time_completed='2021-08-15 11:58:52.914302', job_id='203247', GAL2='0.72', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629053932.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1427' AND source_name='4FGL J0212.9+2244' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:58:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 203247: <4FGL_J0212.9+2244_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0212.9+2244_daily_bin1427> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Aug 15 11:45:32 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 11:45:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 11:45:38 2021
Terminated at Sun Aug 15 11:58:54 2021
Results reported at Sun Aug 15 11:58:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_daily_bin1427 33.2427 22.7466 609206401 609465601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   553.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             217.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            802 sec.

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

